Jump to content



Lesson 33 with Glut

  • You cannot reply to this topic
1 reply to this topic

#1 masterball   Members   -  Reputation: 122

Like
0Likes
Like

Posted 04 November 2011 - 02:05 PM

I am unable to convert lesson 33 to use glut instead of that clunky windows API. Does anyone have a working copy of Lesson 33 with Glut? Thanks!

Ad:

#2 Caste   Moderators   -  Reputation: 931

Like
0Likes
Like

Posted 04 November 2011 - 09:30 PM

View Postmasterball, on 04 November 2011 - 02:05 PM, said:

I am unable to convert lesson 33 to use glut instead of that clunky windows API. Does anyone have a working copy of Lesson 33 with Glut? Thanks!

What exactly is your problem? You should be able to use the TGA loading code in any existing GLUT application by copying over the structs Texture, TGAHeader and TGA, the TGA header definitions and the methods LoadTGA, LoadCompressedTGA and LoadUncompressedTGA.

Another method would be using the SOIL library for texture loading as explained here.








We are working on generating results for this topic
PARTNERS