123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef OPENGLRENDERDEVICE_H
- #define OPENGLRENDERDEVICE_H
-
- #include "engine/abstractrenderdevice.h"
-
- class OpenGLRenderDevice : public AbstractRenderDevice
- {
- Q_OBJECT
- public:
- explicit OpenGLRenderDevice(QObject *parent = 0);
-
- virtual Vector3D get2DFrom3D(const Vector3D& pos);
-
- virtual Vector3D get3DFrom2D(int x, int y);
-
- signals:
-
- public slots:
-
- virtual void initialize(int fov, int width, int height);
-
- virtual void resize(int width, int height);
-
- virtual void preDraw();
-
- virtual void postDraw();
-
- virtual void drawVertex(const ColorVector3D& point);
-
- virtual void drawPoint(const ColorVector3D& point);
-
- virtual void drawLine(const ColorVector3D& begin, const ColorVector3D& end, double width = 1.0);
-
- virtual void drawPolygon(const QList<ColorVector3D>& points);
-
- private:
- int _width;
-
- int _height;
-
- int _fov;
-
- };
-
- #endif // OPENGLRENDERDEVICE_H
|