gldraw.h

changeset 26
83184d9407c7
child 28
208adc847377
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gldraw.h	Mon Mar 18 12:20:48 2013 +0200
@@ -0,0 +1,32 @@
+#ifndef __GLDRAW_H__
+#define __GLDRAW_H__
+
+#include <QGLWidget>
+#include "common.h"
+#include "ldtypes.h"
+
+class renderer : public QGLWidget {
+	Q_OBJECT
+	
+public:
+	renderer(QWidget* parent = NULL);
+	void hardRefresh ();
+	void CompileObjects ();
+	double fRotX, fRotY, fRotZ;
+	QPoint lastPos;
+	double fZoom;
+
+protected:
+	void initializeGL ();
+	void resizeGL (int w, int h);
+	void paintGL ();
+	
+	void mouseMoveEvent (QMouseEvent *event);
+
+private:
+	GLuint objlist;
+	void CompileOneObject (LDObject* obj);
+	void ClampAngle (double& fAngle);
+};
+
+#endif // __GLDRAW_H__
\ No newline at end of file

mercurial