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 

A few questions about pspGL.

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



Joined: 06 Aug 2006
Posts: 18

PostPosted: Thu Mar 20, 2008 12:22 pm    Post subject: A few questions about pspGL. Reply with quote

When I finally get all of the necessary stuff installed, and I've learned the PSP basics, I'd really like to try my hand at the PSP's implentation of OpenGL. These may sound like silly questions, but I remember reading on one site that a bunch of stuff in OpenGL is restricted or not included in the PSP version. So...

Is including the pspGL library the same? (#include <pspgl.h> or whatever the pspgl header file is)

Are the following methods accepted:

glPushMatrix();
glPopMatrix
glColor3f();
glTranslate();
glRotate();
glScale();
glSolidCube();
glWireCube();

Truth be told, I made this animated robot in my 3D Graphics class (using OpenGL) and I want it to run on the PSP. Just for fun, of course.

Thanks for your time.
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sun Mar 23, 2008 6:39 pm    Post subject: Reply with quote

Hi! You can include pspgl like normal opengl header file - #include <gl.h>
Also
Quote:
glWireCube();

is not supported,psp can't render wireframe
_________________
My projects:
PSPSnake
Mandelbrot Fractal Generator
Shoot4Fun
BlowUp!
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Mar 24, 2008 2:58 am    Post subject: Reply with quote

When in doubt, check the source code. The sdk is open source - just check out the repo. Then you'll be able to check if the function is supported or not just by looking for it in the source. For the most part, each function has its own file named after the function. For example, glReadBuffer is handled by glReadBuffer.c.

A quick check finds neither glSolidCube nor glWiredCube are in pspgl. glColor3f doesn't have its own file, but rather a file with all the supported versions of that command called glColor.c. Looking at that file, you will find glColor3f is supported.
Back to top
View user's profile Send private message AIM Address
The Tjalian



Joined: 06 Aug 2006
Posts: 18

PostPosted: Mon Mar 24, 2008 11:45 pm    Post subject: Reply with quote

Hnmm, it's weird that glSolidCube and glWireCube isn't suppored, while glVertef3f is. I supposed I could just make a method to replicate the same feature, really!

Thanks guys.
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Tue Mar 25, 2008 6:59 am    Post subject: Reply with quote

Nothing weird about it. Noone uses them and would almost certainly roll their own if they needed one. If you come up with a drop-in replacement, why not add it to PSPGL in SVN? Then it'll always be there for everyone else.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
kuroneko



Joined: 08 Dec 2005
Posts: 24
Location: Chigasaki, Japan

PostPosted: Tue Mar 25, 2008 11:19 am    Post subject: Reply with quote

The Tjalian wrote:
Hnmm, it's weird that glSolidCube and glWireCube isn't suppored, while glVertef3f is.


That looks more like a typo. IIRC, OpenGL simply doesn't have the first two functions you mention, GLUT has (known as glutSolidCube and glutWireCube).

http://www.opengl.org/resources/libraries/glut/spec3
Back to top
View user's profile Send private message
The Tjalian



Joined: 06 Aug 2006
Posts: 18

PostPosted: Tue Mar 25, 2008 9:36 pm    Post subject: Reply with quote

kuroneko wrote:
The Tjalian wrote:
Hnmm, it's weird that glSolidCube and glWireCube isn't suppored, while glVertef3f is.


That looks more like a typo. IIRC, OpenGL simply doesn't have the first two functions you mention, GLUT has (known as glutSolidCube and glutWireCube).

http://www.opengl.org/resources/libraries/glut/spec3


You're right - very right infact. Guh, I'm always forgetting which ones belong to gl, glu and glut respectively. Many thanks.
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
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