RAII wrapper for GLFW.
More...
#include <GLFW.h>
VolViz::Private_::GL::GLFW::GLFW |
( |
| ) |
|
|
inline |
Crates a GLFW context associated with a hidden window.
VolViz::Private_::GL::GLFW::GLFW |
( |
std::string |
title, |
|
|
std::size_t |
width, |
|
|
std::size_t |
height |
|
) |
| |
VolViz::Private_::GL::GLFW::GLFW |
( |
GLFW const & |
| ) |
|
|
delete |
VolViz::Private_::GL::GLFW::GLFW |
( |
GLFW && |
rhs | ) |
|
VolViz::Private_::GL::GLFW::~GLFW |
( |
| ) |
|
void VolViz::Private_::GL::GLFW::detachContext |
( |
| ) |
|
|
noexcept |
Detaches the context from the current thread.
std::size_t VolViz::Private_::GL::GLFW::height |
( |
| ) |
const |
|
noexcept |
Returns the height of the window.
void VolViz::Private_::GL::GLFW::hide |
( |
| ) |
|
|
noexcept |
Hides the current window.
bool VolViz::Private_::GL::GLFW::isHidden |
( |
| ) |
const |
|
noexcept |
Returns true if the window is hidden.
void VolViz::Private_::GL::GLFW::makeCurrent |
( |
| ) |
|
|
noexcept |
Makes the window's conext current.
VolViz::Private_::GL::GLFW::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
void VolViz::Private_::GL::GLFW::pollEvents |
( |
| ) |
const |
|
inlinenoexcept |
void VolViz::Private_::GL::GLFW::show |
( |
| ) |
|
|
noexcept |
Unhides the current window.
decltype(auto) VolViz::Private_::GL::GLFW::supportedExtensions |
( |
| ) |
const |
|
inlinenoexcept |
bool VolViz::Private_::GL::GLFW::supportsExtension |
( |
std::string |
name | ) |
const |
|
noexcept |
void VolViz::Private_::GL::GLFW::swapBuffers |
( |
| ) |
const |
|
inlinenoexcept |
void VolViz::Private_::GL::GLFW::waitEvents |
( |
| ) |
const |
|
inlinenoexcept |
std::size_t VolViz::Private_::GL::GLFW::width |
( |
| ) |
const |
|
noexcept |
Returns the width of the window.
std::function<void(int, int, int, int)> VolViz::Private_::GL::GLFW::keyInputHandler |
std::function<void(int, int, int)> VolViz::Private_::GL::GLFW::mouseButtonCallback |
std::function<void(double, double)> VolViz::Private_::GL::GLFW::mouseMoveCallback |
std::function<void(double, double)> VolViz::Private_::GL::GLFW::scrollWheelInputHandler |
scroll wheel input handler
std::vector<std::string> VolViz::Private_::GL::GLFW::supportedExtensions_ |
|
private |
GLFWwindow* VolViz::Private_::GL::GLFW::window = nullptr |
|
private |
std::function<void(std::size_t, std::size_t)> VolViz::Private_::GL::GLFW::windowResizeCallback |
The documentation for this class was generated from the following files:
- /home/travis/build/ithron/VolViz/Source/GL/GLFW.h
- /home/travis/build/ithron/VolViz/Source/GL/GLFW.cpp