mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-04 06:54:39 +00:00
first step towards making the render process const
This commit is contained in:
parent
46010244f5
commit
b6fb6944f6
67 changed files with 209 additions and 400 deletions
|
@ -204,20 +204,20 @@ void FrameBuffer::reloadDevice()
|
|||
init(_w, _h, _fitToScreen);
|
||||
}
|
||||
|
||||
void FrameBuffer::startCapture()
|
||||
void FrameBuffer::startCapture() const
|
||||
{
|
||||
assert(inited);
|
||||
glBindFramebufferEXT( GL_FRAMEBUFFER_EXT, g_frameBuffer );
|
||||
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
|
||||
}
|
||||
|
||||
void FrameBuffer::endCapture()
|
||||
void FrameBuffer::endCapture() const
|
||||
{
|
||||
assert(inited);
|
||||
glBindFramebufferEXT( GL_FRAMEBUFFER_EXT, 0 );
|
||||
}
|
||||
|
||||
void FrameBuffer::bindTexture()
|
||||
void FrameBuffer::bindTexture() const
|
||||
{
|
||||
assert(inited);
|
||||
glBindTexture( GL_TEXTURE_2D, g_dynamicTextureID );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue