5#ifndef JPP_I_VERTEX_BUFFER_HPP_INCLUDED
6#define JPP_I_VERTEX_BUFFER_HPP_INCLUDED
8#include <jimcpp/core/engine/IReferenceCounted.hpp>
9#include <jimcpp/core/engine/irrArray.hpp>
10#include <jimcpp/core/engine/EHardwareBufferFlags.hpp>
11#include <jimcpp/core/engine/S3DVertex.hpp>
58 virtual void set_used(
u32 usedNow) =0;
59 virtual void reallocate(
u32 new_size,
bool canShrink=
true) =0;
60 virtual u32 allocated_size()
const =0;
Base class of most objects of the Jimcpp Engine.
Definition IReferenceCounted.hpp:46
Definition IVertexBuffer.hpp:19
virtual video::S3DVertex & operator[](u32 index)=0
Direct access to elements. Risky to use!
virtual u32 stride() const =0
Number of bytes per element.
virtual u32 size() const =0
Number of elements.
virtual void * getData()=0
Pointer to first element of vertex data.
virtual void setDirty()=0
flags the meshbuffer as changed, reloads hardware buffers
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint)=0
set the hardware mapping hint, for driver
virtual u32 getChangedID() const =0
Get the currently used ID for identification of changes.
virtual void push_back(const video::S3DVertex &element)=0
Add vertex to end.
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0
get the current hardware mapping hint
virtual void * pointer()
Same as getData.
Definition IVertexBuffer.hpp:28
virtual const void * getData() const =0
Const pointer to first element.
virtual void setValue(u32 index, const video::S3DVertex &value)=0
Set value at index. Buffer must be already large enough that element exists.
Vertex with two texture coordinates.
Definition S3DVertex.hpp:116
Vertex with a tangent and binormal vector.
Definition S3DVertex.hpp:199
standard vertex used by the Jimcpp engine.
Definition S3DVertex.hpp:45
E_HARDWARE_MAPPING
Definition EHardwareBufferFlags.hpp:14
E_VERTEX_TYPE
Enumeration for all vertex types there are.
Definition S3DVertex.hpp:19
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64