 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
sherpya

Joined: 03 Oct 2005 Posts: 61
|
Posted: Fri Nov 11, 2005 8:18 am Post subject: SDL_ttf & pspgl |
|
|
Since pspgl doesn't supports all of opengl api, sdl_ttf configure incorrectly detects opengl support but compilation fails since pspsgl misses some function.
This patch solves the problem, and it will activate GL support in SDL_ttf when pspgl will implement these functions:
| Code: |
Index: configure.in
===================================================================
--- configure.in (revision 1425)
+++ configure.in (working copy)
@@ -139,7 +139,7 @@
;;
*-psp-*)
MATHLIB="-lm"
- SYS_GL_LIBS=""
+ SYS_GL_LIBS="-lGL -lpsprtc"
;;
*)
MATHLIB="-lm"
@@ -153,16 +153,9 @@
fi
;;
esac
-AC_MSG_CHECKING(for OpenGL support)
+
have_opengl=no
-AC_TRY_COMPILE([
- #include "SDL_opengl.h"
-],[
- GLuint texture;
-],[
-have_opengl=yes
-])
-AC_MSG_RESULT($have_opengl)
+AC_CHECK_LIB(GL, [glPushAttrib, glPopAttrib, glColor3fv], [have_opengl=yes])
if test x$have_opengl = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
GL_LIBS="$SYS_GL_LIBS"
|
|
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
|
| Back to top |
|
 |
jsgf
Joined: 12 Jul 2005 Posts: 254
|
Posted: Fri Dec 09, 2005 6:40 pm Post subject: Re: SDL_ttf & pspgl |
|
|
| sherpya wrote: | | Code: |
+AC_CHECK_LIB(GL, [glPushAttrib, glPopAttrib, glColor3fv], [have_opengl=yes])
|
|
I'm implementing glPush/PopAttrib at the moment, and glColor3fv should be trivial. |
|
| Back to top |
|
 |
sherpya

Joined: 03 Oct 2005 Posts: 61
|
Posted: Wed Dec 14, 2005 11:11 am Post subject: |
|
|
| yes it works, it would be nice to add a switch to disable opengl at all |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|