#include <glwidget.h>
Public Slots | |
void | runSimulation () |
Public Member Functions | |
GLwidget (const QGLFormat &format, QWidget *parent=0, CellSpace *space=NULL) | |
~GLwidget () | |
void | loadTexture (int w, int h, unsigned char *texture_data) |
QSize | sizeHint () const |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | wheelEvent (QWheelEvent *event) |
void | startSimulation () |
void | stopSimulation () |
CellSpace * | getSpace () |
Protected Member Functions | |
void | initializeGL () |
void | paintGL () |
void | resizeGL (int w, int h) |
GLwidget::GLwidget | ( | const QGLFormat & | format, | |
QWidget * | parent = 0 , |
|||
CellSpace * | space = NULL | |||
) |
format | format ktory sa ma pouzit pri vytvarani OpenGL okna. pozri Qt dokumentaciu ku QGLWidget | |
parent | Qt rodic | |
space | model ktory sa priradi aktualnemu oknu |
GLwidget::~GLwidget | ( | ) |
CellSpace* GLwidget::getSpace | ( | ) | [inline] |
void GLwidget::initializeGL | ( | ) | [protected] |
Inicializacia OpenGL
void GLwidget::loadTexture | ( | int | w, | |
int | h, | |||
unsigned char * | texture | |||
) |
Nacita texturu do OpenGL do akktualneho widgetu
w | sirka textury | |
h | vyska textury | |
texture | pixelove data textury |
void GLwidget::mouseMoveEvent | ( | QMouseEvent * | event | ) |
void GLwidget::mousePressEvent | ( | QMouseEvent * | event | ) |
void GLwidget::paintGL | ( | ) | [protected] |
Vykreslovanie OpenGL sceny
void GLwidget::resizeGL | ( | int | w, | |
int | h | |||
) | [protected] |
void GLwidget::runSimulation | ( | ) | [slot] |
QSize GLwidget::sizeHint | ( | ) | const [inline] |
void GLwidget::startSimulation | ( | ) |
void GLwidget::stopSimulation | ( | ) |
void GLwidget::wheelEvent | ( | QWheelEvent * | event | ) |