Initial sources

This commit is contained in:
2025-02-28 04:43:17 +03:00
commit d9437c8619
34 changed files with 18207 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#ifndef INDEXOBJECT_H
#define INDEXOBJECT_H
#include "render/render_shared.h"
#include "render/gl_shared.h"
class RenderDevice;
class IndexBuffer
{
friend class RenderDevice;
public:
~IndexBuffer();
void* MapBuffer(BufferAccess access);
void UnmapBuffer();
void Bind();
private:
IndexBuffer(void* data, size_t size, bool isStream = false);
GLuint m_buffer;
};
#endif // !INDEXOBJECT_H