Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 491 vs 518 for /trunk/Source Code/Platform/Video/Buffers/VertexBuffer/Headers/GenericVertexData.h

Diff revisions: vs.
  @@ -33,6 +33,7 @@
33 33 #define _GENERIC_VERTEX_DATA_H
34 34
35 35 #include "VertexDataInterface.h"
36 + #include "Managers/Headers/FrameListenerManager.h"
36 37
37 38 /// This class is used to upload generic VB data to the GPU that can be rendered
38 39 /// directly or instanced.
  @@ -42,7 +43,8 @@
42 43
43 44 namespace Divide {
44 45
45 - class NOINITVTABLE GenericVertexData : public VertexDataInterface {
46 + class NOINITVTABLE GenericVertexData : public VertexDataInterface,
47 + public FrameListener {
46 48 public:
47 49 struct AttributeDescriptor {
48 50 AttributeDescriptor()
  @@ -143,9 +145,11 @@
143 145
144 146 GenericVertexData(bool persistentMapped)
145 147 : VertexDataInterface(),
148 + FrameListener(),
146 149 _persistentMapped(persistentMapped &&
147 150 !Config::Profile::DISABLE_PERSISTENT_BUFFER)
148 151 {
152 + REGISTER_FRAME_LISTENER(this, 4);
149 153 _doubleBufferedQuery = true;
150 154 }
151 155
  @@ -153,6 +157,7 @@
153 157 {
154 158 _attributeMapDraw.clear();
155 159 _attributeMapFdbk.clear();
160 + UNREGISTER_FRAME_LISTENER(this);
156 161 }
157 162
158 163 virtual void setIndexBuffer(U32 indicesCount, bool dynamic, bool stream) = 0;