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 

glTexImage2D question

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



Joined: 05 May 2005
Posts: 66

PostPosted: Wed Sep 07, 2005 12:14 pm    Post subject: glTexImage2D question Reply with quote

I am use to binding textures and such, so when I do a "glTexImage2D" it sets the current texture, but then I can do a glBindTexture(0); to basically NULL the current texture. But I dont see the equivilent. I tried to do a glTexImage2D with NULL data, but that didnt work :). Any ideas?

Thanks
Jeff.
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Thu Sep 15, 2005 3:34 am    Post subject: Reply with quote

Just call glTexImage2D with your real texture data and flush the renderer before you modify it. Texture data is right now directly passed to the GE DMA engine at rendere time, basically the old OpenGL1.0 approach of doing this.

glBindTexture() and friends are not yet incorporated, please apply Jeremy's texture object patch if you need this functionality -- I'll look through them and will add them soonish.
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