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 (vec_display_lines_t &lines)
 host can provide additional display lines
virtual void onShutdown (void)
 host is notified just before shutdown
virtual void onCursor (int x, int y)
 host is notified that mouse has moved
virtual void onButton (int button, int state, int x, int y)
 host is notified that mouse button has been pressed/released
virtual void onKey (int key, int mods)
 host is notified that a key has been pressed
virtual void display3D (const render_context_t &rc, RenderQueue *rq)
 host is notified that GL is set up for 3D drawing (called per frame)
virtual void display2D (int width, 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: