Helper class for drawing textures.
More...
#include <DrawTextureHelper.hpp>
|
| static void | drawTexture (const texture::RlTexture &texture, int posX, int posY, const RlColor &tint) |
| | Draw a texture. More...
|
| |
| static void | drawTexture (const texture::RlTexture &texture, const Vector2f &position, const RlColor &tint) |
| | Draw a texture with position defined as Vector2f. More...
|
| |
| static void | drawTexture (const texture::RlTexture &texture, const Vector2f &position, float rotation, float scale, const RlColor &tint) |
| | Draw a texture with extended parameters. More...
|
| |
| static void | drawTextureRec (const texture::RlTexture &texture, const Rectangle &source, const Vector2f &position, const RlColor &tint) |
| | Draw a part of a texture defined by a rectangle. More...
|
| |
| static void | drawTextureQuad (const texture::RlTexture &texture, const Vector2f &tiling, const Vector2f &offset, const Rectangle &quad, const RlColor &tint) |
| | Draw a texture quad with tiling and offset parameters. More...
|
| |
| static void | drawTextureTiled (const texture::RlTexture &texture, const Rectangle &source, const Rectangle &dest, const Vector2f &origin, float rotation, float scale, const RlColor &tint) |
| | Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest. More...
|
| |
| static void | drawTexture (const texture::RlTexture &texture, const Rectangle &source, const Rectangle &dest, const Vector2f &origin, float rotation, const RlColor &tint) |
| | Draw a part of a texture defined by a rectangle with 'pro' parameters. More...
|
| |
| static void | drawTextureNPatch (const texture::RlTexture &texture, const NPatchInfo &nPatchInfo, const Rectangle &dest, const Vector2f &origin, float rotation, const RlColor &tint) |
| | Draws a texture (or part of it) that stretches or shrinks nicely. More...
|
| |
| static void | drawTexturePoly (const texture::RlTexture &texture, const Vector2f ¢er, const std::vector< Vector2f > &points, std::vector< Vector2f > &texcoords, const RlColor &tint) |
| | Draw a textured polygon. More...
|
| |
Helper class for drawing textures.
◆ drawTexture() [1/4]
| void raylib::helper::draw::DrawTextureHelper::drawTexture |
( |
const texture::RlTexture & |
texture, |
|
|
const Rectangle & |
source, |
|
|
const Rectangle & |
dest, |
|
|
const Vector2f & |
origin, |
|
|
float |
rotation, |
|
|
const RlColor & |
tint |
|
) |
| |
|
static |
Draw a part of a texture defined by a rectangle with 'pro' parameters.
- Parameters
-
| texture | the texture to Draw |
| source | the rectangle of the texture to Draw |
| dest | the rectangle of the texture to Draw into |
| origin | the origin of the texture |
| rotation | the rotation of the texture |
| tint | the color tint of the texture |
◆ drawTexture() [2/4]
Draw a texture with position defined as Vector2f.
- Parameters
-
| texture | the texture to Draw |
| position | the position of the texture |
| tint | the color tint of the texture |
◆ drawTexture() [3/4]
| void raylib::helper::draw::DrawTextureHelper::drawTexture |
( |
const texture::RlTexture & |
texture, |
|
|
const Vector2f & |
position, |
|
|
float |
rotation, |
|
|
float |
scale, |
|
|
const RlColor & |
tint |
|
) |
| |
|
static |
Draw a texture with extended parameters.
- Parameters
-
| texture | the texture to Draw |
| position | the position of the texture |
| rotation | the rotation of the texture |
| scale | the scale of the texture |
| tint | the color tint of the texture |
◆ drawTexture() [4/4]
| void raylib::helper::draw::DrawTextureHelper::drawTexture |
( |
const texture::RlTexture & |
texture, |
|
|
int |
posX, |
|
|
int |
posY, |
|
|
const RlColor & |
tint |
|
) |
| |
|
static |
Draw a texture.
- Parameters
-
| texture | the texture to Draw |
| posX | the x position of the texture |
| posY | the y position of the texture |
| tint | the color tint of the texture |
◆ drawTextureNPatch()
| void raylib::helper::draw::DrawTextureHelper::drawTextureNPatch |
( |
const texture::RlTexture & |
texture, |
|
|
const NPatchInfo & |
nPatchInfo, |
|
|
const Rectangle & |
dest, |
|
|
const Vector2f & |
origin, |
|
|
float |
rotation, |
|
|
const RlColor & |
tint |
|
) |
| |
|
static |
Draws a texture (or part of it) that stretches or shrinks nicely.
- Parameters
-
| texture | the texture to Draw |
| nPatchInfo | the rectangle of the texture to Draw |
| dest | the rectangle of the texture to Draw into |
| origin | the origin of the texture |
| rotation | the rotation of the texture |
| tint | the color tint of the texture |
◆ drawTexturePoly()
Draw a textured polygon.
- Parameters
-
| texture | the texture to Draw |
| center | the center of the texture |
| points | the points of the texture |
| texcoords | the texture coordinates of the texture |
| tint | the color tint of the texture |
- Attention
- The points and texcoords must have the same size
- Exceptions
-
◆ drawTextureQuad()
Draw a texture quad with tiling and offset parameters.
- Parameters
-
| texture | the texture to Draw |
| tiling | the tiling of the texture |
| offset | the offset of the texture |
| quad | the quad of the texture |
| tint | the color tint of the texture |
◆ drawTextureRec()
| void raylib::helper::draw::DrawTextureHelper::drawTextureRec |
( |
const texture::RlTexture & |
texture, |
|
|
const Rectangle & |
source, |
|
|
const Vector2f & |
position, |
|
|
const RlColor & |
tint |
|
) |
| |
|
static |
Draw a part of a texture defined by a rectangle.
- Parameters
-
| texture | the texture to Draw |
| source | the rectangle of the texture to Draw |
| position | the position of the texture |
| tint | the color tint of the texture |
◆ drawTextureTiled()
| void raylib::helper::draw::DrawTextureHelper::drawTextureTiled |
( |
const texture::RlTexture & |
texture, |
|
|
const Rectangle & |
source, |
|
|
const Rectangle & |
dest, |
|
|
const Vector2f & |
origin, |
|
|
float |
rotation, |
|
|
float |
scale, |
|
|
const RlColor & |
tint |
|
) |
| |
|
static |
Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
- Parameters
-
| texture | the texture to Draw |
| source | the rectangle of the texture to Draw |
| dest | the rectangle of the texture to Draw into |
| origin | the origin of the texture |
| rotation | the rotation of the texture |
| scale | the scale of the texture |
| tint | the color tint of the texture |
The documentation for this class was generated from the following files: