mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 19:46:29 +03:00
Some minor fixes.
Separeted the Clear statement from the Bind on cFrameBuffer, now the user has control of the cleaning.
This commit is contained in:
@@ -48,10 +48,12 @@ eeColorAf cFrameBuffer::ClearColor() const {
|
||||
return mClearColor;
|
||||
}
|
||||
|
||||
void cFrameBuffer::SetBufferView() {
|
||||
void cFrameBuffer::Clear() {
|
||||
glClearColor( mClearColor.R(), mClearColor.G(), mClearColor.B(), mClearColor.A() );
|
||||
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
|
||||
}
|
||||
|
||||
void cFrameBuffer::SetBufferView() {
|
||||
mPrevView = Window::cEngine::instance()->GetView();
|
||||
|
||||
glMatrixMode( GL_PROJECTION );
|
||||
|
||||
Reference in New Issue
Block a user