Omnidome
Fulldome Mapping Software Toolkit
|
#include <math.h>
#include <QDebug>
#include <QPointF>
#include <QRectF>
#include <QVector2D>
#include <QVector3D>
#include <QOpenGLFunctions>
#include <omni/util.h>
#include <omni/visual/ContextBoundPtr.h>
#include <omni/visual/ContextSwitch.h>
Go to the source code of this file.
Namespaces | |
omni | |
Header to document namespaces. | |
omni::visual | |
Namespace for OpenGL visualization. | |
omni::visual::util | |
Functions | |
double | omni::visual::util::now () |
Get current time in nano seconds. More... | |
template<typename F > | |
void | omni::visual::util::for_each_circle_point (size_t _numVertices, float _radius, F _f) |
QRectF | omni::visual::util::viewRect (int _imageWidth, int _imageHeight, int _canvasWidth, int _canvasHeight, float _border=0.0) |
Calculate view rectangle on 2D OpenGL surface. More... | |
template<typename F > | |
void | omni::visual::util::for_each_arc_point (size_t _numVertices, float _radius, float _beginAngle, float _endAngle, F _f) |
template<typename SIZE > | |
qreal | omni::visual::util::aspect (SIZE const &_size) |
Calculates the aspect ratio from a QSize. More... | |
void | omni::visual::util::resetOpenGLState () |
Reset openGL state to its defaults. More... | |
void | omni::visual::util::checkOpenGLError () |
Convenience function for handling glGetError() More... | |
template<typename FRAMEBUFFER , typename PROJECTION , typename MODELVIEW > | |
void | omni::visual::util::draw_on_framebuffer (FRAMEBUFFER *_f, PROJECTION _p, MODELVIEW _m) |
Draw into QOpenGLFramebufferObject with given projection and model. More... | |
template<typename WIDGET > | |
void | omni::visual::util::viewport (WIDGET *_widget) |
Set viewport for widget. More... | |