2020-07-08 09:05:02 +02:00
|
|
|
//
|
|
|
|
// Created by Wouter Groeneveld on 02/08/18.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef GBA_SPRITE_ENGINE_SAMPLE_START_SCENE_H
|
|
|
|
#define GBA_SPRITE_ENGINE_SAMPLE_START_SCENE_H
|
|
|
|
|
2020-07-15 10:52:13 +02:00
|
|
|
#include <libgba-bitmap-engine/scene.h>
|
|
|
|
#include <libgba-bitmap-engine/mesh.h>
|
|
|
|
#include <libgba-bitmap-engine/camera.h>
|
2020-07-08 18:12:38 +02:00
|
|
|
#include <memory>
|
2020-07-08 09:05:02 +02:00
|
|
|
|
|
|
|
class WireScene : public Scene {
|
|
|
|
private:
|
2020-07-08 18:12:38 +02:00
|
|
|
std::unique_ptr<Mesh> cube;
|
2020-07-08 09:05:02 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
WireScene(std::shared_ptr<GBAEngine> engine) : Scene(engine) {}
|
|
|
|
|
|
|
|
void load() override;
|
|
|
|
void tick(u16 keys) override;
|
2020-07-08 18:12:38 +02:00
|
|
|
std::vector<Mesh*> meshes() override;
|
2020-07-09 13:29:02 +02:00
|
|
|
Camera camera() override;
|
2020-07-08 09:05:02 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //GBA_SPRITE_ENGINE_SAMPLE_START_SCENE_H
|