![]() |
naev 0.12.5
|
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 |
| double | vmax |
| uint8_t | flags |
Abstraction for rendering sprite sheets.
The basic unit all the graphic rendering works with.
Definition at line 43 of file opengl_tex.h.
| uint8_t glTexture::flags |
flags used for texture properties
Definition at line 64 of file opengl_tex.h.
| double glTexture::h |
Real height of the image.
Definition at line 48 of file opengl_tex.h.
| char* glTexture::name |
name of the graphic
Definition at line 44 of file opengl_tex.h.
| double glTexture::sh |
Height of a sprite.
Definition at line 54 of file opengl_tex.h.
| double glTexture::srh |
Sprite render height - equivalent to sh/h.
Definition at line 56 of file opengl_tex.h.
| double glTexture::srw |
Sprite render width - equivalent to sw/w.
Definition at line 55 of file opengl_tex.h.
| double glTexture::sw |
Width of a sprite.
Definition at line 53 of file opengl_tex.h.
| double glTexture::sx |
Number of sprites on the x axis.
Definition at line 51 of file opengl_tex.h.
| double glTexture::sy |
Number of sprites on the y axis.
Definition at line 52 of file opengl_tex.h.
| GLuint glTexture::texture |
the opengl texture itself
Definition at line 59 of file opengl_tex.h.
| uint8_t* glTexture::trans |
maps the transparency
Definition at line 60 of file opengl_tex.h.
| double glTexture::vmax |
Maximum value for SDF textures.
Definition at line 61 of file opengl_tex.h.
| double glTexture::w |
Real width of the image.
Definition at line 47 of file opengl_tex.h.