Objeto de textura de SDL.
Más...
#include <sdl_texture.h>
|
| SDLTexture (SDL_Renderer *renderer) |
| Crea un objeto SDLTexture vacio. Más...
|
|
| SDLTexture (const std::string &filename, SDL_Renderer *renderer) |
|
| SDLTexture (const std::string &filename, SDL_Renderer *renderer, uint8_t r, uint8_t g, uint8_t b) |
| Crea un objeto SDLTexture. Más...
|
|
| SDLTexture (const SDLTexture &other)=delete |
|
SDLTexture & | operator= (const SDLTexture &other)=delete |
|
| SDLTexture (SDLTexture &&other) |
|
SDLTexture & | operator= (SDLTexture &&other) |
|
void | render (SDL_Rect src, SDL_Rect dest) const |
| Renderiza la textura. Más...
|
|
void | render (SDL_Rect dest) const |
| Renderiza la textura. Más...
|
|
int | get_width () const |
|
int | get_height () const |
|
void | set_color_mod (uint8_t r, uint8_t g, uint8_t b) |
|
void | reset_color_mod () |
|
void | set_alpha (uint8_t a) |
|
void | reset_alpha () |
|
|
SDL_Renderer * | renderer |
|
SDL_Texture * | texture |
|
int | width |
|
int | height |
|
Objeto de textura de SDL.
◆ SDLTexture() [1/2]
SDLTexture::SDLTexture |
( |
SDL_Renderer * |
renderer | ) |
|
Crea un objeto SDLTexture vacio.
- Parámetros
-
renderer | Renderer al cual se asocia la textura. |
◆ SDLTexture() [2/2]
SDLTexture::SDLTexture |
( |
const std::string & |
filename, |
|
|
SDL_Renderer * |
renderer, |
|
|
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
Crea un objeto SDLTexture.
Toma como transparencia el color key indicado en los parametros r,g,b.
- Parámetros
-
filename | Nombre del archivo a partir del cual se debe generar la textura. |
renderer | Renderer al cual se asocia la textura. |
r | Rojo del color key. |
g | Verde del color key. |
b | Azul del color key. |
◆ render() [1/2]
void SDLTexture::render |
( |
SDL_Rect |
dest | ) |
const |
Renderiza la textura.
- Parámetros
-
dest | Cuadro de destino en pantalla. |
◆ render() [2/2]
void SDLTexture::render |
( |
SDL_Rect |
src, |
|
|
SDL_Rect |
dest |
|
) |
| const |
Renderiza la textura.
- Parámetros
-
src | Cuadro de origen dentro de la textura (si no se desea renderizar la totalidad de la misma). |
dest | Cuadro de destino en pantalla. |
La documentación para esta clase fue generada a partir de los siguientes ficheros:
- /home/nicolas/Taller/TP FINAL - ARGENTUM/repo/client/engine/SDL/sdl_texture.h
- /home/nicolas/Taller/TP FINAL - ARGENTUM/repo/client/engine/SDL/sdl_texture.cpp