naev 0.11.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 36 of file opengl_tex.h.

Field Documentation

◆ flags

uint8_t glTexture::flags

flags used for texture properties

Definition at line 57 of file opengl_tex.h.

◆ h

double glTexture::h

Real height of the image.

Definition at line 41 of file opengl_tex.h.

◆ name

char* glTexture::name

name of the graphic

Definition at line 37 of file opengl_tex.h.

◆ sh

double glTexture::sh

Height of a sprite.

Definition at line 47 of file opengl_tex.h.

◆ srh

double glTexture::srh

Sprite render height - equivalent to sh/h.

Definition at line 49 of file opengl_tex.h.

◆ srw

double glTexture::srw

Sprite render width - equivalent to sw/w.

Definition at line 48 of file opengl_tex.h.

◆ sw

double glTexture::sw

Width of a sprite.

Definition at line 46 of file opengl_tex.h.

◆ sx

double glTexture::sx

Number of sprites on the x axis.

Definition at line 44 of file opengl_tex.h.

◆ sy

double glTexture::sy

Number of sprites on the y axis.

Definition at line 45 of file opengl_tex.h.

◆ texture

GLuint glTexture::texture

the opengl texture itself

Definition at line 52 of file opengl_tex.h.

◆ trans

uint8_t* glTexture::trans

maps the transparency

Definition at line 53 of file opengl_tex.h.

◆ vmax

double glTexture::vmax

Maximum value for SDF textures.

Definition at line 54 of file opengl_tex.h.

◆ w

double glTexture::w

Real width of the image.

Definition at line 40 of file opengl_tex.h.


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