[GB.SDL]
* 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:
parent
4d37eb128c
commit
875cda43bd
2 changed files with 2 additions and 5 deletions
|
@ -26,7 +26,7 @@ GB_COMPONENT(
|
||||||
[src],
|
[src],
|
||||||
[GB_FIND(SDL_opengl.h SDL.h SDL_ttf.h, `sdl-config --prefix`, include/SDL)],
|
[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)],
|
[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])
|
[$SDL_CFLAGS])
|
||||||
|
|
||||||
AC_OUTPUT( \
|
AC_OUTPUT( \
|
||||||
|
|
|
@ -374,13 +374,10 @@ void myWin::Open(void)
|
||||||
glViewport(0, 0, this->GetWidth(), this->GetHeight());
|
glViewport(0, 0, this->GetWidth(), this->GetHeight());
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
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
|
// enable blending, should work like 2d sdl does
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
// enable anti-aliasing
|
|
||||||
glEnable(GL_POINT_SMOOTH);
|
|
||||||
// glEnable(GL_LINE_SMOOTH);
|
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue