mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 12:18:30 +09:00
20 lines
532 B
C++
20 lines
532 B
C++
#pragma once
|
|
|
|
namespace MobileGL {
|
|
namespace MG_State {
|
|
namespace GLState {
|
|
class BufferState {
|
|
public:
|
|
SharedPtr<BufferObject> GetBufferObject(Uint index);
|
|
Vector<Uint> GenerateNames(Uint number);
|
|
SharedPtr<BufferObject> CreateBufferObject(Uint index);
|
|
BindingSlot<BufferObject>& GetBindingSlot(BufferTarget target);
|
|
|
|
private:
|
|
UnorderedMap<Uint, SharedPtr<BufferObject>> m_bufferObjects;
|
|
IndexGenerator<Uint> m_indexGenerator;
|
|
Vector<BindingSlot<BufferObject>> m_bindingSlots;
|
|
};
|
|
}
|
|
}
|
|
} |