2021-09-19 18:06:41 +00:00
|
|
|
/*##############################################################################
|
|
|
|
## Author: Shaun Reed ##
|
2022-03-06 16:54:05 +00:00
|
|
|
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
|
2021-09-19 18:06:41 +00:00
|
|
|
## About: Classes for managing objects and data within a scene ##
|
|
|
|
## ##
|
|
|
|
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
|
|
|
##############################################################################*/
|
|
|
|
|
2022-08-07 17:12:12 +00:00
|
|
|
#ifndef QTK_EXAMPLE_SCENE_H
|
|
|
|
#define QTK_EXAMPLE_SCENE_H
|
2021-09-19 18:06:41 +00:00
|
|
|
|
2022-08-07 17:12:12 +00:00
|
|
|
#include <abstractscene.h>
|
2021-09-19 18:06:41 +00:00
|
|
|
#include <camera3d.h>
|
|
|
|
#include <skybox.h>
|
|
|
|
|
|
|
|
#include <QMatrix4x4>
|
|
|
|
|
|
|
|
|
2022-08-07 17:12:12 +00:00
|
|
|
class ExampleScene : public Qtk::Scene {
|
2022-08-14 21:02:50 +00:00
|
|
|
|
2021-09-19 18:06:41 +00:00
|
|
|
public:
|
2022-08-07 17:12:12 +00:00
|
|
|
ExampleScene();
|
|
|
|
~ExampleScene();
|
2021-09-19 18:06:41 +00:00
|
|
|
|
2022-08-07 17:12:12 +00:00
|
|
|
virtual void init();
|
2022-08-14 21:02:50 +00:00
|
|
|
virtual void draw() override;
|
2022-08-07 17:12:12 +00:00
|
|
|
virtual void update();
|
2021-09-19 18:06:41 +00:00
|
|
|
|
|
|
|
private:
|
2022-08-07 17:12:12 +00:00
|
|
|
|
|
|
|
Qtk::MeshRenderer * mTestPhong;
|
|
|
|
Qtk::MeshRenderer * mTestSpecular;
|
|
|
|
Qtk::MeshRenderer * mTestDiffuse;
|
|
|
|
Qtk::MeshRenderer * mTestAmbient;
|
2021-09-19 18:06:41 +00:00
|
|
|
};
|
|
|
|
|
2022-08-07 17:12:12 +00:00
|
|
|
#endif // QTK_EXAMPLE_SCENE_H
|