Base Framework
|
OpenGL rendering context. More...
#include <base/opengl/OpenGLContext.h>
Inherits WindowImpl, and OpenGLContextImpl.
Public Member Functions | |
OpenGLContext (const Position &position, const Dimension &dimension, const Format &format) | |
void | onDisplay () noexcept |
void | onResize (const Dimension &dimension) noexcept |
![]() | |
WindowImpl () | |
WindowImpl (const Position &position, const Dimension &dimension, unsigned int flags) | |
Position | getBindingOffset (Binding binding) const noexcept |
void | flush () |
void | invalidate () |
String | getServerVendor () const |
unsigned int | getServerRelease () const |
unsigned int | getFlags () const |
void | displayMenu (const Position &position, const Menu &menu) |
bool | getAutorepeat () const |
void | setAutorepeat (bool autorepeat) |
String | getTitle () const |
void | setTitle (const String &title) |
String | getIconTitle () const |
void | setIconTitle (const String &title) |
Position | getPosition () const |
void | setPosition (const Position &position) |
Dimension | getDimension () const |
void | setDimension (const Dimension &dimension) |
void | setRegion (const Position &position, const Dimension &dimension) |
void | setMinimumSize (const Dimension &dimension) |
void | setMaximumSize (const Dimension &dimension) |
Cursor | getCursor () const noexcept |
void | setCursor (Cursor cursor) |
Position | toGlobalPosition (const Position &position) const |
Position | getCursorPosition () const |
void | setCursorPosition (const Position &position) |
void | releaseCursorConfinement () |
void | setCursorConfinement () |
void | setCursorConfinement (const Position &position, const Dimension &dimension) |
void | disableClipping () |
Region | getClipping () const |
void | setClipping (const Position &position, const Dimension &dimension) |
void | close () |
bool | isChildOf (const WindowImpl &object) |
bool | isParentOf (const WindowImpl &object) |
bool | isMaximized () |
bool | isMinimized () |
void | maximize () |
void | minimize () |
void | normalize () |
bool | isVisible () const noexcept |
Visibility | getVisibility () const noexcept |
void | show () |
void | hide () |
bool | isEnabled () const noexcept |
void | enable () |
void | disable () |
void | raise () |
void | acquireFocus () |
bool | getCapture () const |
void | setCapture (bool state) |
DisplayMode | getDisplayMode () const |
void | setDisplayMode (DisplayMode displayMode) |
unsigned int | getKeyState (unsigned int code) const |
unsigned int | getModifiers () const |
virtual void | onDestruction () noexcept |
virtual void | onMove (const Position &position) noexcept |
virtual void | onMouseMove (const Position &position, unsigned int buttons) noexcept |
virtual void | onMouseScope (bool scope) noexcept |
virtual void | onMouseButton (const Position &position, Mouse::Button button, Mouse::Event event, unsigned int state) noexcept |
virtual void | onMouseWheel (const Position &position, int delta, unsigned int buttons) noexcept |
virtual void | onKey (unsigned int key, unsigned int flags, unsigned int modifiers) noexcept |
virtual void | onIdle () noexcept |
virtual bool | onClose () noexcept |
virtual void | onVisibility (Visibility visibility) noexcept |
virtual void | onFocus (Focus focus) noexcept |
virtual void | onMenu (unsigned int identifier) noexcept |
virtual void | onCommand (unsigned int identifier) noexcept |
void | update () |
void | wait () |
bool | wait (unsigned int milliseconds) |
bool | openDispatch () |
bool | hasMouse () noexcept |
unsigned int | getMouseButtons () noexcept |
unsigned int | getNumberOfMonitors () noexcept |
Dimension | getDisplayDimension () noexcept |
bool | isResponding (unsigned int milliseconds) |
virtual | ~WindowImpl () noexcept |
WindowImpl () | |
WindowImpl (const Position &position, const Dimension &dimension, unsigned int flags) | |
Position | getBindingOffset (Binding binding) const noexcept |
void | flush () |
void | invalidate () |
String | getServerVendor () const |
unsigned int | getServerRelease () const |
unsigned int | getFlags () const |
void | displayMenu (const Position &position, const Menu &menu) |
bool | getAutorepeat () const |
void | setAutorepeat (bool autorepeat) |
String | getTitle () const |
void | setTitle (const String &title) |
String | getIconTitle () const |
void | setIconTitle (const String &title) |
Position | getPosition () const |
void | setPosition (const Position &position) |
Dimension | getDimension () const |
void | setDimension (const Dimension &dimension) |
void | setRegion (const Position &position, const Dimension &dimension) |
void | setMinimumSize (const Dimension &dimension) |
void | setMaximumSize (const Dimension &dimension) |
Cursor | getCursor () const noexcept |
void | setCursor (Cursor cursor) |
Position | toGlobalPosition (const Position &position) const |
Position | getCursorPosition () const |
void | setCursorPosition (const Position &position) |
void | releaseCursorConfinement () |
void | setCursorConfinement () |
void | setCursorConfinement (const Position &position, const Dimension &dimension) |
void | disableClipping () |
Region | getClipping () const |
void | setClipping (const Position &position, const Dimension &dimension) |
void | close () |
bool | isChildOf (const WindowImpl &object) |
bool | isParentOf (const WindowImpl &object) |
bool | isMaximized () |
bool | isMinimized () |
void | maximize () |
void | minimize () |
void | normalize () |
bool | isVisible () const noexcept |
Visibility | getVisibility () const noexcept |
void | show () |
void | hide () |
bool | isEnabled () const noexcept |
void | enable () |
void | disable () |
void | raise () |
void | acquireFocus () |
bool | getCapture () const |
void | setCapture (bool state) |
DisplayMode | getDisplayMode () const |
void | setDisplayMode (DisplayMode displayMode) |
unsigned int | getKeyState (unsigned int code) const |
unsigned int | getModifiers () const |
virtual void | onDestruction () noexcept |
virtual void | onMove (const Position &position) noexcept |
virtual void | onMouseMove (const Position &position, unsigned int buttons) noexcept |
virtual void | onMouseScope (bool scope) noexcept |
virtual void | onMouseButton (const Position &position, Mouse::Button button, Mouse::Event event, unsigned int state) noexcept |
virtual void | onMouseWheel (const Position &position, int delta, unsigned int buttons) noexcept |
virtual void | onKey (unsigned int key, unsigned int flags, unsigned int modifiers) noexcept |
virtual void | onIdle () noexcept |
virtual bool | onClose () noexcept |
virtual void | onVisibility (Visibility visibility) noexcept |
virtual void | onFocus (Focus focus) noexcept |
virtual void | onMenu (unsigned int identifier) noexcept |
virtual void | onCommand (unsigned int identifier) noexcept |
void | update () |
void | wait () |
bool | wait (unsigned int milliseconds) |
bool | openDispatch () |
bool | hasMouse () noexcept |
unsigned int | getMouseButtons () noexcept |
unsigned int | getNumberOfMonitors () noexcept |
Dimension | getDisplayDimension () noexcept |
bool | isResponding (unsigned int milliseconds) |
virtual | ~WindowImpl () noexcept |
WindowImpl () | |
WindowImpl (const Position &position, const Dimension &dimension, unsigned int flags) | |
Position | getLocalBindingOffset (Binding binding) const noexcept |
Position | getBindingOffset (Binding binding) const noexcept |
void | flush () |
void | invalidate () |
String | getServerVendor () const |
unsigned int | getServerRelease () const |
unsigned int | getFlags () const |
void | displayMenu (const Position &position, const Menu &menu) |
bool | getAutorepeat () const |
void | setAutorepeat (bool autorepeat) |
String | getTitle () const |
void | setTitle (const String &title) |
String | getIconTitle () const |
void | setIconTitle (const String &title) |
Position | getPosition () const |
void | setPosition (const Position &position) |
Dimension | getDimension () const |
void | setDimension (const Dimension &dimension) |
void | setRegion (const Position &position, const Dimension &dimension) |
void | setMinimumSize (const Dimension &dimension) |
void | setMaximumSize (const Dimension &dimension) |
Cursor | getCursor () const noexcept |
void | setCursor (Cursor cursor) |
Position | toGlobalPosition (const Position &position) const |
Position | getCursorPosition () const |
void | setCursorPosition (const Position &position) |
void | releaseCursorConfinement () |
void | setCursorConfinement () |
void | setCursorConfinement (const Position &position, const Dimension &dimension) |
void | disableClipping () |
Region | getClipping () const |
void | setClipping (const Position &position, const Dimension &dimension) |
void | close () |
bool | isChildOf (const WindowImpl &object) |
bool | isParentOf (const WindowImpl &object) |
bool | isMaximized () |
bool | isMinimized () |
void | maximize () |
void | minimize () |
void | normalize () |
bool | isVisible () const noexcept |
Visibility | getVisibility () const noexcept |
void | show () |
void | hide () |
bool | isEnabled () const noexcept |
void | enable () |
void | disable () |
void | raise () |
void | acquireFocus () |
bool | getCapture () const |
void | setCapture (bool state) |
DisplayMode | getDisplayMode () const |
void | setDisplayMode (DisplayMode displayMode) |
unsigned int | getKeyState (unsigned int code) const |
unsigned int | getModifiers () const |
virtual void | onDestruction () noexcept |
virtual void | onMove (const Position &position) noexcept |
virtual void | onMouseMove (const Position &position, unsigned int buttons) noexcept |
virtual void | onMouseScope (bool scope) noexcept |
virtual void | onMouseButton (const Position &position, Mouse::Button button, Mouse::Event event, unsigned int state) noexcept |
virtual void | onMouseWheel (const Position &position, int delta, unsigned int buttons) noexcept |
virtual void | onKey (unsigned int key, unsigned int flags, unsigned int modifiers) noexcept |
virtual void | onIdle () noexcept |
virtual bool | onClose () noexcept |
virtual void | onVisibility (Visibility visibility) noexcept |
virtual void | onFocus (Focus focus) noexcept |
virtual void | onMenu (unsigned int identifier) noexcept |
virtual void | onCommand (unsigned int identifier) noexcept |
void | update () |
void | wait () |
bool | wait (unsigned int milliseconds) |
bool | openDispatch () |
bool | hasMouse () noexcept |
unsigned int | getMouseButtons () noexcept |
unsigned int | getNumberOfMonitors () noexcept |
Dimension | getDisplayDimension () noexcept |
bool | isResponding (unsigned int milliseconds) |
virtual | ~WindowImpl () noexcept |
![]() | |
OpenGLContextImpl () | |
String | getGLClientVendor () const |
String | getGLClientRelease () const |
String | getGLClientExtensions () const |
String | getGLServerVendor () const |
String | getGLServerRelease () const |
String | getGLServerExtensions () const |
unsigned int | getNumberOfOverlayPlanes () const |
unsigned int | getNumberOfUnderlayPlanes () const |
bool | isDoubleBuffered () const noexcept |
bool | isColorIndexed () const noexcept |
bool | isStereoscopic () const noexcept |
bool | isDirect () const noexcept |
bool | isGeneric () const noexcept |
bool | isMultiSampled () const noexcept |
bool | isSwapLayers () const noexcept |
bool | hasAlphaBuffer () const noexcept |
unsigned int | getNumberOfColorBits () const noexcept |
unsigned int | getNumberOfRedBits () const noexcept |
unsigned int | getNumberOfGreenBits () const noexcept |
unsigned int | getNumberOfBlueBits () const noexcept |
unsigned int | getNumberOfAlphaBits () const noexcept |
bool | hasAccumulatorBuffer () const noexcept |
unsigned int | getNumberOfAcculumatorBits () const noexcept |
unsigned int | getNumberOfAcculumatorRedBits () const noexcept |
unsigned int | getNumberOfAcculumatorGreenBits () const noexcept |
unsigned int | getNumberOfAcculumatorBlueBits () const noexcept |
unsigned int | getNumberOfAcculumatorAlphaBits () const noexcept |
bool | hasDepthBuffer () const noexcept |
unsigned int | getNumberOfDepthBits () const noexcept |
bool | hasStencilBuffer () const noexcept |
bool | getNumberOfStencilBits () const noexcept |
bool | hasAuxBuffers () const noexcept |
unsigned int | getNumberOfAuxBuffers () const noexcept |
bool | hasCurrent () const |
bool | isCurrent () const |
void | makeCurrent () |
void | deselect () noexcept |
void | swap () |
void | swap (int plane) |
Static Public Member Functions | |
static Array< Format > | getFormats (unsigned int flags) |
![]() | |
static unsigned int | getMouseButtonIndex (Mouse::Button button) noexcept |
static Literal | getMouseButtonName (Mouse::Button button) noexcept |
static void | exit () noexcept |
static void | dispatch () |
static unsigned int | getMouseButtonIndex (Mouse::Button button) noexcept |
static Literal | getMouseButtonName (Mouse::Button button) noexcept |
static void | exit () noexcept |
static void | dispatch () |
static unsigned int | getMouseButtonIndex (Mouse::Button button) noexcept |
static Literal | getMouseButtonName (Mouse::Button button) noexcept |
static void | exit () noexcept |
static void | dispatch () |
Public Attributes | |
OpenGL | openGL |
OpenGLContext::OpenGLContext | ( | const Position & | position, |
const Dimension & | dimension, | ||
const Format & | format | ||
) |
Initializes a new OpenGL context.
Returns the available formats.
|
virtualnoexcept |
Invoked when the display should be updated.
Reimplemented from WindowImpl.
|
virtualnoexcept |
Invoked when the window has been resized.
dimension | The new dimension of the window. |
Reimplemented from WindowImpl.