#include <BaseWindow.h>
|
void | glut3dReshape (int x, int y) |
|
void | glut3dDisplay (void) |
|
void | glut3dKeyboard (unsigned char key, int x, int y) |
|
void | glut3dSpecial (int key, int x, int y) |
|
void | glut3dIdle (void) |
|
void | glut3dMotionFunc (int x, int y) |
|
void | glut3dMouseFunc (int whichButton, int released, int x, int y) |
|
void | glut3dPassiveMouseFunc (int x, int y) |
|
Definition at line 51 of file BaseWindow.h.
◆ BaseWindow()
◆ ~BaseWindow()
core::BaseWindow::~BaseWindow |
( |
| ) |
|
|
virtual |
◆ _registerKeyboardShortcuts()
void core::BaseWindow::_registerKeyboardShortcuts |
( |
| ) |
|
|
protectedvirtual |
◆ _renderBitmapString()
void core::BaseWindow::_renderBitmapString |
( |
float |
x, |
|
|
float |
y, |
|
|
const std::string & |
text |
|
) |
| |
|
protected |
◆ _setHint()
void core::BaseWindow::_setHint |
( |
const std::string & |
message, |
|
|
const uint64_t |
milliseconds = 3000 |
|
) |
| |
|
protected |
◆ _setTitle()
void core::BaseWindow::_setTitle |
( |
const char * |
title | ) |
|
|
protected |
◆ activate()
void core::BaseWindow::activate |
( |
| ) |
|
|
virtual |
activate this window, in the sense that all future glut events get routed to this window instance
Definition at line 236 of file BaseWindow.cpp.
◆ clearPixels()
void core::BaseWindow::clearPixels |
( |
| ) |
|
clear the frame buffer color and depth bits
Definition at line 336 of file BaseWindow.cpp.
◆ create()
void core::BaseWindow::create |
( |
const char * |
title, |
|
|
size_t |
width, |
|
|
size_t |
height |
|
) |
| |
◆ display()
void core::BaseWindow::display |
( |
| ) |
|
|
virtual |
display this window. By default this will just clear this window's framebuffer; it's up to the user to override this fct to do something more useful
Reimplemented in core::Viewer.
Definition at line 247 of file BaseWindow.cpp.
◆ drawPixels() [1/2]
void core::BaseWindow::drawPixels |
( |
const int * |
framebuffer | ) |
|
draw uint pixels into the GLUT window (assumes window and buffer dimensions are equal)
Definition at line 342 of file BaseWindow.cpp.
◆ drawPixels() [2/2]
void core::BaseWindow::drawPixels |
( |
const Vector3f * |
framebuffer | ) |
|
draw float4 pixels into the GLUT window (assumes window and buffer dimensions are equal)
Definition at line 348 of file BaseWindow.cpp.
◆ forceRedraw()
void core::BaseWindow::forceRedraw |
( |
| ) |
|
|
virtual |
tell GLUT that this window is 'dirty' and needs redrawing
Definition at line 242 of file BaseWindow.cpp.
◆ idle()
void core::BaseWindow::idle |
( |
| ) |
|
|
virtual |
◆ keypress()
void core::BaseWindow::keypress |
( |
char |
key, |
|
|
const Vector2f & |
where |
|
) |
| |
|
virtual |
◆ motion()
void core::BaseWindow::motion |
( |
const Vector2i & |
pos | ) |
|
|
virtual |
◆ mouseButton()
void core::BaseWindow::mouseButton |
( |
int |
button, |
|
|
bool |
released, |
|
|
const Vector2i & |
pos |
|
) |
| |
|
virtual |
◆ passiveMotion()
void core::BaseWindow::passiveMotion |
( |
const Vector2i & |
pos | ) |
|
|
virtual |
◆ reshape()
void core::BaseWindow::reshape |
( |
const Vector2i & |
newSize | ) |
|
|
virtual |
◆ setTitle()
void core::BaseWindow::setTitle |
( |
const std::string & |
title | ) |
|
|
inline |
◆ specialkey()
void core::BaseWindow::specialkey |
( |
int |
key, |
|
|
const Vector2f & |
where |
|
) |
| |
|
virtual |
◆ glut3dDisplay
void glut3dDisplay |
( |
void |
| ) |
|
|
friend |
◆ glut3dIdle
◆ glut3dKeyboard
void glut3dKeyboard |
( |
unsigned char |
key, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
friend |
◆ glut3dMotionFunc
void glut3dMotionFunc |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
friend |
◆ glut3dMouseFunc
void glut3dMouseFunc |
( |
int |
whichButton, |
|
|
int |
released, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
friend |
◆ glut3dPassiveMouseFunc
void glut3dPassiveMouseFunc |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
friend |
◆ glut3dReshape
void glut3dReshape |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
friend |
◆ glut3dSpecial
void glut3dSpecial |
( |
int |
key, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
friend |
◆ _chrono
std::chrono::time_point<std::chrono::steady_clock> core::BaseWindow::_chrono |
|
protected |
◆ _core
Core& core::BaseWindow::_core |
|
protected |
◆ _currButtonState
u_int64_t core::BaseWindow::_currButtonState |
|
protected |
◆ _currModifiers
u_int64_t core::BaseWindow::_currModifiers |
|
protected |
◆ _currMousePos
Vector2i core::BaseWindow::_currMousePos |
|
protected |
last mouse screen position of mouse before current motion
Definition at line 119 of file BaseWindow.h.
◆ _defaultInitSize
Vector2i core::BaseWindow::_defaultInitSize |
|
static |
size we'll create a window at
Definition at line 58 of file BaseWindow.h.
◆ _displayHelp
bool core::BaseWindow::_displayHelp |
|
protected |
◆ _frameBufferMode
◆ _fullScreen
bool core::BaseWindow::_fullScreen |
|
protected |
◆ _gid
uint64_t core::BaseWindow::_gid |
|
protected |
◆ _hintDelay
uint64_t core::BaseWindow::_hintDelay {0} |
|
protected |
◆ _hintMessage
std::string core::BaseWindow::_hintMessage |
|
protected |
◆ _lastButtonState
u_int64_t core::BaseWindow::_lastButtonState |
|
protected |
◆ _lastMousePos
Vector2i core::BaseWindow::_lastMousePos |
|
protected |
◆ _mouse
current screen position of mouse
Definition at line 120 of file BaseWindow.h.
◆ _renderInput
◆ _renderOutput
◆ _timer
Timer core::BaseWindow::_timer |
|
protected |
◆ _windowID
int core::BaseWindow::_windowID |
|
protected |
◆ _windowPosition
◆ _windowSize
The documentation for this class was generated from the following files: