* NEW: Remove glu dependency and the related code.


git-svn-id: svn://localhost/gambas/trunk@3713 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Laurent Carlier 2011-04-01 08:11:44 +00:00
parent 4d37eb128c
commit 875cda43bd
2 changed files with 2 additions and 5 deletions

View file

@ -26,7 +26,7 @@ GB_COMPONENT(
[src],
[GB_FIND(SDL_opengl.h SDL.h SDL_ttf.h, `sdl-config --prefix`, include/SDL)],
[GB_FIND(libSDL_ttf.$SHLIBEXT libGLEW.$SHLIBEXT, /usr /usr/X11R6 /usr/local `sdl-config --prefix`, lib)],
[$X_LIBS -lSDL_ttf -lGLU -lGLEW],
[$X_LIBS -lSDL_ttf -lGLEW],
[$SDL_CFLAGS])
AC_OUTPUT( \

View file

@ -374,13 +374,10 @@ void myWin::Open(void)
glViewport(0, 0, this->GetWidth(), this->GetHeight());
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0.0f, GLdouble(this->GetWidth()), GLdouble(this->GetHeight()), 0.0f);
glOrtho(0.0f, GLdouble(this->GetWidth()), GLdouble(this->GetHeight()), 0.0f, -1, 1);
// enable blending, should work like 2d sdl does
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// enable anti-aliasing
glEnable(GL_POINT_SMOOTH);
// glEnable(GL_LINE_SMOOTH);
glMatrixMode(GL_MODELVIEW);
}