![]() |
naev 0.10.4
|
Abstraction for rendering sprite sheets. More...
#include <opengl_tex.h>
Data Fields | |
| char * | name |
| double | w |
| double | h |
| double | sx |
| double | sy |
| double | sw |
| double | sh |
| double | srw |
| double | srh |
| GLuint | texture |
| uint8_t * | trans |
| uint8_t | flags |
Abstraction for rendering sprite sheets.
The basic unit all the graphic rendering works with.
Definition at line 34 of file opengl_tex.h.
| uint8_t glTexture::flags |
flags used for texture properties
Definition at line 54 of file opengl_tex.h.
| double glTexture::h |
Real height of the image.
Definition at line 39 of file opengl_tex.h.
| char* glTexture::name |
name of the graphic
Definition at line 35 of file opengl_tex.h.
| double glTexture::sh |
Height of a sprite.
Definition at line 45 of file opengl_tex.h.
| double glTexture::srh |
Sprite render height - equivalent to sh/h.
Definition at line 47 of file opengl_tex.h.
| double glTexture::srw |
Sprite render width - equivalent to sw/w.
Definition at line 46 of file opengl_tex.h.
| double glTexture::sw |
Width of a sprite.
Definition at line 44 of file opengl_tex.h.
| double glTexture::sx |
Number of sprites on the x axis.
Definition at line 42 of file opengl_tex.h.
| double glTexture::sy |
Number of sprites on the y axis.
Definition at line 43 of file opengl_tex.h.
| GLuint glTexture::texture |
the opengl texture itself
Definition at line 50 of file opengl_tex.h.
| uint8_t* glTexture::trans |
maps the transparency
Definition at line 51 of file opengl_tex.h.
| double glTexture::w |
Real width of the image.
Definition at line 38 of file opengl_tex.h.