|
|
| void draw_image |
( |
Image * |
img |
) |
|
Draw an Image.
- Note:
- The images position, size, texture size, angle, and center must all be modified by changing the image's structure. To see how, see the example below.
Image stuff you can change:
- img->x = The horizontal position of the image (default 0)
- img->y = The vertical position of the image (default 0)
- img->width = The width of the image (default initWidth)
- img->height = The height of the image (default initHeight)
- img->startX = Horizontal starting point of the image's texture (default 0)
- img->startY = Vertical starting point of the image's texture (default 0)
- img->endX = Horizontal finishing point of the image's texture (default initWidth)
- img->endY = Vertical finishing point of the image's texture (default initHeight)
- img->centerX = Vertical position of the image's center (default 0)
- img->centerY = Horizontal position of the image's center (default 0)
- img->angle = Angle the image is drawn at (default 0)
- Example: Draw an image, full screen
- Parameters:
-
| img | - The Image you would like to draw. |
Definition at line 496 of file image.c.
References angle, centerX, centerY, data, endX, endY, height, initHeight, initWidth, realHeight, realWidth, startX, startY, TP_Vertex_3D::u, TP_Vertex_3D::v, vfpu_identity_m(), vfpu_rotateZ_m(), vfpu_translate_m(), width, TP_Vertex_3D::x, x, TP_Vertex_3D::y, y, and TP_Vertex_3D::z.
|