mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 04:38:30 +09:00
24 lines
504 B
C++
24 lines
504 B
C++
#pragma once
|
|
|
|
namespace MobileGL {
|
|
namespace MG_State {
|
|
namespace GLState {
|
|
class GLContext {
|
|
public:
|
|
GLContext() = default;
|
|
|
|
// Buffer
|
|
Vector<Uint> GenBufferNames(Uint number);
|
|
SharedPtr<BufferObject> GetBufferObject(Uint index);
|
|
BindingSlot<BufferObject>& GetBufferBindingSlot(BufferTarget target);
|
|
SharedPtr<BufferObject> CreateBufferObject(Uint index);
|
|
|
|
private:
|
|
// Buffer
|
|
BufferState bufferState_;
|
|
};
|
|
}
|
|
|
|
extern GLState::GLContext* pGLContext;
|
|
}
|
|
} |