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,28 @@
#ifndef VERTEXOBJECT_H
#define VERTEXOBJECT_H
#include "render/render_shared.h"
#include "render/gl_shared.h"
class RenderDevice;
class VertexBuffer
{
friend class RenderDevice;
public:
~VertexBuffer();
void Bind();
void* MapBuffer(BufferAccess access);
void UnmapBuffer();
void UpdateBuffer(void* data, size_t size);
private:
VertexBuffer(void* data, size_t size, bool isStream = false);
GLuint m_buffer;
};
#endif // !VERTEXOBJECT_H