Draw a rectangle using the current material and supply texture coordinates to be used for the first texture layer of the material.
To draw the entire texture pass in tx1
=0.0 ty1
=0.0 tx2
=1.0 ty2
=1.0.
x1 |
x coordinate upper left on screen. |
y1 |
y coordinate upper left on screen. |
x2 |
x coordinate lower right on screen. |
y2 |
y coordinate lower right on screen. |
tx1 |
x part of texture coordinate to use for upper left pixel |
ty1 |
y part of texture coordinate to use for upper left pixel |
tx2 |
x part of texture coordinate to use for lower right pixel |
ty2 |
y part of texture coordinate to use for left pixel |