Namespaces | Typedefs | Functions | Variables

glut.cpp File Reference

#include "glut.h"
#include "common/wave_ex.h"
#include "perf/perf.h"
#include "threadsafe/threadsafe_map.h"
Include dependency graph for glut.cpp:

Go to the source code of this file.

Namespaces

namespace  glut

Typedefs

typedef threadsafe_map
< pthread_t, smart_ptr
< task_record_t > > 
glut::task_map_t

Functions

void glut::processTasks (void)
static void glut::onExit (void)
static void glut::onDisplay (void)
static void glut::onIdle (void)
static void glut::onMouseButton (int button, int state, int x, int y)
static void glut::onMouseMove (int x, int y)
static void glut::onKeyboard (byte_t key, int x, int y)
static void glut::onSpecialKeys (int key, int x, int y)
static void glut::onReshape (int w, int h)
void glut::start (int argc,const char *argv[],int width,int height,const char *title,const char *gameModeString,smart_ptr< Host > &host)
 clients can call this to get common glut setup
void glut::requestTask (Task *task)
 Here a thread can request that a task be handled by the open GL thread.
void glut::drawRectLines (const rect3d_t &r,const glut_color_t &c) throw ()
 draw the outline of a 3D rectangle
void glut::getModelViewMatrix (matrix4_t &T) throw ()
 get a 4x4 matrix from the given OpenGL matrix

Variables

static task_map_t glut::s_pendingTasks
static task_map_t glut::s_completedTasks
static smart_ptr< Host > glut::s_host
static bool glut::s_fullscreen = false
static pthread_t glut::s_glutThreadId = 0
static int glut::s_width = 0
static int glut::s_height = 0