Graphics functions.
More...
#include <mo_gfx.h>
List of all members.
Static Public Member Functions |
| static void | perspective (double fovy, double aspectRatio, double zNear, double zFar) |
| | perspective projection
|
| static void | ortho (GLint width=320, GLint height=480, GLint landscape=0) |
| | orthographic projection
|
| static void | lookAt (double eye_x, double eye_y, double eye_z, double at_x, double at_y, double at_z, double up_x, double up_y, double up_z) |
| | look at
|
| static bool | loadTexture (NSString *name, NSString *ext) |
| | load texture (call this with a texture bound)
|
| static bool | loadTexture (UIImage *image) |
| | load texture from a UIImage
|
| static bool | isPointInTriangle2D (const Vector3D &pt, const Vector3D &a, const Vector3D &b, const Vector3D &c) |
| | point in triangle test (2D)
|
| static double | getCurrentTime (bool fresh) |
| | get current time
|
| static void | resetCurrentTime () |
| | reset current time tracking
|
| static GLfloat | delta () |
| | get delta
|
| static void | setDeltaFactor (GLfloat factor) |
| | set delta factor
|
Static Public Attributes |
| static struct timeval | ourPrevTime |
| static struct timeval | ourCurrTime |
| static GLfloat | ourDeltaFactor = 1.0f |
Detailed Description
Graphics functions.
Member Function Documentation
| GLfloat MoGfx::delta |
( |
|
) |
[static] |
| double MoGfx::getCurrentTime |
( |
bool |
fresh |
) |
[static] |
point in triangle test (2D)
| bool MoGfx::loadTexture |
( |
UIImage * |
image |
) |
[static] |
load texture from a UIImage
| bool MoGfx::loadTexture |
( |
NSString * |
name, |
|
|
NSString * |
ext | |
|
) |
| | [static] |
load texture (call this with a texture bound)
| void MoGfx::lookAt |
( |
double |
eye_x, |
|
|
double |
eye_y, |
|
|
double |
eye_z, |
|
|
double |
at_x, |
|
|
double |
at_y, |
|
|
double |
at_z, |
|
|
double |
up_x, |
|
|
double |
up_y, |
|
|
double |
up_z | |
|
) |
| | [static] |
| void MoGfx::ortho |
( |
GLint |
width = 320, |
|
|
GLint |
height = 480, |
|
|
GLint |
landscape = 0 | |
|
) |
| | [static] |
| void MoGfx::perspective |
( |
double |
fovy, |
|
|
double |
aspectRatio, |
|
|
double |
zNear, |
|
|
double |
zFar | |
|
) |
| | [static] |
| void MoGfx::resetCurrentTime |
( |
|
) |
[static] |
reset current time tracking
| void MoGfx::setDeltaFactor |
( |
GLfloat |
factor |
) |
[static] |
Member Data Documentation
The documentation for this class was generated from the following files: