PSPGL Question

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

PSPGL Question

Post by siberianstar »

What is the command to do this:

glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, color);


with psp gu ?
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

Post by Kojima »

Considering there is no Pspgl function for that, I doubt it's supported. I'd like to know for sure too though.
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

Post by siberianstar »

glMaterial.c

void glMaterialfv (GLenum face, GLenum pname, const GLfloat *params)

:P
zilt
Posts: 45
Joined: Tue Feb 21, 2006 11:59 pm
Location: Ontario, Canada
Contact:

Post by zilt »

Kojima is correct - pspgl does not support GL_FRONT_AND_BACK. From glCullFace.c:

Code: Select all

   case GL_FRONT_AND_BACK:
    default:
        GLERROR(GL_INVALID_ENUM);

And since you brought up glMaterial.c, if you actually looked through the code, you'd see the the first param (GL_FRONT_AND_BACK) is ignored by the pspgl code for glMaterialfv.
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

Post by siberianstar »

hmm dont look at params, it was an example. I just want to know the docs of sceGuMaterial, i can't find it :)
Post Reply