Static Public Member Functions | Static Public Attributes

MoGfx Class Reference

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]

get delta

double MoGfx::getCurrentTime ( bool  fresh  )  [static]

get current time

bool MoGfx::isPointInTriangle2D ( const Vector3D pt,
const Vector3D a,
const Vector3D b,
const Vector3D c 
) [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]

look at

void MoGfx::ortho ( GLint  width = 320,
GLint  height = 480,
GLint  landscape = 0 
) [static]

orthographic projection

void MoGfx::perspective ( double  fovy,
double  aspectRatio,
double  zNear,
double  zFar 
) [static]

perspective projection

void MoGfx::resetCurrentTime (  )  [static]

reset current time tracking

void MoGfx::setDeltaFactor ( GLfloat  factor  )  [static]

set delta factor


Member Data Documentation

struct timeval MoGfx::ourCurrTime [static]
GLfloat MoGfx::ourDeltaFactor = 1.0f [static, read]
struct timeval MoGfx::ourPrevTime [static]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines