rectangle_with_texture_coords
Description:
public void rectangle_with_texture_coords (float x1, float y1, float x2, float y2, float tx1, float ty1, float tx2, float ty2)
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.
Parameters:
| 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 |
Namespace: Cogl
Package: cogl-1.0