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 

PSPGL Question

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



Joined: 22 Jun 2006
Posts: 70

PostPosted: Tue Jul 11, 2006 2:39 am    Post subject: PSPGL Question Reply with quote

What is the command to do this:

glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, color);


with psp gu ?
Back to top
View user's profile Send private message
Kojima



Joined: 26 Jun 2006
Posts: 275

PostPosted: Tue Jul 11, 2006 3:47 am    Post subject: Reply with quote

Considering there is no Pspgl function for that, I doubt it's supported. I'd like to know for sure too though.
Back to top
View user's profile Send private message
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Tue Jul 11, 2006 4:23 am    Post subject: Reply with quote

glMaterial.c

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

:P
Back to top
View user's profile Send private message
zilt



Joined: 21 Feb 2006
Posts: 45
Location: Ontario, Canada

PostPosted: Tue Jul 11, 2006 4:31 am    Post subject: Reply with quote

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

Code:
   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.
Back to top
View user's profile Send private message Visit poster's website
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Tue Jul 11, 2006 5:48 am    Post subject: Reply with quote

hmm dont look at params, it was an example. I just want to know the docs of sceGuMaterial, i can't find it :)
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