forked from abertay-cmp404/virtual_vita
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStateInfo.h
More file actions
40 lines (34 loc) · 913 Bytes
/
StateInfo.h
File metadata and controls
40 lines (34 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "../gef_abertay/graphics/sprite_renderer.h"
#include <input\sony_controller_input_manager.h>
#include "../gef_abertay/graphics/renderer_3d.h"
#include <system/platform.h>
#include <graphics/sprite_renderer.h>
#include <graphics/font.h>
#include "primitive_builder.h"
#include "input/keyboard.h"
#include "input/input_manager.h"
namespace gef
{
class SonyController;
class Renderer3D;
class Platform;
class SpriteRenderer;
class Font;
class InputManager;
}
// this structure contains all the resources needed in my game
struct StateInitInfo
{
gef::SpriteRenderer* sprite_renderer_;
gef::Font* font_;
gef::InputManager* input_manager_;
PrimitiveBuilder* Primitive_Builder;
gef::Renderer3D* renderer_3d_;
gef::Platform &platform_;
StateInitInfo(gef::Platform &_p) : platform_(_p)
{
};
static void createPointer(gef::Platform &_p);
static StateInitInfo* getInstance();
};