Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ps2glut.cpp File Reference

#include <stdlib.h>
#include <stdio.h>
#include "libgraph.h"
#include "libdev.h"
#include "sifdev.h"
#include "GL/glut.h"
#include "GL/ps2gl.h"
#include "ps2s/timer.h"
#include "ps2s/gs.h"
#include "ps2s/drawenv.h"
#include "ps2s/displayenv.h"
#include "ps2s/core.h"
#include "ps2gl/glcontext.h"
#include "ps2gl/displaycontext.h"
#include "ps2gl/drawcontext.h"
#include "ps2gl/debug.h"
#include "pads.h"

Go to the source code of this file.

Typedefs

typedef void(* tFunctionPtr_ii )(int, int)
typedef void(* tFunctionPtr_ucii )(unsigned char, int, int)
typedef void(* tFunctionPtr_iii )(int, int, int)
typedef void(* tFunctionPtr )(void)
typedef void(* tFunctionPtr_i )(int)

Functions

void glutInit (int *argcp, char **argv)
 Initialize the ps2glut library, also the ps2gl library and gs memory if not already initialized by the app. More...

void glutDisplayFunc (void(*func)(void))
 Set the display function callback. More...

void glutReshapeFunc (void(*func)(int width, int height))
 Set the reshape function callback. More...

void glutKeyboardFunc (void(*func)(unsigned char key, int x, int y))
 Set the keyboard function callback. More...

void glutVisibilityFunc (void(*func)(int state))
 Set the visibility function callback. More...

void glutIdleFunc (void(*func)(void))
 Set the idle function callback. More...

void glutSpecialFunc (void(*func)(int key, int x, int y))
 Set the special function callback. More...

void glutMainLoop (void)
 Enter the main loop. More...

void glutInitDisplayMode (unsigned int mode)
void glutInitWindowPosition (int x, int y)
void glutInitWindowSize (int x, int y)
int glutCreateWindow (const char *title)
void glutPostRedisplay (void)
void glutSwapBuffers (void)
int glutGet (GLenum type)
void * pglutAllocDmaMem (unsigned int num_bytes)
void pglutFreeDmaMem (void *mem)

Variables

tFunctionPtr DisplayFunc = NULL
tFunctionPtr_ii ReshapeFunc = NULL
tFunctionPtr_ucii KeyboardFunc = NULL
tFunctionPtr_i VisibilityFunc = NULL
tFunctionPtr IdleFunc = NULL
tFunctionPtr_iii SpecialFunc = NULL


Typedef Documentation

typedef void(* tFunctionPtr)(void)
 

Definition at line 37 of file ps2glut.cpp.

typedef void(* tFunctionPtr_i)(int)
 

Definition at line 38 of file ps2glut.cpp.

typedef void(* tFunctionPtr_ii)(int, int)
 

Definition at line 34 of file ps2glut.cpp.

typedef void(* tFunctionPtr_iii)(int, int, int)
 

Definition at line 36 of file ps2glut.cpp.

typedef void(* tFunctionPtr_ucii)(unsigned char, int, int)
 

Definition at line 35 of file ps2glut.cpp.


Function Documentation

int glutCreateWindow const char *    title
 

Definition at line 232 of file ps2glut.cpp.

int glutGet GLenum    type
 

Definition at line 248 of file ps2glut.cpp.

void glutInitDisplayMode unsigned int    mode
 

Definition at line 217 of file ps2glut.cpp.

void glutInitWindowPosition int    x,
int    y
 

Definition at line 222 of file ps2glut.cpp.

void glutInitWindowSize int    width,
int    height
 

Definition at line 227 of file ps2glut.cpp.

void glutPostRedisplay void   
 

Definition at line 239 of file ps2glut.cpp.

void glutSwapBuffers void   
 

Definition at line 244 of file ps2glut.cpp.

void* pglutAllocDmaMem unsigned int    num_bytes
 

Definition at line 255 of file ps2glut.cpp.

void pglutFreeDmaMem void *    mem
 

Definition at line 262 of file ps2glut.cpp.


Variable Documentation

tFunctionPtr DisplayFunc = NULL
 

Definition at line 53 of file ps2glut.cpp.

Referenced by glutMainLoop().

tFunctionPtr IdleFunc = NULL
 

Definition at line 57 of file ps2glut.cpp.

Referenced by glutMainLoop().

tFunctionPtr_ucii KeyboardFunc = NULL
 

Definition at line 55 of file ps2glut.cpp.

tFunctionPtr_ii ReshapeFunc = NULL
 

Definition at line 54 of file ps2glut.cpp.

Referenced by glutMainLoop().

tFunctionPtr_iii SpecialFunc = NULL
 

Definition at line 58 of file ps2glut.cpp.

tFunctionPtr_i VisibilityFunc = NULL
 

Definition at line 56 of file ps2glut.cpp.

Referenced by glutMainLoop().


ps2gl version cvs