1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef UGAMEENGINE_H
- #define UGAMEENGINE_H
-
- #include "abstractrenderdevice.h"
- #include "entities/ugeentity.h"
-
- class UGameEngine : public QObject
- {
- Q_OBJECT
- public:
- UGameEngine(AbstractRenderDevice* device);
- virtual ~UGameEngine();
-
- void draw();
-
- public slots:
- void addEntity(UGEEntity* entity);
-
- void lookAt(const Vector3D& eye, const Vector3D& center, const Vector3D& up = Vector3D(0.0, 1.0, 0.0));
-
- void setClearColor(const QColor &clearColor);
-
- void initialize(int fov, int width, int height);
-
- void resize(int width, int height);
-
- void loadTextureFromFile(const QVariant& id, const QString& filename);
-
- protected:
- QList<UGEEntity*> _entitites;
-
- AbstractRenderDevice* _device;
- };
-
- #endif // UGAMEENGINE_H
|