I made some structural changes, and i'm trying to encapsulate a little the renderer to in a future implement an OpenGL3 render, and remove the fixed pipeline.

This commit is contained in:
spartanj
2011-01-18 04:43:40 -03:00
parent ddb5dc1948
commit 2cc55ea68a
44 changed files with 884 additions and 481 deletions

View File

@@ -5,7 +5,6 @@
#include "cframebufferfbo.hpp"
#include "cframebufferpbuffer.hpp"
#include "cframebuffermanager.hpp"
using namespace EE::Graphics::Private;
namespace EE { namespace Graphics {
@@ -60,12 +59,12 @@ void cFrameBuffer::SetBufferView() {
mPrevView = Window::cEngine::instance()->GetView();
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
glViewport( 0, 0, mWidth, mHeight );
glOrtho( 0.0f, mWidth, 0.f, mHeight, -1000.0f, 1000.0f );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
GLi->MatrixMode( GL_PROJECTION );
GLi->LoadIdentity();
GLi->Viewport( 0, 0, mWidth, mHeight );
GLi->Ortho( 0.0f, mWidth, 0.f, mHeight, -1000.0f, 1000.0f );
GLi->MatrixMode( GL_MODELVIEW );
GLi->LoadIdentity();
}
void cFrameBuffer::RecoverView() {