Files
LNXRNT/Kinc/Backends/Graphics3/OpenGL1/Sources/kinc/backend/VertexBufferImpl.h

30 lines
597 B
C
Raw Normal View History

2025-01-29 10:55:49 +01:00
#pragma once
#include <Kore/Graphics4/VertexStructure.h>
namespace Kore {
namespace Graphics3 {
class VertexBuffer;
}
class VertexBufferImpl {
protected:
VertexBufferImpl(int count, int instanceDataStepRate);
void unset();
float *data;
int myCount;
int myStride;
uint bufferId;
// #if defined KORE_ANDROID || defined KORE_EMSCRIPTEN || defined KORE_TIZEN
Graphics4::VertexStructure structure;
// #endif
int instanceDataStepRate;
int setVertexAttributes(int offset);
#ifndef NDEBUG
bool initialized;
#endif
public:
static Graphics3::VertexBuffer *current;
};
}