Tagged: opengl es 2.0
- March 23, 2013 at 5:01 pm #31204
Hey guys, I’m quite new to OGLES2.0 and was hoping someone could help. I’m not sure how I can load in my image files texture my quad that I created from 2 triangles. Does the SDK come with an image loader and if so how do you use it? As I know you can’t just throw the file at the API.
Thanks in advance.March 23, 2013 at 6:19 pm #36946
There is no support for image files other than PVR in the SDK.
If you need pixel perfect ( no compression ) images you can import your jpeg file and re-export it as a PVR file with no compression (RGB) – this will work just fine but it will significantly increase the size of your image file.
This only matters as far as disk space is concerned – in-memory representation of your image ( regardless of the original file format) will take just as much memory – the underlying hardware can only work with GLES compatible image formats anyway ( either raw rgb images or vendor specific compression formats like PVR or ETC)March 23, 2013 at 6:46 pm #36947
Hi Warmi, thanks for the reply. How would you go about loading in .PVR files?March 23, 2013 at 7:48 pm #36948
Check out their examples directory … that’s what they are for.
For instance ; PowerVRGraphicsSDKSDK_3.0ExamplesBeginner5_IntroducingPVRTools
This one does exactly what you are looking for … it loads a pvr image ( which was converted from a png image included in the project) and displays it mapped to a triangle.