mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-08 02:23:23 +09:00
[Feat] (MG_State/RenderBufferState): Initially implement RenderbufferState.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user