Need a tutorial/example

Problems with Canvas, OpenGL, etc...

Need a tutorial/example

Postby tttcowan » Mon Oct 04, 2010 10:53 pm

Hi,

I'm having a lot of trouble getting ((GL11Ext) gl).glDrawTexfOES to work for drawing a 2d texture... I've been trying all sorts of code, is there a really simple example anywhere of it being implemented?

I've tried to hash together an example from the replicaisland code but I just seem to get a single colour box... Like it only loads a single pixel from the texture and stretches it...

Any help would be really appreicated.

Thanks in advance
tttcowan
Developer
Developer
 
Posts: 46
Joined: Mon Jul 19, 2010 11:08 pm

Top

Re: Need a tutorial/example

Postby tttcowan » Tue Oct 05, 2010 1:17 pm

Sorted it, needed to crop the texture before calling glDrawTexfOES... The documentation on this is really poor!
tttcowan
Developer
Developer
 
Posts: 46
Joined: Mon Jul 19, 2010 11:08 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 4 guests