[Feat] (MG_State/GLState): Implement BufferObject.

This commit is contained in:
BZLZHH
2025-07-16 17:51:42 +08:00
parent 1ee6a1349c
commit 62be9fed93
9 changed files with 289 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
namespace MobileGL {
namespace MG_State {
namespace GLState {
class GLContext {
public:
GLContext() = default;
// Buffer
Vector<Uint> GenBuffersByNum(Uint number);
SharedPtr<BufferObject> GetBufferObjByIndex(Uint index);
SharedPtr<BufferObject> GetBufferObjByTarget(BufferTarget target);
SharedPtr<BufferObject> CreateBufferObject(Uint index);
void BindBufferTarget(BufferTarget target, SharedPtr<BufferObject> bufferObject);
private:
// Buffer
BufferState bufferState_;
};
}
}
}