102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
opengl_backend_data Struct Reference

#include <backend_opengl_private.h>

Data Fields

SDL_GLContext gl_context
GLuint program
GLuint vao
GLuint vbo
GLuint fbo
GLuint fbo_color_tex
GLuint fbo_depth_rbo
int fbo_width
int fbo_height
GLuint gl_textures [DTTR_MAX_STAGED_TEXTURES]
GLuint deferred_gl_destroys [DTTR_MAX_STAGED_TEXTURES]
int deferred_gl_destroy_count
GLuint gl_samplers [DTTR_SAMPLER_COUNT]
GLuint dummy_texture
GLuint video_texture
int video_width
int video_height
voidvertex_staging
GLint loc_mvp
GLint loc_screen_size
GLint loc_is_2d
GLint loc_has_texture
GLint loc_color_op
GLint loc_color_arg1
GLint loc_color_arg2
GLint loc_alpha_op
GLint loc_alpha_arg1
GLint loc_alpha_arg2
GLint loc_texture
GLuint msaa_fbo
GLuint msaa_color_rbo
GLuint msaa_depth_rbo
int msaa_samples
GLuint pending_mipmap_textures [DTTR_MAX_STAGED_TEXTURES]
int pending_mipmap_count

Detailed Description

Definition at line 10 of file backend_opengl_private.h.

Field Documentation

◆ deferred_gl_destroy_count

int opengl_backend_data::deferred_gl_destroy_count

Definition at line 22 of file backend_opengl_private.h.

Referenced by defer_texture_destroy(), and release_deferred_gl_destroys().

◆ deferred_gl_destroys

GLuint opengl_backend_data::deferred_gl_destroys[DTTR_MAX_STAGED_TEXTURES]

Definition at line 21 of file backend_opengl_private.h.

Referenced by defer_texture_destroy(), and release_deferred_gl_destroys().

◆ dummy_texture

GLuint opengl_backend_data::dummy_texture

◆ fbo

GLuint opengl_backend_data::fbo

◆ fbo_color_tex

GLuint opengl_backend_data::fbo_color_tex

Definition at line 16 of file backend_opengl_private.h.

Referenced by create_fbo(), and destroy_fbo().

◆ fbo_depth_rbo

GLuint opengl_backend_data::fbo_depth_rbo

Definition at line 17 of file backend_opengl_private.h.

Referenced by create_fbo(), and destroy_fbo().

◆ fbo_height

int opengl_backend_data::fbo_height

◆ fbo_width

int opengl_backend_data::fbo_width

◆ gl_context

SDL_GLContext opengl_backend_data::gl_context

Definition at line 11 of file backend_opengl_private.h.

Referenced by cleanup(), and dttr_graphics_opengl_init().

◆ gl_samplers

GLuint opengl_backend_data::gl_samplers[DTTR_SAMPLER_COUNT]

Definition at line 23 of file backend_opengl_private.h.

Referenced by cleanup(), create_samplers(), and replay_batch_records_gl().

◆ gl_textures

GLuint opengl_backend_data::gl_textures[DTTR_MAX_STAGED_TEXTURES]

◆ loc_alpha_arg1

GLint opengl_backend_data::loc_alpha_arg1

◆ loc_alpha_arg2

GLint opengl_backend_data::loc_alpha_arg2

◆ loc_alpha_op

GLint opengl_backend_data::loc_alpha_op

◆ loc_color_arg1

GLint opengl_backend_data::loc_color_arg1

◆ loc_color_arg2

GLint opengl_backend_data::loc_color_arg2

◆ loc_color_op

GLint opengl_backend_data::loc_color_op

◆ loc_has_texture

GLint opengl_backend_data::loc_has_texture

◆ loc_is_2d

GLint opengl_backend_data::loc_is_2d

◆ loc_mvp

GLint opengl_backend_data::loc_mvp

◆ loc_screen_size

GLint opengl_backend_data::loc_screen_size

◆ loc_texture

GLint opengl_backend_data::loc_texture

◆ msaa_color_rbo

GLuint opengl_backend_data::msaa_color_rbo

Definition at line 41 of file backend_opengl_private.h.

Referenced by create_msaa_fbo(), and destroy_msaa_fbo().

◆ msaa_depth_rbo

GLuint opengl_backend_data::msaa_depth_rbo

Definition at line 42 of file backend_opengl_private.h.

Referenced by create_msaa_fbo(), and destroy_msaa_fbo().

◆ msaa_fbo

GLuint opengl_backend_data::msaa_fbo

◆ msaa_samples

int opengl_backend_data::msaa_samples

◆ pending_mipmap_count

int opengl_backend_data::pending_mipmap_count

Definition at line 45 of file backend_opengl_private.h.

Referenced by upload_pending_textures_gl().

◆ pending_mipmap_textures

GLuint opengl_backend_data::pending_mipmap_textures[DTTR_MAX_STAGED_TEXTURES]

Definition at line 44 of file backend_opengl_private.h.

Referenced by upload_pending_textures_gl().

◆ program

GLuint opengl_backend_data::program

◆ vao

GLuint opengl_backend_data::vao

◆ vbo

GLuint opengl_backend_data::vbo

◆ vertex_staging

void* opengl_backend_data::vertex_staging

◆ video_height

int opengl_backend_data::video_height

Definition at line 27 of file backend_opengl_private.h.

Referenced by upload_video_texture().

◆ video_texture

GLuint opengl_backend_data::video_texture

◆ video_width

int opengl_backend_data::video_width

Definition at line 26 of file backend_opengl_private.h.

Referenced by upload_video_texture().


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