add glext.h, remove GLU dependency
This commit is contained in:
parent
b50cb35734
commit
18c122c71e
|
@ -27,8 +27,7 @@
|
|||
#include <framework/platform/platform.h>
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#include <GL/glext.h>
|
||||
#include <framework/thirdparty/glext.h>
|
||||
|
||||
PFNGLGENFRAMEBUFFERSPROC oglGenFramebuffers = 0;
|
||||
PFNGLBINDFRAMEBUFFERPROC oglBindFramebuffer = 0;
|
||||
|
@ -99,7 +98,7 @@ void FrameBuffer::bind()
|
|||
glViewport(0, 0, m_texture->getWidth(), m_texture->getHeight());
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
gluOrtho2D(0.0f, m_texture->getWidth(), 0, m_texture->getHeight());
|
||||
glOrtho(0.0f, m_texture->getWidth(), 0, m_texture->getHeight(), -1, 1);
|
||||
|
||||
// back to model view
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
#include <framework/graphics/texture.h>
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#include <GL/glext.h>
|
||||
#include <framework/thirdparty/glext.h>
|
||||
|
||||
Graphics g_graphics;
|
||||
|
||||
|
@ -113,7 +112,7 @@ void Graphics::restoreViewport()
|
|||
// setup view region like above
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
gluOrtho2D(0.0f, width, height, 0.0f);
|
||||
glOrtho(0.0f, width, height, 0.0f, -1, 1);
|
||||
|
||||
// back to model view
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "graphics.h"
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glext.h>
|
||||
#include <framework/thirdparty/glext.h>
|
||||
|
||||
Texture::Texture()
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue