1 #ifndef MOLECULERENDERER_H
2 #define MOLECULERENDERER_H
8 #include <VertexArrayObject.h>
10 #include <qglshaderprogram.h>
11 #include <qglframebufferobject.h>
13 #include <FrameBuffer.h>
14 #include <Matrix4x4.h>
91 void mouseMoveEvent(QMouseEvent* event);
92 void mousePressEvent(QMouseEvent* event);
93 void mouseReleaseEvent (QMouseEvent* event);
94 void wheelEvent(QWheelEvent* event);
108 void setAOTextureSize(
int size);
112 void prepareData(
void);
119 void render(QGLShaderProgram *sp,
Matrix4x4 * modelMatrix,RenderMode rm);
127 void calcAODirrections();
134 void setGlobalScale(
float rawScale,
float atomScale,
float zoom);
139 float directionVector[3];
142 direction *directions;
148 float rawMoleculeScale;
152 bool manipulationInProgrese;
161 QGLShaderProgram sphereShader;
162 QGLShaderProgram sphereShaderShadow;
163 QGLShaderProgram sphereShaderAO;
164 QGLShaderProgram cylinderShader;
165 QGLShaderProgram cylinderShaderShadow;
166 QGLShaderProgram cylinderShaderAO;
174 #endif // MOLECULERENDERER_H