[Feat] (MG_State/RenderBufferState): Initially implement RenderbufferState.

This commit is contained in:
BZLZHH
2025-12-14 09:40:36 +08:00
parent 96c3024544
commit 5bb9faaaa5
5 changed files with 163 additions and 0 deletions
@@ -0,0 +1,32 @@
#include "RenderbufferObject.h"
namespace MobileGL {
namespace MG_State {
namespace GLState {
RenderbufferObject::RenderbufferObject(Uint externalIndex) : m_externalIndex(externalIndex) {}
void RenderbufferObject::Storage(Int internalFormat, Int width, Int height) {
m_internalFormat = internalFormat;
m_width = width;
m_height = height;
m_allocated = true;
}
Int RenderbufferObject::GetWidth() const {
return m_width;
}
Int RenderbufferObject::GetHeight() const {
return m_height;
}
Int RenderbufferObject::GetInternalFormat() const {
return m_internalFormat;
}
Bool RenderbufferObject::IsAllocated() const {
return m_allocated;
}
} // namespace GLState
} // namespace MG_State
} // namespace MobileGL