forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SDL_ttf & pspgl

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
sherpya



Joined: 03 Oct 2005
Posts: 61

PostPosted: Fri Nov 11, 2005 8:18 am    Post subject: SDL_ttf & pspgl Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Dec 09, 2005 4:05 am    Post subject: Re: Yes! Reply with quote

fowl416 wrote:
I could not agree with you more.

This was fixed in r1514. Give details if you're still having problems.
http://svn.ps2dev.org/log.php?repname=psp&path=%2Ftrunk%2FSDL_ttf
Back to top
View user's profile Send private message
jsgf



Joined: 12 Jul 2005
Posts: 254

PostPosted: Fri Dec 09, 2005 6:40 pm    Post subject: Re: SDL_ttf & pspgl Reply with quote

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
View user's profile Send private message Visit poster's website
sherpya



Joined: 03 Oct 2005
Posts: 61

PostPosted: Wed Dec 14, 2005 11:11 am    Post subject: Reply with quote

yes it works, it would be nice to add a switch to disable opengl at all
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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