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 #14429 is a reply to message #14414] Tue, 26 February 2008 14:19 Go to previous messageGo to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Theoretically, you can use Image classes provided with U++, because the definition for AUX_RGBImageRec (in glaux.h) is:

typedef struct _AUX_RGBImageRec {
    GLint sizeX, sizeY;
    unsigned char *data;
} AUX_RGBImageRec;

So it only contains size and raw data that can also be extracted using class methods from within U++.

What you basically have to do is to load an RGB image using U++ facilities and extract image size and raw data from it.
And of course adapt the example code provided at NeHe.

Matthias
 
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: Fri Mar 29 13:35:15 CET 2024

Total time taken to generate the page: 0.01305 seconds