FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "cmdline/cmdline.h"
#include "globalincs/alphacolors.h"
#include "globalincs/def_files.h"
#include "globalincs/systemvars.h"
#include "graphics/2d.h"
#include "graphics/grinternal.h"
#include "graphics/gropengldraw.h"
#include "graphics/gropenglextension.h"
#include "graphics/gropengllight.h"
#include "graphics/gropenglshader.h"
#include "graphics/gropenglstate.h"
#include "graphics/gropengltexture.h"
#include "graphics/gropengltnl.h"
#include "lighting/lighting.h"
#include "math/vecmat.h"
#include "render/3d.h"
#include "weapon/trails.h"
Go to the source code of this file.
Classes | |
struct | opengl_buffer_object |
struct | opengl_vertex_buffer |
Macros | |
#define | DO_RENDER() |
#define | BUFFER_OFFSET(off) (vbuffer+bufferp->vertex_offset+(off)) |
#define BUFFER_OFFSET | ( | off | ) | (vbuffer+bufferp->vertex_offset+(off)) |
#define DO_RENDER | ( | ) |
Definition at line 783 of file gropengltnl.cpp.
bool gr_opengl_config_buffer | ( | const int | buffer_id, |
vertex_buffer * | vb, | ||
bool | update_ibuffer_only | ||
) |
Definition at line 357 of file gropengltnl.cpp.
int gr_opengl_create_buffer | ( | ) |
Definition at line 343 of file gropengltnl.cpp.
int gr_opengl_create_stream_buffer_object | ( | ) |
Definition at line 218 of file gropengltnl.cpp.
Definition at line 578 of file gropengltnl.cpp.
void gr_opengl_end_2d_matrix | ( | ) |
Definition at line 1784 of file gropengltnl.cpp.
void gr_opengl_end_clip_plane | ( | ) |
Definition at line 1834 of file gropengltnl.cpp.
void gr_opengl_end_instance_matrix | ( | ) |
Definition at line 1531 of file gropengltnl.cpp.
void gr_opengl_end_projection_matrix | ( | ) |
Definition at line 1581 of file gropengltnl.cpp.
void gr_opengl_end_view_matrix | ( | ) |
Definition at line 1721 of file gropengltnl.cpp.
bool gr_opengl_pack_buffer | ( | const int | buffer_id, |
vertex_buffer * | vb | ||
) |
Definition at line 434 of file gropengltnl.cpp.
void gr_opengl_pop_scale_matrix | ( | ) |
Definition at line 1823 of file gropengltnl.cpp.
Definition at line 1810 of file gropengltnl.cpp.
void gr_opengl_render_buffer | ( | int | start, |
const vertex_buffer * | bufferp, | ||
int | texi, | ||
int | flags | ||
) |
Definition at line 1328 of file gropengltnl.cpp.
Definition at line 1358 of file gropengltnl.cpp.
void gr_opengl_set_2d_matrix | ( | ) |
Definition at line 1738 of file gropengltnl.cpp.
Definition at line 552 of file gropengltnl.cpp.
Definition at line 1545 of file gropengltnl.cpp.
void gr_opengl_set_team_color | ( | const team_color * | colors | ) |
Definition at line 719 of file gropengltnl.cpp.
Definition at line 730 of file gropengltnl.cpp.
Definition at line 273 of file gropengltnl.cpp.
Definition at line 1608 of file gropengltnl.cpp.
void gr_opengl_shadow_map_end | ( | ) |
Definition at line 1907 of file gropengltnl.cpp.
Definition at line 1877 of file gropengltnl.cpp.
void gr_opengl_start_clip_plane | ( | ) |
Definition at line 1847 of file gropengltnl.cpp.
Definition at line 1517 of file gropengltnl.cpp.
Definition at line 1482 of file gropengltnl.cpp.
Definition at line 186 of file gropengltnl.cpp.
Definition at line 255 of file gropengltnl.cpp.
void mix_two_team_colors | ( | team_color * | dest, |
team_color * | a, | ||
team_color * | b, | ||
float | mix_factor | ||
) |
Definition at line 709 of file gropengltnl.cpp.
Definition at line 159 of file gropengltnl.cpp.
Definition at line 144 of file gropengltnl.cpp.
int opengl_create_texture_buffer_object | ( | ) |
Definition at line 227 of file gropengltnl.cpp.
Definition at line 202 of file gropengltnl.cpp.
void opengl_destroy_all_buffers | ( | ) |
Definition at line 605 of file gropengltnl.cpp.
GLuint opengl_get_transform_buffer_texture | ( | ) |
Definition at line 264 of file gropengltnl.cpp.
void opengl_tnl_init | ( | ) |
Definition at line 619 of file gropengltnl.cpp.
Definition at line 1930 of file gropengltnl.cpp.
Definition at line 2189 of file gropengltnl.cpp.
Definition at line 2149 of file gropengltnl.cpp.
void opengl_tnl_shutdown | ( | ) |
Definition at line 694 of file gropengltnl.cpp.
bool Basemap_override |
Definition at line 70 of file systemvars.cpp.
int CLOAKMAP |
Called in game_shutdown() to free malloced memory
NOTE: do not call this function. It is only called from game_shutdown()
team_color* Current_team_color |
Definition at line 78 of file gropengltnl.cpp.
team_color Current_temp_color |
Definition at line 79 of file gropengltnl.cpp.
int Distortion_switch |
Definition at line 47 of file gropengldraw.cpp.
GLuint Distortion_texture[2] |
Definition at line 46 of file gropengldraw.cpp.
bool Envmap_override |
Definition at line 71 of file systemvars.cpp.
GLuint Framebuffer_fallback_texture_id |
Definition at line 32 of file gropenglshader.cpp.
int G3_user_clip |
Definition at line 360 of file 3dsetup.cpp.
vec3d G3_user_clip_normal |
Definition at line 361 of file 3dsetup.cpp.
vec3d G3_user_clip_point |
Definition at line 362 of file 3dsetup.cpp.
unsigned int GL_last_shader_flags = 0 |
Definition at line 789 of file gropengltnl.cpp.
int GL_last_shader_index = -1 |
Definition at line 790 of file gropengltnl.cpp.
GLint GL_max_elements_indices = 4096 |
Definition at line 75 of file gropengltnl.cpp.
GLint GL_max_elements_vertices = 4096 |
Definition at line 74 of file gropengltnl.cpp.
float GL_thrust_scale = -1.0f |
Definition at line 77 of file gropengltnl.cpp.
int GL_transform_buffer_offset = -1 |
Definition at line 82 of file gropengltnl.cpp.
int GL_vertex_data_in = 0 |
Definition at line 72 of file gropengltnl.cpp.
int GLOWMAP |
References a map that is a fully lit version of its index -Bobboau.
Definition at line 57 of file bmpman.cpp.
bool Glowpoint_override |
Definition at line 75 of file systemvars.cpp.
bool Glowpoint_override_save |
Definition at line 1875 of file gropengltnl.cpp.
bool GLSL_override |
Definition at line 77 of file systemvars.cpp.
int HEIGHTMAP |
Height map for normal mapping.
Definition at line 61 of file bmpman.cpp.
bool Heightmap_override |
Definition at line 74 of file systemvars.cpp.
int Interp_cloakmap_alpha |
Definition at line 210 of file modelinterp.cpp.
int Interp_multitex_cloakmap |
Definition at line 209 of file modelinterp.cpp.
float Interp_thrust_scale |
Definition at line 161 of file modelinterp.cpp.
int Interp_thrust_scale_subobj |
Definition at line 160 of file modelinterp.cpp.
int MISCMAP |
Utility map, to be utilized for various things shader authors can come up with.
Definition at line 62 of file bmpman.cpp.
bool Normalmap_override |
Definition at line 73 of file systemvars.cpp.
int NORMMAP |
Normal mapping.
Definition at line 60 of file bmpman.cpp.
matrix Object_matrix |
Definition at line 43 of file 3dsetup.cpp.
vec3d Object_position |
Definition at line 42 of file 3dsetup.cpp.
bool Rendering_to_shadow_map = false |
Definition at line 88 of file gropengltnl.cpp.
GLint saved_fb = 0 |
Definition at line 87 of file gropengltnl.cpp.
GLuint Scene_depth_texture |
Definition at line 41 of file gropengldraw.cpp.
bool Scene_framebuffer_in_frame |
Definition at line 50 of file gropengldraw.cpp.
GLuint Scene_position_texture |
Definition at line 36 of file gropengldraw.cpp.
GLuint shadow_fbo = 0 |
Definition at line 86 of file gropengltnl.cpp.
GLuint Shadow_map_depth_texture = 0 |
Definition at line 85 of file gropengltnl.cpp.
GLuint Shadow_map_texture = 0 |
Definition at line 84 of file gropengltnl.cpp.
bool Shadow_override |
Definition at line 80 of file systemvars.cpp.
vec3d shadow_ref_point |
Definition at line 68 of file gropengltnl.cpp.
int SPECMAP |
References a map that is for specular mapping -Bobboau.
Definition at line 58 of file bmpman.cpp.
bool Specmap_override |
Definition at line 72 of file systemvars.cpp.
int Transform_buffer_handle = -1 |
Definition at line 90 of file gropengltnl.cpp.
bool Using_Team_Color = false |
Definition at line 80 of file gropengltnl.cpp.