| View previous topic :: View next topic |
| Author |
Message |
The Tjalian

Joined: 06 Aug 2006 Posts: 18
|
Posted: Thu Mar 20, 2008 12:22 pm Post subject: A few questions about pspGL. |
|
|
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 |
|
 |
gambiting
Joined: 17 Aug 2006 Posts: 154
|
Posted: Sun Mar 23, 2008 6:39 pm Post subject: |
|
|
Hi! You can include pspgl like normal opengl header file - #include <gl.h>
Also
is not supported,psp can't render wireframe _________________ My projects:
PSPSnake
Mandelbrot Fractal Generator
Shoot4Fun
BlowUp! |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Mar 24, 2008 2:58 am Post subject: |
|
|
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 |
|
 |
The Tjalian

Joined: 06 Aug 2006 Posts: 18
|
Posted: Mon Mar 24, 2008 11:45 pm Post subject: |
|
|
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 |
|
 |
Jim

Joined: 02 Jul 2005 Posts: 487 Location: Sydney
|
Posted: Tue Mar 25, 2008 6:59 am Post subject: |
|
|
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 |
|
 |
kuroneko
Joined: 08 Dec 2005 Posts: 24 Location: Chigasaki, Japan
|
Posted: Tue Mar 25, 2008 11:19 am Post subject: |
|
|
| 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 |
|
 |
The Tjalian

Joined: 06 Aug 2006 Posts: 18
|
Posted: Tue Mar 25, 2008 9:36 pm Post subject: |
|
|
| 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 |
|
 |
|