In my opengl project I need to convert an UIImage in texture; what’s the way to do it?
Can you help me?
In my opengl project I need to convert an UIImage in texture; what’s the
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 haven’t test the following but i will decompose the conversion in 3 steps:
Extract info for your image:
Allocate a
textureDatawith the above properties:Set-up your texture:
EDIT:
Read this tut; everything is explained from the conversion of one image to a texture and applying a texture in an iOS environment.