Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Lesson 33 with Glut


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

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

#1 Bakuto   Members   -  Reputation: 131

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!

Sponsor:

#2 Caste   Moderators   -  Reputation: 969

Like
0Likes
Like

Posted 04 November 2011 - 09:30 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!


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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS