Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » openGL and texture
Re: openGL and texture [message #14439 is a reply to message #14432] Tue, 26 February 2008 18:29 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
mrjt wrote on Tue, 26 February 2008 15:29

Unfortunately it's not quite that easy, Upp Image formats are not standard RGBA. Depending on the platform they could be BGRA (Win32) or ARGB (see Core/Color.h). Unfortunately there is no GL unpacking format that copes with this directly, so it requires an Image copy with some byte swapping.
...


Thank you James,

I tried the above code that simplified the code of the tutorial. But unfortunatly it doesn't work Confused
I got only a beautiful white rotating cube with no track of texture. I tried several things without success. I do not know if the problem reside in the swapping procedure or somewhere else. I attach the code in case somebody has time to check it.

Thanks,
Luigi
  • Attachment: openGL5.rar
    (Size: 2.92KB, Downloaded 317 times)

[Updated on: Tue, 26 February 2008 18:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenGL and continous animation
Next Topic: Get, modify and set text of RichEdit(WithToolBar)
Goto Forum:
  


Current Time: Thu Apr 18 10:16:04 CEST 2024

Total time taken to generate the page: 0.01953 seconds