SimpleNGL 1.0
|
The GLWidget for updating the drawing of our scene. More...
#include <GLWindow.h>
Public Slots | |
void | setDeformer (int _v) |
void | setnextWidth (int _w) |
void | setnextHeight (int _h) |
void | setOrig (bool _v) |
void | setMode (int _v) |
void | setChunked (int _v) |
void | setMag (double _v) |
void | setSphereX (double _v) |
void | setSphereY (double _v) |
void | setSphereZ (double _v) |
void | setSphereRad (double _v) |
void | reset () |
void | updateGrid () |
void | printIspcRadial () |
void | printIspcNoise () |
void | printSerialRadial () |
void | printSerialNoise () |
Public Member Functions | |
GLWindow (QWidget *_parent) | |
Constructor for GLWindow. | |
~GLWindow () | |
void | processKeyPress (QKeyEvent *_event) |
GL key events processing. | |
void | registerConsole (QTextEdit *c) |
Protected Member Functions | |
void | log (const std::string &_msg) |
void | genShader (const std::string &_name, const std::string &_VSname, const std::string &_FSname, const std::vector< std::string > &_attributes) |
a helper function for generating ngl shaders | |
void | initializeGL () |
called upon creating GLWindow, setup for Glew and other scene elements | |
void | resizeGL (const int _w, const int _h) |
Re-size method, disabled in this application. | |
void | paintGL () |
this is the main gl drawing routine | |
Protected Attributes | |
ngl::TransformStack | m_transformStack |
the transformation stack |
The GLWidget for updating the drawing of our scene.
GLWindow::GLWindow | ( | QWidget * | _parent | ) |
Constructor for GLWindow.
[in] | _parent | the parent window to create the GL context in |
GLWindow::~GLWindow | ( | ) | [inline] |
void GLWindow::genShader | ( | const std::string & | _name, |
const std::string & | _VSname, | ||
const std::string & | _FSname, | ||
const std::vector< std::string > & | _attributes | ||
) | [protected] |
a helper function for generating ngl shaders
[in] | _name | the shaders desired name |
[in] | _VSname | the vertex shader name |
[in] | _FSname | the frag sjader name |
[in] | _attributes | a vector of strings for the shaders attributes |
void GLWindow::initializeGL | ( | ) | [protected] |
called upon creating GLWindow, setup for Glew and other scene elements
void GLWindow::log | ( | const std::string & | _msg | ) | [inline, protected] |
void GLWindow::paintGL | ( | ) | [protected] |
this is the main gl drawing routine
void GLWindow::printIspcNoise | ( | ) | [inline, slot] |
void GLWindow::printIspcRadial | ( | ) | [inline, slot] |
void GLWindow::printSerialNoise | ( | ) | [inline, slot] |
void GLWindow::printSerialRadial | ( | ) | [inline, slot] |
void GLWindow::processKeyPress | ( | QKeyEvent * | _event | ) |
GL key events processing.
[in] | _event | the event infomation |
void GLWindow::registerConsole | ( | QTextEdit * | c | ) | [inline] |
void GLWindow::reset | ( | ) | [slot] |
void GLWindow::resizeGL | ( | const int | _w, |
const int | _h | ||
) | [protected] |
Re-size method, disabled in this application.
void GLWindow::setChunked | ( | int | _v | ) | [inline, slot] |
void GLWindow::setDeformer | ( | int | _v | ) | [inline, slot] |
void GLWindow::setMag | ( | double | _v | ) | [inline, slot] |
void GLWindow::setMode | ( | int | _v | ) | [inline, slot] |
void GLWindow::setnextHeight | ( | int | _h | ) | [inline, slot] |
void GLWindow::setnextWidth | ( | int | _w | ) | [inline, slot] |
void GLWindow::setOrig | ( | bool | _v | ) | [inline, slot] |
void GLWindow::setSphereRad | ( | double | _v | ) | [inline, slot] |
void GLWindow::setSphereX | ( | double | _v | ) | [inline, slot] |
void GLWindow::setSphereY | ( | double | _v | ) | [inline, slot] |
void GLWindow::setSphereZ | ( | double | _v | ) | [inline, slot] |
void GLWindow::updateGrid | ( | ) | [slot] |
ngl::TransformStack GLWindow::m_transformStack [protected] |
the transformation stack