GLUS
|
#include "GL/glus.h"
Functions | |
GLUSboolean GLUSAPIENTRY | glusRaytracePerspectivef (GLUSfloat *directionBuffer, const GLUSubyte padding, const GLUSfloat fovy, const GLUSint width, const GLUSint height) |
Creates normals in a buffer for ray traced perspective projection. More... | |
GLUSvoid GLUSAPIENTRY | glusRaytraceLookAtf (GLUSfloat *positionBuffer, GLUSfloat *directionBuffer, const GLUSfloat *originDirectionBuffer, const GLUSubyte padding, const GLUSint width, const GLUSint height, const GLUSfloat eyeX, const GLUSfloat eyeY, const GLUSfloat eyeZ, const GLUSfloat centerX, const GLUSfloat centerY, const GLUSfloat centerZ, const GLUSfloat upX, const GLUSfloat upY, const GLUSfloat upZ) |
Creates the positions and directions in buffers needed for ray tracing. More... | |
GLUSvoid GLUSAPIENTRY glusRaytraceLookAtf | ( | GLUSfloat * | positionBuffer, |
GLUSfloat * | directionBuffer, | ||
const GLUSfloat * | originDirectionBuffer, | ||
const GLUSubyte | padding, | ||
const GLUSint | width, | ||
const GLUSint | height, | ||
const GLUSfloat | eyeX, | ||
const GLUSfloat | eyeY, | ||
const GLUSfloat | eyeZ, | ||
const GLUSfloat | centerX, | ||
const GLUSfloat | centerY, | ||
const GLUSfloat | centerZ, | ||
const GLUSfloat | upX, | ||
const GLUSfloat | upY, | ||
const GLUSfloat | upZ | ||
) |
Creates the positions and directions in buffers needed for ray tracing.
positionBuffer | The resulting position buffer. Positions are in homogeneous coordinates. |
directionBuffer | The resulting direction buffer. |
originDirectionBuffer | The direction buffer, pointing to -Z direction. |
padding | Amount of padding bytes. |
width | The width of the buffers. |
height | The height of the buffers. |
eyeX | Eye / camera X position. |
eyeY | Eye / camera Y position. |
eyeZ | Eye / camera Z position. |
centerX | X Position, where the view / camera points to. |
centerY | Y Position, where the view / camera points to. |
centerZ | Z Position, where the view / camera points to. |
upX | Eye / camera X component from up vector. |
upY | Eye / camera Y component from up vector. |
upZ | Eye / camera Z component from up vector. |
GLUSboolean GLUSAPIENTRY glusRaytracePerspectivef | ( | GLUSfloat * | directionBuffer, |
const GLUSubyte | padding, | ||
const GLUSfloat | fovy, | ||
const GLUSint | width, | ||
const GLUSint | height | ||
) |
Creates normals in a buffer for ray traced perspective projection.
Directions are pointing to -Z direction.
directionBuffer | The resulting direction buffer. |
padding | Amount of padding bytes. |
fovy | Field of view. |
width | Width of the buffer. |
height | Height of the buffer. |