You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openglrenderdevice.h 748B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef OPENGLRENDERDEVICE_H
  2. #define OPENGLRENDERDEVICE_H
  3. #include "engine/abstractrenderdevice.h"
  4. class OpenGLRenderDevice : public AbstractRenderDevice
  5. {
  6. Q_OBJECT
  7. public:
  8. explicit OpenGLRenderDevice(QObject *parent = 0);
  9. signals:
  10. public slots:
  11. virtual void initialize(int fov, int width, int height);
  12. virtual void resize(int width, int height);
  13. virtual void preDraw();
  14. virtual void postDraw();
  15. virtual void drawVertex(const ColorVector3D& point);
  16. virtual void drawPoint(const ColorVector3D& point);
  17. virtual void drawLine(const ColorVector3D& begin, const ColorVector3D& end, double width = 1.0);
  18. virtual void drawPolygon(const QList<ColorVector3D>& points);
  19. };
  20. #endif // OPENGLRENDERDEVICE_H