GLUS
|
#include "GL/glus.h"
Functions | |
GLUSboolean GLUSAPIENTRY | glusMatrix4x4Orthof (GLUSfloat result[16], const GLUSfloat left, const GLUSfloat right, const GLUSfloat bottom, const GLUSfloat top, const GLUSfloat nearVal, const GLUSfloat farVal) |
Creates a matrix with orthogonal projection. More... | |
GLUSboolean GLUSAPIENTRY | glusMatrix4x4Frustumf (GLUSfloat result[16], const GLUSfloat left, const GLUSfloat right, const GLUSfloat bottom, const GLUSfloat top, const GLUSfloat nearVal, const GLUSfloat farVal) |
Creates a matrix with perspective projection. More... | |
GLUSboolean GLUSAPIENTRY | glusMatrix4x4Perspectivef (GLUSfloat result[16], const GLUSfloat fovy, const GLUSfloat aspect, const GLUSfloat zNear, const GLUSfloat zFar) |
Creates a matrix with perspective projection. More... | |
GLUSvoid GLUSAPIENTRY | glusMatrix4x4LookAtf (GLUSfloat result[16], 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 a view / camera matrix. More... | |
GLUSboolean GLUSAPIENTRY glusMatrix4x4Frustumf | ( | GLUSfloat | result[16], |
const GLUSfloat | left, | ||
const GLUSfloat | right, | ||
const GLUSfloat | bottom, | ||
const GLUSfloat | top, | ||
const GLUSfloat | nearVal, | ||
const GLUSfloat | farVal | ||
) |
Creates a matrix with perspective projection.
result | The resulting matrix. |
left | Left corner. |
right | Right corner. |
bottom | Bottom corner. |
top | Top corner. |
nearVal | Near corner. |
farVal | Far corner. |
GLUSvoid GLUSAPIENTRY glusMatrix4x4LookAtf | ( | GLUSfloat | result[16], |
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 a view / camera matrix.
result | The resulting matrix. |
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 glusMatrix4x4Orthof | ( | GLUSfloat | result[16], |
const GLUSfloat | left, | ||
const GLUSfloat | right, | ||
const GLUSfloat | bottom, | ||
const GLUSfloat | top, | ||
const GLUSfloat | nearVal, | ||
const GLUSfloat | farVal | ||
) |
Creates a matrix with orthogonal projection.
result | The resulting matrix. |
left | Left corner. |
right | Right corner. |
bottom | Bottom corner. |
top | Top corner. |
nearVal | Near corner. |
farVal | Far corner. |
GLUSboolean GLUSAPIENTRY glusMatrix4x4Perspectivef | ( | GLUSfloat | result[16], |
const GLUSfloat | fovy, | ||
const GLUSfloat | aspect, | ||
const GLUSfloat | zNear, | ||
const GLUSfloat | zFar | ||
) |
Creates a matrix with perspective projection.
result | The resulting matrix. |
fovy | Field of view. |
aspect | Aspect ratio. |
zNear | Near plane. |
zFar | Far plane. |