![]() |
DI-Guy SDK Documentation
13.6
|
#include <GL/glew.h>#include <GL/gl.h>#include <string>#include <diguyApp.h>#include <diguyCharacter.h>#include <diguyGraphicsShaderProgram.h>#include <diguyImpact.h>#include <diguyScenario.h>#include <libbdilog.h>#include "diguyOglUtils.h"#include "diguyOglUniformBuffer.h"#include "diguyOglGraphicsFrameBuffer.h"Functions | |
| void | bdi_opengl_error_callback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const GLvoid *userParam) |
| int | read_back_depth_buffer (float pick_xf, float pick_yf, int *hits, diguyImpact *impact) |
| 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. More... | |
Variables | |
| static diguyGraphicsFrameBuffer * | s_fbo = NULL |
| void bdi_opengl_error_callback | ( | GLenum | source, |
| GLenum | type, | ||
| GLuint | id, | ||
| GLenum | severity, | ||
| GLsizei | length, | ||
| const GLchar * | message, | ||
| const GLvoid * | userParam | ||
| ) |
| int read_back_depth_buffer | ( | float | pick_xf, |
| float | pick_yf, | ||
| int * | hits, | ||
| diguyImpact * | impact | ||
| ) |
| 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.
It uses a minimal render of the scene and characters into the back buffer to fill out the impact structure.
It may be useful to combine your intersection results with the results from this function.
|
static |