CPPGPGPU Library - Reference (Doxygen)

Main Page | General Use | Reference | Examples Info | Get/Download CPPGPGPU | SF.net Page

GLUTCore.h File Reference

#include <GL/glut.h>

Go to the source code of this file.

Classes

class  GLUTCore
 GLUT Core Class. More...

Typedefs

typedef void(* DrawFunct )()
 Function prototype for the redraw function in GLUT.
typedef void(* ReshapeFunct )(int Width, int Height)
 Function prototype for the function that gets called whenever the viewport gets resized.
typedef void(* MousePressFunct )(int b, int state, int x, int y)
 Function that gets called whever the mouse button is clicked in GLUT.
typedef void(* MouseDragFunct )(int x, int y)
 Function that gets called while the mouse is being dragged in GLUT.

Functions

void DefaultReshape (int Width, int Height)
 Default reshape function inside of GLUTCore.
void DefaultDraw ()
 Default draw function held within GLUTCore.
void DefaultMousePress (int b, int state, int x, int y)
 Default mouse pressing function in GLUTCore.
void DefaultMouseDrag (int x, int y)
 Default mouse dragging function.

Variables

GLUTCore GLUT
 Instantiation of the GLUTCore object.


Typedef Documentation

typedef void(* DrawFunct)()

Function prototype for the redraw function in GLUT.

Definition at line 14 of file GLUTCore.h.

typedef void(* MouseDragFunct)(int x, int y)

Function that gets called while the mouse is being dragged in GLUT.

Definition at line 23 of file GLUTCore.h.

typedef void(* MousePressFunct)(int b, int state, int x, int y)

Function that gets called whever the mouse button is clicked in GLUT.

Definition at line 20 of file GLUTCore.h.

typedef void(* ReshapeFunct)(int Width, int Height)

Function prototype for the function that gets called whenever the viewport gets resized.

Definition at line 17 of file GLUTCore.h.


Function Documentation

void DefaultDraw (  ) 

Default draw function held within GLUTCore.

Definition at line 71 of file GLUTCore.cpp.

void DefaultMouseDrag ( int  x,
int  y 
)

Default mouse dragging function.

Definition at line 31 of file GLUTCore.cpp.

void DefaultMousePress ( int  b,
int  state,
int  x,
int  y 
)

Default mouse pressing function in GLUTCore.

Definition at line 22 of file GLUTCore.cpp.

void DefaultReshape ( int  Width,
int  Height 
)

Default reshape function inside of GLUTCore.

Definition at line 55 of file GLUTCore.cpp.


Variable Documentation

GLUTCore GLUT

Instantiation of the GLUTCore object.

Definition at line 17 of file GLUTCore.cpp.


© 2005-2007 Charles Lohr, Joshua Allen, David Chapman, Andrew Lohr. All material including documentation under the MIT/X11 license.