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

This commit is contained in:
BZLZHH
2025-07-17 13:21:28 +08:00
parent 9604bdd50a
commit ea64124963
6 changed files with 105 additions and 31 deletions
+25
View File
@@ -1 +1,26 @@
#include "../../Includes.h"
namespace MobileGL {
namespace MG_State {
namespace GLState {
Vector<Uint> GLContext::GenBufferNames(Uint number) {
return bufferState_.GenerateNames(number);
}
SharedPtr<BufferObject> GLContext::GetBufferObject(Uint index) {
return bufferState_.GetBufferObject(index);
}
BindingSlot<BufferObject>& GLContext::GetBufferBindingSort(BufferTarget target) {
return bufferState_.GetBindingSlot(target);
}
SharedPtr<BufferObject> GLContext::CreateBufferObject(Uint index) {
return bufferState_.CreateBufferObject(index);
}
}
GLState::GLContext* pGLContext;
}
}