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.

ugameengine.h 758B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef UGAMEENGINE_H
  2. #define UGAMEENGINE_H
  3. #include "abstractrenderdevice.h"
  4. #include "entities/ugeentity.h"
  5. class UGameEngine : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. UGameEngine(AbstractRenderDevice* device);
  10. virtual ~UGameEngine();
  11. void draw();
  12. public slots:
  13. void addEntity(UGEEntity* entity);
  14. void lookAt(const Vector3D& eye, const Vector3D& center, const Vector3D& up = Vector3D(0.0, 1.0, 0.0));
  15. void setClearColor(const QColor &clearColor);
  16. void initialize(int fov, int width, int height);
  17. void resize(int width, int height);
  18. void loadTextureFromFile(const QVariant& id, const QString& filename);
  19. protected:
  20. QList<UGEEntity*> _entitites;
  21. AbstractRenderDevice* _device;
  22. };
  23. #endif // UGAMEENGINE_H