Map a texture or pixmap image to a quad

BlitzMax Forums/BlitzMax Programming/Map a texture or pixmap image to a quad

Pineapple(Posted 2010) [#1]
I want to be able to draw a texture and separately define each corner in 2D space and have the texture stretch and skew appropriately (but without blurring) Possible?


Snixx(Posted 2010) [#2]
doh math fail, will have another go when I get back


ImaginaryHuman(Posted 2010) [#3]
You want a `textured poly` routine, or write your own GL commands... e.g. glBegin/glEnd, glVertex, glColor, glTexCoord, etc..


Pineapple(Posted 2010) [#4]
I want to create an extraordinarily simple 3D graphics engine for a retro-style game I want to make; all I need to do is create quads and put a texture onto them, uvmapped according to position in 3D space. This is what it's for, if it helps.

Dang I hate 3D coding, it's harder for me to do a single piece of graphics code than everything else together.