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:
spartanj
2010-11-29 15:21:09 -03:00
parent e2dc300efd
commit f6a7c8b8f7
7 changed files with 70 additions and 39 deletions

View File

@@ -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 );