How do I do that? I’m currently using Nate Robin’s GLM but I don’t think it supports this kind fo texturing?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve looked at GLM’s source. It seems there is no direct support of texture loading (even texture binding). But, texture coordinates are usable. So, you have to manually handle texture loading and binding. As a beginning, I recommend to use some raw images (you can directly load into a array). Later you can pick up a proper library. If size matters, NanoJPEG can be a wise choice.
For learning how to apply textures, here is a tutorial from defacto OpenGL tutorial series.