naev 0.12.5
glInfo Struct Reference

Stores data about the current opengl environment. More...

#include <opengl.h>

Data Fields

int major
int minor
int glsl
int x
int y
int w
int h
int nw
int nh
int rw
int rh
double scale
double wscale
double hscale
double dwscale
double dhscale
double mxscale
double myscale
int depth
int r
int g
int b
int a
unsigned int flags
int tex_max
int multitex_max
int fsaa
SDL_Window * window
SDL_GLContext context
GLuint current_fbo
GLuint fbo [OPENGL_NUM_FBOS]
GLuint fbo_tex [OPENGL_NUM_FBOS]
GLuint fbo_depth_tex [OPENGL_NUM_FBOS]

Detailed Description

Stores data about the current opengl environment.

Definition at line 37 of file opengl.h.

Field Documentation

◆ a

int glInfo::a

How many alpha bits we have.

Definition at line 65 of file opengl.h.

◆ b

int glInfo::b

How many blue bits we have.

Definition at line 64 of file opengl.h.

◆ context

SDL_GLContext glInfo::context

Context for OpenGL.

Definition at line 71 of file opengl.h.

◆ current_fbo

GLuint glInfo::current_fbo

Current framebuffer.

Definition at line 72 of file opengl.h.

◆ depth

int glInfo::depth

Depth in bpp

Definition at line 61 of file opengl.h.

◆ dhscale

double glInfo::dhscale

Drawable width scale factor.

Definition at line 58 of file opengl.h.

◆ dwscale

double glInfo::dwscale

Drawable height scale factor.

Definition at line 57 of file opengl.h.

◆ fbo

GLuint glInfo::fbo[OPENGL_NUM_FBOS]

Framebuffers.

Definition at line 73 of file opengl.h.

◆ fbo_depth_tex

GLuint glInfo::fbo_depth_tex[OPENGL_NUM_FBOS]

Depth texture for framebuffers.

Definition at line 76 of file opengl.h.

◆ fbo_tex

GLuint glInfo::fbo_tex[OPENGL_NUM_FBOS]

Texture for framebuffers.

Definition at line 74 of file opengl.h.

◆ flags

unsigned int glInfo::flags

Stores different properties

Definition at line 66 of file opengl.h.

◆ fsaa

int glInfo::fsaa

Full Scene Anti Aliasing level.

Definition at line 69 of file opengl.h.

◆ g

int glInfo::g

How many green bits we have.

Definition at line 63 of file opengl.h.

◆ glsl

int glInfo::glsl

GLSL version.

Definition at line 40 of file opengl.h.

◆ h

int glInfo::h

Window viewport height.

Definition at line 45 of file opengl.h.

◆ hscale

double glInfo::hscale

Height scale factor.

Definition at line 56 of file opengl.h.

◆ major

int glInfo::major

OpenGL major version.

Definition at line 38 of file opengl.h.

◆ minor

int glInfo::minor

OpenGL minor version.

Definition at line 39 of file opengl.h.

◆ multitex_max

int glInfo::multitex_max

Maximum multitexture levels

Definition at line 68 of file opengl.h.

◆ mxscale

double glInfo::mxscale

Mouse X scale factor.

Definition at line 59 of file opengl.h.

◆ myscale

double glInfo::myscale

Mouse y scale factor.

Definition at line 60 of file opengl.h.

◆ nh

int glInfo::nh

Scaled window height.

Definition at line 49 of file opengl.h.

◆ nw

int glInfo::nw

Scaled window width.

Definition at line 48 of file opengl.h.

◆ r

int glInfo::r

How many red bits we have.

Definition at line 62 of file opengl.h.

◆ rh

int glInfo::rh

Real window height.

Definition at line 53 of file opengl.h.

◆ rw

int glInfo::rw

Real window width.

Definition at line 52 of file opengl.h.

◆ scale

double glInfo::scale

Scale factor.

Definition at line 54 of file opengl.h.

◆ tex_max

int glInfo::tex_max

Maximum texture size

Definition at line 67 of file opengl.h.

◆ w

int glInfo::w

Window viewport width.

Definition at line 44 of file opengl.h.

◆ window

SDL_Window* glInfo::window

Window for SDL2.

Definition at line 70 of file opengl.h.

◆ wscale

double glInfo::wscale

Width scale factor.

Definition at line 55 of file opengl.h.

◆ x

int glInfo::x

X offset of window viewport.

Definition at line 41 of file opengl.h.

◆ y

int glInfo::y

Y offset of window viewport.

Definition at line 42 of file opengl.h.


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