[Feat] (MG_State/RenderbufferState): Add RenderbufferObject::GetExternalIndex()

This commit is contained in:
BZLZHH committed 2025-12-31 19:57:46 +08:00
1 parent e5c3a6beba
commit c902721683
2 files changed
+5

No files matched your search

@@ -13,6 +13,10 @@ namespace MobileGL {
namespace GLState {
RenderbufferObject::RenderbufferObject(Uint externalIndex) : m_externalIndex(externalIndex) {}
Uint RenderbufferObject::GetExternalIndex() const {
return m_externalIndex;
}
Int RenderbufferObject::GetWidth() const {
return m_width;
}
@@ -25,6 +25,7 @@ namespace MobileGL {
RenderbufferObject(Uint externalIndex);
Uint GetExternalIndex() const;
void SetInternalFormat(TextureInternalFormat format);
void AllocateStorage(IntVec2 size);
Int GetWidth() const;