mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 19:46:29 +03:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user