mirror of
https://github.com/Relintai/sfw.git
synced 2024-12-20 21:06:49 +01:00
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
#ifndef GAME_SCENE_H
|
|
#define GAME_SCENE_H
|
|
|
|
#include "render_core/scene.h"
|
|
|
|
#include "render_core/color_material.h"
|
|
#include "render_core/colored_material.h"
|
|
#include "render_core/image.h"
|
|
#include "render_core/mesh.h"
|
|
#include "render_core/texture.h"
|
|
#include "render_core/texture_material.h"
|
|
#include "render_core/texture_material_2d.h"
|
|
#include "render_objects/camera_2d.h"
|
|
#include "render_objects/camera_3d.h"
|
|
#include "render_objects/mesh_instance_3d.h"
|
|
#include "render_objects/sprite.h"
|
|
#include "render_objects/tile_map.h"
|
|
|
|
class GameScene : public Scene {
|
|
SFW_OBJECT(GameScene, Scene);
|
|
|
|
public:
|
|
virtual void input_event(const Ref<InputEvent> &event);
|
|
virtual void update(float delta);
|
|
virtual void render();
|
|
|
|
GameScene();
|
|
~GameScene();
|
|
|
|
bool left;
|
|
bool right;
|
|
bool up;
|
|
bool down;
|
|
|
|
Ref<Image> image;
|
|
Texture *texture;
|
|
TextureMaterial2D *material;
|
|
|
|
Camera2D *camera_2d;
|
|
TileMap *tile_map;
|
|
Sprite *sprite;
|
|
|
|
Camera3D *camera;
|
|
Mesh *mesh;
|
|
MeshInstance3D *mi;
|
|
MeshInstance3D *mi2;
|
|
ColorMaterial *color_material;
|
|
|
|
//ColoredMaterial *cmaterial;
|
|
};
|
|
|
|
#endif |