#include <TAPsGLUTWindow.hpp>

Public Member Functions | |
| GLUTCallbackFns * | GetGLUTObject () const |
| int | GetID () const |
| GLUTWindow (std::string const title, GLUTCallbackFns *const pGLUT, int width=256, int height=256) | |
| virtual void | Initialize () |
| void | SetGLUT (GLUTCallbackFns *const pGLUT) |
| ~GLUTWindow () | |
Static Public Member Functions | |
| static void | Display () |
| static int | GetMainID () |
| static void | Idle () |
| static void | Keyboard (unsigned char key, int x, int y) |
| static void | Motion (int x, int y) |
| static void | Mouse (int button, int state, int x, int y) |
| static void | Reshape (int width, int height) |
| static void | Special (int key, int x, int y) |
Protected Attributes | |
| int | m_iID |
| GLUTCallbackFns * | m_pGLUT |
| std::string | m_strTitle |
Static Protected Attributes | |
| static int | m_siID = -1 |
| static GLUTCallbackFns * | m_spGLUT = NULL |
Definition at line 20 of file TAPsGLUTWindow.hpp.
| GLUTWindow::GLUTWindow | ( | std::string const | title, | |
| GLUTCallbackFns *const | pGLUT, | |||
| int | width = 256, |
|||
| int | height = 256 | |||
| ) |
Definition at line 25 of file TAPsGLUTWindow.cpp.
00028 : m_strTitle( title ), 00029 m_pGLUT( NULL ) 00030 { 00031 glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH ); 00032 glutInitWindowSize( width, height ); 00033 const char * p = title.data(); 00034 m_iID = glutCreateWindow( p ); 00035 SetGLUT( pGLUT ); 00036 }
| GLUTWindow::~GLUTWindow | ( | ) |
| static void GLUTWindow::Display | ( | ) | [inline, static] |
| GLUTCallbackFns* GLUTWindow::GetGLUTObject | ( | ) | const [inline] |
| int GLUTWindow::GetID | ( | ) | const [inline] |
| static int GLUTWindow::GetMainID | ( | ) | [inline, static] |
| static void GLUTWindow::Idle | ( | ) | [inline, static] |
| virtual void GLUTWindow::Initialize | ( | ) | [inline, virtual] |
| static void GLUTWindow::Keyboard | ( | unsigned char | key, | |
| int | x, | |||
| int | y | |||
| ) | [inline, static] |
Definition at line 65 of file TAPsGLUTWindow.hpp.
00066 { 00067 assert( m_spGLUT ); 00068 m_spGLUT->KeyboardFn( key, x, y ); 00069 }
| static void GLUTWindow::Motion | ( | int | x, | |
| int | y | |||
| ) | [inline, static] |
| static void GLUTWindow::Mouse | ( | int | button, | |
| int | state, | |||
| int | x, | |||
| int | y | |||
| ) | [inline, static] |
| static void GLUTWindow::Reshape | ( | int | width, | |
| int | height | |||
| ) | [inline, static] |
| void GLUTWindow::SetGLUT | ( | GLUTCallbackFns *const | pGLUT | ) |
Definition at line 44 of file TAPsGLUTWindow.cpp.
00045 { 00046 assert( pGLUT ); 00047 m_spGLUT = m_pGLUT = pGLUT; 00048 m_siID = m_iID; 00049 glutDisplayFunc( Display ); 00050 glutReshapeFunc( Reshape ); 00051 glutMouseFunc( Mouse ); 00052 glutMotionFunc( Motion ); 00053 glutKeyboardFunc( Keyboard ); 00054 glutSpecialFunc( Special ); 00055 glutIdleFunc( Idle ); 00056 }
| static void GLUTWindow::Special | ( | int | key, | |
| int | x, | |||
| int | y | |||
| ) | [inline, static] |
int GLUTWindow::m_iID [protected] |
Definition at line 24 of file TAPsGLUTWindow.hpp.
GLUTCallbackFns* GLUTWindow::m_pGLUT [protected] |
Definition at line 25 of file TAPsGLUTWindow.hpp.
BEGIN_NAMESPACE_TAPs__OpenGL int GLUTWindow::m_siID = -1 [static, protected] |
Definition at line 26 of file TAPsGLUTWindow.hpp.
GLUTCallbackFns * GLUTWindow::m_spGLUT = NULL [static, protected] |
Definition at line 27 of file TAPsGLUTWindow.hpp.
std::string GLUTWindow::m_strTitle [protected] |
Definition at line 23 of file TAPsGLUTWindow.hpp.
1.5.6