Jump to content
  • Advertisement
Sign in to follow this  
rubsnick

So I'm studying the CLM.h and I don't understand how textures load.

This topic is 2597 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I"m using the sample code provided styuging off of it but I don't understand how the textures get on there..... I'm not fully understanding how it works.

http://www.3dcodingtutorial.com/Textures/Loading-Textures.html

I see the code and I see GLM Textures but I don't know where it is.... I mean I don't know where it's being called or nothing but I do know if I remove the Texture.cpp that it won't run... Could someone quickly explain to me how texture.cpp is working? Where the functions are being called and how it's getting into the mesh?

Share this post


Link to post
Share on other sites
Advertisement

LoadTGA most likely loads your image.


Well it loads the texture... I just don't understand where the function call occurs during the main. I don't see it so I'm having a hard time understanding it ya know?

Share this post


Link to post
Share on other sites
The main() function calls the init() function which calls LoadTreeTextures() function that uses the LoadTGA() function to load textures. :D

Share this post


Link to post
Share on other sites

The main() function calls the init() function which calls LoadTreeTextures() function that uses the LoadTGA() function to load textures. :D


Thank you that explains alot! XD I cannot believe I was that blind.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!