Namespaces | Typedefs | Functions | Variables

wave-glut.cpp File Reference

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

Go to the source code of this file.

Namespaces

namespace  glut

Typedefs

typedef threadsafe_map
< thread_id_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 (IN int button, IN int state, IN int x, IN int y)
static void glut::onMouseMove (IN int x, IN int y)
static void glut::onKeyboard (IN byte_t key, IN int x, IN int y)
static void glut::onSpecialKeys (IN int key, IN int x, IN int y)
static void glut::onReshape (IN int w, IN int h)
void glut::start (IN int argc, IN const char *argv[], IN int width,IN int height,IN const char *title,IN const char *gameModeString,IN smart_ptr< Host > &host)
 clients can call this to get common glut setup
void glut::requestTask (IO Task *task)
 Here a thread can request that a task be handled by the open GL thread.
void glut::drawRectLines (IN const rect3d_t &r, IN const glut_color_t &c) throw ()
 draw the outline of a 3D rectangle
void glut::getModelViewMatrix (OUT 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 thread_id_t glut::s_glutThreadId = 0
static int glut::s_width = 0
static int glut::s_height = 0