Lines Matching defs:RenderBuffer
30 struct RenderBuffer { struct
35 RenderBuffer(GLenum format, uint32_t width, uint32_t height) in RenderBuffer() function
40 ~RenderBuffer() { in ~RenderBuffer() argument
49 GLuint getName() const { return mName; } in getName()
54 GLenum getFormat() const { return mFormat; } in getFormat()
59 void bind() const { glBindRenderbuffer(GL_RENDERBUFFER, mName); } in bind()
65 bool isAllocated() const { return mAllocated; } in isAllocated()
71 void allocate() { in allocate()
83 void resize(uint32_t width, uint32_t height) { in resize()
95 uint32_t getWidth() const { return mWidth; } in getWidth()
100 uint32_t getHeight() const { return mHeight; } in getHeight()
105 uint32_t getSize() const { in getSize()
114 static uint32_t formatSize(GLenum format) { in formatSize()
134 static bool isStencilBuffer(GLenum format) { in isStencilBuffer()
147 static const char* formatName(GLenum format) { in formatName()
176 }; // struct RenderBuffer argument