Commit 0a804796 by Geoff Lang Committed by Geoff Lang

Add Renderbuffer::getComponentType and Renderbuffer::getColorEncoding methods.

TRAC #23474 Author: Geoff Lang Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
parent b2f3d05c
......@@ -385,6 +385,16 @@ GLuint Renderbuffer::getStencilSize() const
return gl::GetStencilBits(getActualFormat(), mRenderer->getCurrentClientVersion());
}
GLenum Renderbuffer::getComponentType() const
{
return gl::GetComponentType(getActualFormat(), mRenderer->getCurrentClientVersion());
}
GLenum Renderbuffer::getColorEncoding() const
{
return gl::GetColorEncoding(getActualFormat(), mRenderer->getCurrentClientVersion());
}
GLsizei Renderbuffer::getSamples() const
{
return mInstance->getSamples();
......
......@@ -244,6 +244,8 @@ class Renderbuffer : public RefCountObject
GLuint getAlphaSize() const;
GLuint getDepthSize() const;
GLuint getStencilSize() const;
GLenum getComponentType() const;
GLenum getColorEncoding() const;
GLsizei getSamples() const;
unsigned int getSerial() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment