5#ifndef DCPP_I_INDEX_BUFFER_HPP_INCLUDED
6#define DCPP_I_INDEX_BUFFER_HPP_INCLUDED
8#include <duckcpp/core/engine/IReferenceCounted.hpp>
9#include <duckcpp/core/engine/irrArray.hpp>
10#include <duckcpp/core/engine/EHardwareBufferFlags.hpp>
11#include <duckcpp/core/engine/SVertexIndex.hpp>
32 virtual dcpp::video::E_INDEX_TYPE getType()
const =0;
38 virtual void setType(dcpp::video::E_INDEX_TYPE IndexType) =0;
58 virtual void reallocate(
dcpp::uint32_kt new_size,
bool canShrink=
true) =0;
Base class of most objects of the Duckcpp Engine.
Definition IReferenceCounted.hpp:46
Definition IIndexBuffer.hpp:20
virtual void setValue(dcpp::uint32_kt index, dcpp::uint32_kt value)=0
Set value at index. Note that for 16 bit index types values shouldn't be larger than dcpp::uint16_kt.
virtual dcpp::uint32_kt operator[](dcpp::uint32_kt index) const =0
Access element value at given index.
virtual void setDirty()=0
flags the meshbuffer as changed, reloads hardware buffers
virtual dcpp::uint32_kt stride() const =0
Number of bytes per element.
virtual dcpp::uint32_kt size() const =0
Number of elements.
virtual void push_back(dcpp::uint32_kt value)=0
Add value to end. Note that for 16 bit index types values shouldn't be larger than dcpp::uint16_kt.
virtual dcpp::uint32_kt getChangedID() const =0
Get the currently used ID for identification of changes.
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0
get the current hardware mapping hint
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint)=0
set the hardware mapping hint, for driver
void * pointer()
Same as getData(), just closer to dcpp::nub::array interface.
Definition IIndexBuffer.hpp:30
virtual const void * getData() const =0
Const pointer to first element.
virtual void setType(dcpp::video::E_INDEX_TYPE IndexType)=0
Change between 16 and 32 bit indices.
virtual void * getData()=0
Pointer to first element.
E_HARDWARE_MAPPING
Definition EHardwareBufferFlags.hpp:14
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
unsigned int uint32_kt
32 bit unsigned variable.
Definition irrTypes.hpp:64