1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #pragma once
- #include "IReferenceCounted.h"
- #include "EHardwareBufferFlags.h"
- #include "S3DVertex.h"
- namespace irr
- {
- namespace scene
- {
- class IVertexBuffer : public virtual IReferenceCounted
- {
- public:
-
-
- virtual video::E_VERTEX_TYPE getType() const = 0;
-
-
- virtual const void *getData() const = 0;
-
-
- virtual void *getData() = 0;
-
-
- virtual u32 getCount() const = 0;
-
- virtual const core::vector3df &getPosition(u32 i) const = 0;
-
- virtual core::vector3df &getPosition(u32 i) = 0;
-
- virtual const core::vector3df &getNormal(u32 i) const = 0;
-
- virtual core::vector3df &getNormal(u32 i) = 0;
-
- virtual const core::vector2df &getTCoords(u32 i) const = 0;
-
- virtual core::vector2df &getTCoords(u32 i) = 0;
-
- virtual E_HARDWARE_MAPPING getHardwareMappingHint() const = 0;
-
- virtual void setHardwareMappingHint(E_HARDWARE_MAPPING newMappingHint) = 0;
-
- virtual void setDirty() = 0;
-
-
- virtual u32 getChangedID() const = 0;
-
- virtual void setHWBuffer(void *ptr) const = 0;
- virtual void *getHWBuffer() const = 0;
- };
- }
- }
|