-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModuleSceneMenu.h
50 lines (37 loc) · 981 Bytes
/
ModuleSceneMenu.h
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
41
42
43
44
45
46
47
48
49
50
#pragma once
#ifndef __SCENE_MENU_H__
#define __SCENE_MENU_H__
#include "Module.h"
#include "Animation.h"
struct SDL_Texture;
class SceneMenu : public Module
{
public:
//Constructor
SceneMenu(Application* app, bool start_enabled = true);
//Destructor
~SceneMenu();
// Called when the module is activated
bool Start();
// Called at the middle of the application loop
// Updates the scene's background animations
update_status Update();
// Called at the end of the application loop.
// Performs the render call of all the parts of the scene's background
//bool PostUpdate();
bool CleanUp();
public:
// The scene sprite sheet loaded into an SDL_Texture
SDL_Texture* menuTexture = nullptr;
SDL_Texture* menuTextureAnim = nullptr;
SDL_Texture* iconTexture = nullptr;
SDL_Texture* cursorTexture = nullptr;
Animation* currentMenuAnim;
Animation menu;
bool appStart = true;
bool transitionanim;
bool playOrExit;
uint introfx;
uint musicmenu;
};
#endif