gldraw.h

Mon, 18 Mar 2013 13:16:21 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 18 Mar 2013 13:16:21 +0200
changeset 28
208adc847377
parent 26
83184d9407c7
child 30
31ff9aabd506
permissions
-rw-r--r--

added Save As function

#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__

mercurial