14 #ifndef __diguy_graphics_ogl_H
15 #define __diguy_graphics_ogl_H
60 BDI_DECLSPEC_diguy_graphics
int
77 BDI_DECLSPEC_diguy_graphics
int
91 BDI_DECLSPEC_diguy_graphics
115 #ifdef CPLUSPLUS_ONLY
189 BDI_DECLSPEC_diguy_graphics
191 int character_index);
209 BDI_DECLSPEC_diguy_graphics
211 int character_index);
234 BDI_DECLSPEC_diguy_graphics
236 int character_index);
260 BDI_DECLSPEC_diguy_graphics
263 int texture_list_index);
287 BDI_DECLSPEC_diguy_graphics
290 int texture_list_index);
309 BDI_DECLSPEC_diguy_graphics
311 int character_index);
326 BDI_DECLSPEC_diguy_graphics
334 BDI_DECLSPEC_diguy_graphics
354 BDI_DECLSPEC_diguy_graphics
356 const char* vert_filename,
357 const char* pixel_filename);
387 BDI_DECLSPEC_diguy_graphics
390 BDI_DECLSPEC_diguy_graphics
393 BDI_DECLSPEC_diguy_graphics
396 BDI_DECLSPEC_diguy_graphics
399 BDI_DECLSPEC_diguy_graphics
402 BDI_DECLSPEC_diguy_graphics
405 BDI_DECLSPEC_diguy_graphics
430 BDI_DECLSPEC_diguy_graphics
433 BDI_DECLSPEC_diguy_graphics
436 BDI_DECLSPEC_diguy_graphics
439 BDI_DECLSPEC_diguy_graphics
442 BDI_DECLSPEC_diguy_graphics
446 #endif // CPLUSPLUS_ONLY
int diguy_ogl_draw_frame_stats(int sx, int sy)
int diguy_ogl_clear_all_frame_stats()
int diguy_ogl_release_character_texture_list(diguyScenario *scenario, int character_index)
This function releases a texture list generated by diguy_ogl_generate_character_texture_list().
void diguy_ogl_set_use_far_positions(int val)
This function turns far position rendering on or off.
Definition: diguyViewLight.h:55
int diguy_ogl_2d_get_text_width(const char *text)
A class that represents a bullet impact in the world, often used by AIs to make reaction decisions...
Definition: diguyImpact.h:41
int diguy_ogl_get_fbo_texture_id()
GLuint diguy_ogl_get_character_texture_list_texture_object_at_index(diguyScenario *scenario, int character_index, int texture_list_index)
This function returns the OpenGL texture object at the specified index.
int diguy_ogl_get_use_far_positions()
Returns: 1 if far positions are in use, else 0.
int diguy_default_fire_weapon_intersection_function(diguyImpact *impact, float from_x, float from_y, float from_z, float to_x, float to_y, float to_z, diguyScenario *scenario)
This function is the default fire intersection function.
Definition: diguyOglUtils.cpp:345
Definition: graphics_init_ogl.h:21
void diguy_ogl_set_default_shader_source_files(const char *shader_name, const char *vert_filename, const char *pixel_filename)
This function sets the shader source files that will be used for the specified shader.
Represents the scenario currently being portrayed.
Definition: diguyScenario.h:92
int diguy_ogl_get_frame_stat(const char *stat_name)
int diguy_ogl_2d_get_text_height(const char *text)
const char * diguy_ogl_frame_stat_name(int index)
int diguy_ogl_2d_draw_filled_rect(int x0, int y0, int x1, int y1)
int diguy_ogl_get_num_frame_stats()
int diguy_ogl_reload_changed_textures()
int diguy_ogl_generate_character_texture_list(diguyScenario *scenario, int character_index)
This function queries the character for the OpenGL texture objects it is using and stores them in an ...
int diguy_ogl_initialize(bdiGraphicsInitOgl *init)
This function initializes the DI-Guy Runtime API for the OpenGL environment.
int diguy_ogl_2d_draw_text(int x, int y, const char *text)
int diguy_ogl_set_character_texture_objects_modified(diguyScenario *scenario, int character_index)
This function notifies the character that its texture objects have been modified and that it should t...
static diguyScenario * scenario
Definition: simple_playback_ogl.cpp:56
int diguy_ogl_get_character_texture_list_num_textures(diguyScenario *scenario, int character_index)
This function returns the number of textures used by the specified character.
int diguy_ogl_2d_set_color(float r, float g, float b, float a)
Applies active lights to the OpenGL state, also updates default shader uniforms and calls diguyScenar...
int diguy_ogl_get_defaults(bdiGraphicsInitOgl *init)
Fills out the init structure with default values.
const char * diguy_ogl_get_character_texture_list_texture_filename_at_index(diguyScenario *scenario, int character_index, int texture_list_index)
This function returns the filename of the texture at the specified index.