mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Feat] (MG_State/GLState): Implement BufferObject.
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user