Public Types | Public Member Functions

glut::DemoHost Class Reference
[Demo application base class]

You'll need to provide a class that inherits from DemoHost. More...

#include <glut-demo.h>

Inheritance diagram for glut::DemoHost:
Inheritance graph
[legend]

List of all members.

Public Types

enum  eConstants {
  eDefaultWidth = 800,
  eDefaultHeight = 600,
  eInvalid = -1
}

Public Member Functions

virtual ~DemoHost (void) throw ()
virtual int getWidth (void)
virtual int getHeight (void)
virtual float getDelta (void)
virtual void onInit (void)
 host can perform any pre-rendering work here
virtual bool displayAxes (void)
 want to display the tricolor xyz axes?
virtual bool displayQueuedPolys (void)
 want to draw queued (transparent) polygons?
virtual void getDisplayLines (OUT vec_display_lines_t &lines)
 host can provide additional display lines
virtual void onShutdown (void)
 host is notified just before shutdown
virtual void onCursor (IN int x, IN int y)
 host is notified that mouse has moved
virtual void onButton (IN int button, IN int state, IN int x, IN int y)
 host is notified that mouse button has been pressed/released
virtual void onKey (IN int key, IN int mods)
 host is notified that a key has been pressed
virtual void onIdle (IN float dt)
 host is notified per frame, and is told the time delta in seconds
virtual void display3D (IN const render_context_t &rc, IN RenderQueue *rq)
 host is notified that GL is set up for 3D drawing (called per frame)
virtual void display2D (IN int width, IN int height)
 host is notified that GL is set up for 2D drawing (called per frame)

Detailed Description

You'll need to provide a class that inherits from DemoHost.

Override any glut::DemoHost interface method to receive the specified callback. This base class will provide default implementation for all callbacks.

Definition at line 82 of file glut-demo.h.


Member Enumeration Documentation

Enumerator:
eDefaultWidth 
eDefaultHeight 
eInvalid 

Definition at line 85 of file glut-demo.h.


The documentation for this class was generated from the following files: