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 761B

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