Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The GLUTWindow class implements an OpenGLContext using the GLUT API. More...
#include <GLUTWindow.hpp>
Public Member Functions | |
GLUTWindow () | |
GLUTWindow (const vl::String &title, const vl::OpenGLContextFormat &info, int x, int y, int width, int height) | |
bool | initGLUTWindow (const vl::String &title, const vl::OpenGLContextFormat &info, int x, int y, int width, int height) |
Initializes and shows a GLUT window. More... | |
~GLUTWindow () | |
virtual void | setMouseVisible (bool visible) |
If the OpenGL context is a widget this function sets whether the mouse is visible over it or not. More... | |
virtual void | setMousePosition (int x, int y) |
If the OpenGL context is a widget this function sets the mouse position. More... | |
void | quitApplication () |
Quits the progra calling the C function exit(0). More... | |
void | update () |
If the OpenGLContext is a widget this function requests a redraw and generates an updateEvent(). More... | |
bool | setFullscreen (bool fs) |
If the OpenGL context is a widget this function requests a maximization to fullscreen. More... | |
void | makeCurrent () |
Sets the OpenGL context as current for the calling thread. More... | |
void | updateOverlay () |
void | swapBuffers () |
Swaps the back and front buffers to present the last rendering. More... | |
void | setWindowTitle (const vl::String &title) |
If the OpenGL context is a top window this function sets its title. More... | |
void | setPosition (int x, int y) |
If the OpenGL context is a widget this function sets its position. More... | |
void | setSize (int w, int h) |
If the OpenGL context is a widget this function sets its size. More... | |
vl::ivec2 | position () const |
If the OpenGL context is a widget this function returns its position. More... | |
vl::ivec2 | size () const |
void | show () |
If the OpenGL context is a widget this function makes it visible to the user. More... | |
void | hide () |
If the OpenGL context is a widget this function makes it invisible to the user. More... | |
void | getFocus () |
If the OpenGL context is a widget this function requests the mouse focus on it. More... | |
int | handle () const |
Public Member Functions inherited from vl::OpenGLContext | |
OpenGLContext (int w=0, int h=0) | |
Constructor. More... | |
~OpenGLContext () | |
Destructor. More... | |
bool | initGLContext (bool log=true) |
Initializes the supported OpenGL extensions. More... | |
void | logOpenGLInfo () |
Logs some information about the OpenGL context. More... | |
const std::string & | extensions () const |
Returns the list of OpenGL extensions supported separated by '|' characters. More... | |
bool | isExtensionSupported (const char *ext_name) |
Returns true if the given extension is supported. More... | |
void * | getProcAddress (const char *function_name) |
Returns the address of an OpenGL extension function. More... | |
FramebufferObject * | leftFramebuffer () |
The render target representing the default left framebuffer. More... | |
const FramebufferObject * | leftFramebuffer () const |
The render target representing the default left framebuffer. More... | |
FramebufferObject * | rightFramebuffer () |
The render target representing the default right framebuffer (if a stereo OpenGL context is present). More... | |
const FramebufferObject * | rightFramebuffer () const |
The render target representing the default right framebuffer (if a stereo OpenGL context is present). More... | |
FramebufferObject * | framebuffer () |
The default render target (always returns leftFramebuffer()). More... | |
const FramebufferObject * | framebuffer () const |
The default render target (always returns leftFramebuffer()). More... | |
FramebufferObject * | createFramebufferObject () |
Equivalent to "createFramebufferObject(0,0);" . More... | |
FramebufferObject * | createFramebufferObject (int width, int height, EReadDrawBuffer draw_buffer=RDB_COLOR_ATTACHMENT0, EReadDrawBuffer read_buffer=RDB_COLOR_ATTACHMENT0) |
Creates a new FramebufferObject (framebuffer object FramebufferObject). More... | |
void | destroyFramebufferObject (FramebufferObject *fbort) |
Destroys the specified FramebufferObject. More... | |
void | destroyAllFramebufferObjects () |
Removes all FramebufferObjects belonging to an OpenGLContext. More... | |
void | destroyAllOpenGLResources () |
Removes all OpenGL resources handled by the OpenGLContext. More... | |
virtual bool | fullscreen () const |
If the OpenGL context is a widget this function returns whether it has been maximized to fullscreen. More... | |
int | width () const |
Returns the width in pixels of an OpenGLContext. More... | |
int | height () const |
Returns the height in pixels of an OpenGLContext. More... | |
virtual bool | mouseVisible () const |
If the OpenGL context is a widget this function returns whether the mouse is visible over it or not. More... | |
void | setVSyncEnabled (bool enable) |
If the OpenGL context is a widget this function enabled/disables double buffer swapping to the monitor's vertical synch. More... | |
bool | vsyncEnabled () const |
If the OpenGL context is a widget this function returns whether vsync is enabled or not. More... | |
virtual void | setContinuousUpdate (bool continuous) |
If the OpenGL context is a widget this function sets whether its area is continuously updated at each frame. More... | |
bool | continuousUpdate () const |
If the OpenGL context is a widget this function returns whether its area is continuously updated at each frame. More... | |
void | addEventListener (UIEventListener *el) |
Adds an UIEventListener to be notified of OpenGLContext related events. More... | |
void | removeEventListener (UIEventListener *el) |
Removes an UIEventListener. More... | |
void | eraseAllEventListeners () |
Removes all UIEventListener previously registered. More... | |
const std::vector< ref< UIEventListener > > & | eventListeners () const |
The currently UIEventListener registered to be notified of OpenGLContext related events. More... | |
const UIEventListener * | eventListener (int i) const |
Returns the i-th UIEventListener registered to an OpenGLContext. More... | |
UIEventListener * | eventListener (int i) |
Returns the i-th UIEventListener registered to an OpenGLContext. More... | |
int | eventListenerCount () const |
Returns the number of UIEventListener registered to an OpenGLContext. More... | |
const OpenGLContextFormat & | openglContextInfo () const |
Returns an OpenGLContextFormat structure describing an OpenGLContext. More... | |
void | setOpenGLContextInfo (const OpenGLContextFormat &info) |
Sets the OpenGLContextFormat associated to an OpenGLContext. More... | |
void | ignoreNextMouseMoveEvent () |
Requests not to dispatch the next mouse move event. More... | |
void | dispatchResizeEvent (int w, int h) |
Dispatches the UIEventListener::resizeEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchMouseMoveEvent (int x, int y) |
Dispatches the UIEventListener::mouseMoveEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchMouseUpEvent (EMouseButton button, int x, int y) |
Dispatches the UIEventListener::mouseUpEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchMouseDownEvent (EMouseButton button, int x, int y) |
Dispatches the UIEventListener::mouseDownEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchMouseWheelEvent (int n) |
Dispatches the UIEventListener::mouseWheelEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchKeyPressEvent (unsigned short unicode_ch, EKey key) |
Dispatches the UIEventListener::keyPressEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchKeyReleaseEvent (unsigned short unicode_ch, EKey key) |
Dispatches the UIEventListener::keyReleaseEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchDestroyEvent () |
Dispatches the UIEventListener::destroyEvent() notification to the subscribed UIEventListener(s), calls destroyAllOpenGLResources() and eraseAllEventListeners() This event must be issued just before the actual GL context is destroyed. More... | |
void | dispatchUpdateEvent () |
Dispatches the UIEventListener::updateEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchVisibilityEvent (bool visible) |
Dispatches the UIEventListener::visibilityEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchInitEvent () |
Dispatches the UIEventListener::initEvent() notification to the subscribed UIEventListener objects. More... | |
void | dispatchFileDroppedEvent (const std::vector< String > &files) |
Dispatches the UIEventListener::fileDroppedEvent() notification to the subscribed UIEventListener objects. More... | |
const std::set< EKey > & | keyboard () const |
Returns the std::set containing the currently pressed keys. More... | |
bool | isKeyPressed (EKey key) const |
Returns true if the given key is pressed. More... | |
void | keyPress (EKey key) |
Inserts the specified key in the set of currently active keys - For internal use only. More... | |
void | keyRelease (EKey key) |
Removes the specified key from the set of currently active keys - For internal use only. More... | |
bool | isInitialized () const |
Returns true if the OpenGLContext is in an initialized state. More... | |
int | vertexAttribCount () const |
The number (clamped to VA_MaxAttribCount) of generic vertex attributes as returned by glGet(GL_MAX_VERTEX_ATTRIBS) More... | |
int | textureImageUnitCount () const |
The number (clamped to VL_MAX_TEXTURE_IMAGE_UNITS) of texture image units supported by the current hardware. More... | |
int | textureCoordCount () const |
The number (clamped to VL_MAX_LEGACY_TEXTURE_UNITS) of fixed function pipeline texture units supported by the current hardware. More... | |
bool | hasDoubleBuffer () const |
Returns true if an OpenGLContext supports double buffering. More... | |
void | useGLSLProgram (const GLSLProgram *glsl) |
Activates the given GLSLProgram or unbinds the current one if glsl is NULL. More... | |
void | bindVAS (const IVertexAttribSet *vas, bool use_vbo, bool force) |
Activates the specified vertex attribute set - For internal use only. More... | |
void | bindVAS_Attribs (const IVertexAttribSet *vas, bool use_vbo) |
void | bindVAS_Fixed (const IVertexAttribSet *vas, bool use_vbo) |
void | bindVAS_Reset () |
void | applyEnables (const EnableSet *cur) |
Applies an EnableSet to an OpenGLContext - Typically for internal use only. More... | |
void | applyRenderStates (const RenderStateSet *cur, const Camera *camera) |
Applies a RenderStateSet to an OpenGLContext - Typically for internal use only. More... | |
void | resetEnables () |
Resets all the interanal enable-tables - For internal use only. More... | |
void | resetRenderStates () |
Resets all the interanal render-states-tables - For internal use only. More... | |
void | setDefaultRenderState (const RenderStateSlot &rs_slot) |
Defines the default render state slot to be used by the opengl context. More... | |
const RenderStateSlot & | defaultRenderState (ERenderState rs) |
Returns the default render state slot used by VL when a specific render state type is left undefined. More... | |
void | resetContextStates (EResetContextStates start_or_finish) |
Resets the OpenGL states necessary to begin and finish a rendering. - For internal use only. More... | |
void | setTexUnitBinding (int unit_i, ETextureDimension target) |
Declares that texture unit unit_i is currently bound to the specified texture target. - For internal use only. More... | |
ETextureDimension | texUnitBinding (int unit_i) const |
Returnes the texture target currently active for the specified texture unit. - For internal use only. More... | |
const GLSLProgram * | glslProgram () const |
GLSLProgram * | glslProgram () |
bool | isCleanState (bool verbose) |
Checks whether the OpenGL state is clean or not. More... | |
const fvec3 & | normal () const |
const fvec4 & | color () const |
const fvec3 & | secondaryColor () const |
const fvec4 & | vertexAttribValue (int i) const |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Member Functions | |
void | destroyWindow () |
void | initKeymap () |
vl::EKey | mapAsciiKey (unsigned char ascii) |
void | updateModifiers () |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Static Protected Member Functions | |
static vl::EKey | mapSpecialKey (int special_key) |
static void | glut_keyboard_func (unsigned char ch, int x, int y) |
static void | glut_keyboard_up_func (unsigned char ch, int x, int y) |
static void | glut_special_func (int key, int x, int y) |
static void | glut_special_up_func (int key, int x, int y) |
static void | glut_mouse_func (int button, int state, int x, int y) |
static void | glut_motion_func (int x, int y) |
static void | glut_passive_motion_func (int x, int y) |
static void | glut_mouse_wheel_func (int a, int rotation, int c, int d) |
static void | glut_visibility_func (int visibility) |
static void | glut_reshape_func (int w, int h) |
static void | glut_display_func () |
static void | glut_close_func () |
static void | glut_wmclose_func () |
static void | glut_idle_func () |
Static Protected Attributes | |
static std::map< int, GLUTWindow *> | mWinMap |
Additional Inherited Members | |
Static Public Member Functions inherited from vl::OpenGLContext | |
static bool | areUniformsColliding (const UniformSet *u1, const UniformSet *u2) |
Returns true if the two UniformSet contain at least one Uniform variable with the same name. More... | |
The GLUTWindow class implements an OpenGLContext using the GLUT API.
Definition at line 59 of file GLUTWindow.hpp.
GLUTWindow::GLUTWindow | ( | ) |
Definition at line 44 of file GLUTWindow.cpp.
GLUTWindow::GLUTWindow | ( | const vl::String & | title, |
const vl::OpenGLContextFormat & | info, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 50 of file GLUTWindow.cpp.
References initGLUTWindow(), mHandle, and mInited.
|
inline |
Definition at line 69 of file GLUTWindow.hpp.
|
protected |
Definition at line 361 of file GLUTWindow.cpp.
References handle().
|
virtual |
If the OpenGL context is a widget this function requests the mouse focus on it.
Reimplemented from vl::OpenGLContext.
Definition at line 403 of file GLUTWindow.cpp.
References handle().
|
staticprotected |
Definition at line 767 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchDestroyEvent(), mHandle, mInited, mKeymap, mWinMap, and VL_CHECK.
Referenced by glut_wmclose_func(), and initGLUTWindow().
|
staticprotected |
Definition at line 754 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchUpdateEvent(), mWinMap, and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 788 of file GLUTWindow.cpp.
References mWinMap, and vl::Time::sleep().
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 632 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchKeyPressEvent(), mapAsciiKey(), mWinMap, updateModifiers(), and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 641 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchKeyReleaseEvent(), mapAsciiKey(), mWinMap, updateModifiers(), and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 690 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchMouseMoveEvent(), mWinMap, and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 668 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchMouseDownEvent(), vl::OpenGLContext::dispatchMouseUpEvent(), vl::LeftButton, vl::MiddleButton, mWinMap, vl::RightButton, vl::UnknownButton, updateModifiers(), and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 716 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchMouseWheelEvent(), mWinMap, updateModifiers(), and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 701 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchMouseMoveEvent(), mInited, mWinMap, and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 736 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchInitEvent(), vl::OpenGLContext::dispatchResizeEvent(), vl::OpenGLContext::framebuffer(), mInited, mWinMap, vl::FramebufferObject::setHeight(), vl::FramebufferObject::setWidth(), and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 650 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchKeyPressEvent(), mapSpecialKey(), mWinMap, updateModifiers(), and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 659 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchKeyReleaseEvent(), mapSpecialKey(), mWinMap, updateModifiers(), and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 726 of file GLUTWindow.cpp.
References vl::OpenGLContext::dispatchVisibilityEvent(), mWinMap, and VL_CHECK.
Referenced by initGLUTWindow().
|
staticprotected |
Definition at line 783 of file GLUTWindow.cpp.
References glut_close_func().
Referenced by initGLUTWindow().
|
inline |
Definition at line 109 of file GLUTWindow.hpp.
Referenced by destroyWindow(), getFocus(), hide(), initGLUTWindow(), makeCurrent(), position(), setFullscreen(), setPosition(), setSize(), setWindowTitle(), show(), size(), and update().
|
virtual |
If the OpenGL context is a widget this function makes it invisible to the user.
Reimplemented from vl::OpenGLContext.
Definition at line 392 of file GLUTWindow.cpp.
References handle().
bool GLUTWindow::initGLUTWindow | ( | const vl::String & | title, |
const vl::OpenGLContextFormat & | info, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Initializes and shows a GLUT window.
Definition at line 58 of file GLUTWindow.cpp.
References vl::Vector4< T_Scalar >::a(), vl::OpenGLContextFormat::accumRGBABits(), vl::Vector4< T_Scalar >::b(), vl::OpenGLContextFormat::depthBufferBits(), vl::OpenGLContextFormat::doubleBuffer(), vl::OpenGLContextFormat::fullscreen(), vl::Vector4< T_Scalar >::g(), vl::GLP_Compatibility, vl::GLP_Core, vl::GLP_Default, glut_close_func(), glut_display_func(), glut_idle_func(), glut_keyboard_func(), glut_keyboard_up_func(), glut_motion_func(), glut_mouse_func(), glut_mouse_wheel_func(), glut_passive_motion_func(), glut_reshape_func(), glut_special_func(), glut_special_up_func(), glut_visibility_func(), glut_wmclose_func(), handle(), vl::OpenGLContext::initGLContext(), initKeymap(), vl::OpenGLContextFormat::majVersion(), vl::OpenGLContext::mFullscreen, mHandle, vl::OpenGLContextFormat::minVersion(), vl::OpenGLContextFormat::multisample(), mWinMap, NULL, vl::OpenGLContextFormat::openGLProfile(), vl::Vector4< T_Scalar >::r(), vl::OpenGLContextFormat::rgbaBits(), vl::OpenGLContext::setOpenGLContextInfo(), vl::OpenGLContext::setVSyncEnabled(), vl::OpenGLContextFormat::stencilBufferBits(), vl::OpenGLContextFormat::stereo(), vl::String::toStdString(), and vl::OpenGLContextFormat::vSync().
Referenced by GLUTWindow().
|
protected |
Definition at line 470 of file GLUTWindow.cpp.
References vl::Key_0, vl::Key_1, vl::Key_2, vl::Key_3, vl::Key_4, vl::Key_5, vl::Key_6, vl::Key_7, vl::Key_8, vl::Key_9, vl::Key_A, vl::Key_Ampersand, vl::Key_Asterisk, vl::Key_At, vl::Key_B, vl::Key_BackSlash, vl::Key_BackSpace, vl::Key_C, vl::Key_Caret, vl::Key_Colon, vl::Key_Comma, vl::Key_D, vl::Key_Delete, vl::Key_Dollar, vl::Key_E, vl::Key_Equal, vl::Key_Escape, vl::Key_Exclam, vl::Key_F, vl::Key_G, vl::Key_Greater, vl::Key_H, vl::Key_Hash, vl::Key_I, vl::Key_J, vl::Key_K, vl::Key_L, vl::Key_LeftBracket, vl::Key_LeftParen, vl::Key_Less, vl::Key_M, vl::Key_Minus, vl::Key_N, vl::Key_O, vl::Key_P, vl::Key_Period, vl::Key_Plus, vl::Key_Q, vl::Key_Question, vl::Key_Quote, vl::Key_QuoteDbl, vl::Key_QuoteLeft, vl::Key_R, vl::Key_Return, vl::Key_RightBracket, vl::Key_RightParen, vl::Key_S, vl::Key_Semicolon, vl::Key_Slash, vl::Key_Space, vl::Key_T, vl::Key_Tab, vl::Key_U, vl::Key_Underscore, vl::Key_V, vl::Key_W, vl::Key_X, vl::Key_Y, vl::Key_Z, and mKeymap.
Referenced by initGLUTWindow().
|
virtual |
Sets the OpenGL context as current for the calling thread.
Implements vl::OpenGLContext.
Definition at line 355 of file GLUTWindow.cpp.
References handle().
|
protected |
Definition at line 575 of file GLUTWindow.cpp.
References vl::Key_Unknown, and mKeymap.
Referenced by glut_keyboard_func(), and glut_keyboard_up_func().
|
staticprotected |
Definition at line 586 of file GLUTWindow.cpp.
References vl::Key_Down, vl::Key_End, vl::Key_F1, vl::Key_F10, vl::Key_F11, vl::Key_F12, vl::Key_F2, vl::Key_F3, vl::Key_F4, vl::Key_F5, vl::Key_F6, vl::Key_F7, vl::Key_F8, vl::Key_F9, vl::Key_Home, vl::Key_Insert, vl::Key_Left, vl::Key_PageDown, vl::Key_PageUp, vl::Key_Right, vl::Key_Unknown, and vl::Key_Up.
Referenced by glut_special_func(), and glut_special_up_func().
|
virtual |
If the OpenGL context is a widget this function returns its position.
Reimplemented from vl::OpenGLContext.
Definition at line 442 of file GLUTWindow.cpp.
References handle().
|
inlinevirtual |
Quits the progra calling the C function exit(0).
Reimplemented from vl::OpenGLContext.
Definition at line 79 of file GLUTWindow.hpp.
|
virtual |
If the OpenGL context is a widget this function requests a maximization to fullscreen.
Reimplemented from vl::OpenGLContext.
Definition at line 304 of file GLUTWindow.cpp.
References handle(), vl::OpenGLContext::height(), vl::OpenGLContext::mFullscreen, NULL, and vl::OpenGLContext::width().
|
virtual |
If the OpenGL context is a widget this function sets the mouse position.
Reimplemented from vl::OpenGLContext.
Definition at line 344 of file GLUTWindow.cpp.
|
virtual |
If the OpenGL context is a widget this function sets whether the mouse is visible over it or not.
Reimplemented from vl::OpenGLContext.
Definition at line 335 of file GLUTWindow.cpp.
References vl::OpenGLContext::mMouseVisible.
|
virtual |
If the OpenGL context is a widget this function sets its position.
Reimplemented from vl::OpenGLContext.
Definition at line 420 of file GLUTWindow.cpp.
References handle().
|
virtual |
If the OpenGL context is a widget this function sets its size.
Reimplemented from vl::OpenGLContext.
Definition at line 431 of file GLUTWindow.cpp.
References handle().
|
virtual |
If the OpenGL context is a top window this function sets its title.
Reimplemented from vl::OpenGLContext.
Definition at line 409 of file GLUTWindow.cpp.
References handle(), and vl::String::toStdString().
|
virtual |
If the OpenGL context is a widget this function makes it visible to the user.
Reimplemented from vl::OpenGLContext.
Definition at line 381 of file GLUTWindow.cpp.
References handle().
vl::ivec2 GLUTWindow::size | ( | ) | const |
Definition at line 456 of file GLUTWindow.cpp.
References handle().
|
virtual |
Swaps the back and front buffers to present the last rendering.
Implements vl::OpenGLContext.
Definition at line 376 of file GLUTWindow.cpp.
|
virtual |
If the OpenGLContext is a widget this function requests a redraw and generates an updateEvent().
Implements vl::OpenGLContext.
Definition at line 349 of file GLUTWindow.cpp.
References handle().
|
protected |
Definition at line 618 of file GLUTWindow.cpp.
References vl::Key_Alt, vl::Key_Ctrl, vl::Key_Shift, vl::OpenGLContext::keyPress(), and vl::OpenGLContext::keyRelease().
Referenced by glut_keyboard_func(), glut_keyboard_up_func(), glut_mouse_func(), glut_mouse_wheel_func(), glut_special_func(), and glut_special_up_func().
void GLUTWindow::updateOverlay | ( | ) |
Definition at line 371 of file GLUTWindow.cpp.
|
protected |
Definition at line 160 of file GLUTWindow.hpp.
Referenced by glut_close_func(), GLUTWindow(), and initGLUTWindow().
|
protected |
Definition at line 161 of file GLUTWindow.hpp.
Referenced by glut_close_func(), glut_passive_motion_func(), glut_reshape_func(), and GLUTWindow().
|
protected |
Definition at line 159 of file GLUTWindow.hpp.
Referenced by glut_close_func(), initKeymap(), and mapAsciiKey().
|
staticprotected |
Definition at line 163 of file GLUTWindow.hpp.
Referenced by glut_close_func(), glut_display_func(), glut_idle_func(), glut_keyboard_func(), glut_keyboard_up_func(), glut_motion_func(), glut_mouse_func(), glut_mouse_wheel_func(), glut_passive_motion_func(), glut_reshape_func(), glut_special_func(), glut_special_up_func(), glut_visibility_func(), and initGLUTWindow().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:56.
© Copyright Michele Bosi. All rights reserved.