naev 0.12.5
glTexture Struct Reference

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

Detailed Description

Abstraction for rendering sprite sheets.

The basic unit all the graphic rendering works with.

Definition at line 43 of file opengl_tex.h.

Field Documentation

◆ flags

uint8_t glTexture::flags

flags used for texture properties

Definition at line 64 of file opengl_tex.h.

◆ h

double glTexture::h

Real height of the image.

Definition at line 48 of file opengl_tex.h.

◆ name

char* glTexture::name

name of the graphic

Definition at line 44 of file opengl_tex.h.

◆ sh

double glTexture::sh

Height of a sprite.

Definition at line 54 of file opengl_tex.h.

◆ srh

double glTexture::srh

Sprite render height - equivalent to sh/h.

Definition at line 56 of file opengl_tex.h.

◆ srw

double glTexture::srw

Sprite render width - equivalent to sw/w.

Definition at line 55 of file opengl_tex.h.

◆ sw

double glTexture::sw

Width of a sprite.

Definition at line 53 of file opengl_tex.h.

◆ sx

double glTexture::sx

Number of sprites on the x axis.

Definition at line 51 of file opengl_tex.h.

◆ sy

double glTexture::sy

Number of sprites on the y axis.

Definition at line 52 of file opengl_tex.h.

◆ texture

GLuint glTexture::texture

the opengl texture itself

Definition at line 59 of file opengl_tex.h.

◆ trans

uint8_t* glTexture::trans

maps the transparency

Definition at line 60 of file opengl_tex.h.

◆ vmax

double glTexture::vmax

Maximum value for SDF textures.

Definition at line 61 of file opengl_tex.h.

◆ w

double glTexture::w

Real width of the image.

Definition at line 47 of file opengl_tex.h.


The documentation for this struct was generated from the following file: