mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Feat] (MG_State/RenderbufferState): Add RenderbufferObject::GetExternalIndex()
This commit is contained in:
@@ -13,6 +13,10 @@ namespace MobileGL {
|
|||||||
namespace GLState {
|
namespace GLState {
|
||||||
RenderbufferObject::RenderbufferObject(Uint externalIndex) : m_externalIndex(externalIndex) {}
|
RenderbufferObject::RenderbufferObject(Uint externalIndex) : m_externalIndex(externalIndex) {}
|
||||||
|
|
||||||
|
Uint RenderbufferObject::GetExternalIndex() const {
|
||||||
|
return m_externalIndex;
|
||||||
|
}
|
||||||
|
|
||||||
Int RenderbufferObject::GetWidth() const {
|
Int RenderbufferObject::GetWidth() const {
|
||||||
return m_width;
|
return m_width;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ namespace MobileGL {
|
|||||||
|
|
||||||
RenderbufferObject(Uint externalIndex);
|
RenderbufferObject(Uint externalIndex);
|
||||||
|
|
||||||
|
Uint GetExternalIndex() const;
|
||||||
void SetInternalFormat(TextureInternalFormat format);
|
void SetInternalFormat(TextureInternalFormat format);
|
||||||
void AllocateStorage(IntVec2 size);
|
void AllocateStorage(IntVec2 size);
|
||||||
Int GetWidth() const;
|
Int GetWidth() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user