forked from abertay-cmp404/virtual_vita
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplashScreenState.h
More file actions
65 lines (48 loc) · 1.44 KB
/
SplashScreenState.h
File metadata and controls
65 lines (48 loc) · 1.44 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once
#include "StateBase.h"
#include <graphics/sprite.h>
#include <load_texture.h>
#include <maths/math_utils.h>
class SplashScreenState :
public StateBase
{
public:
SplashScreenState();
~SplashScreenState();
virtual StateBase::EStates Update(float frame_time);
virtual void Init();
virtual void CleanUp();
virtual void Render();
void DrawHUD();
private:
float lerp(float _a, float _b, float _t);
float LinearInterpolation(float x, float t, float b, float c, float d);
float LinearTime(float time, float begin, float change, float duration);
float easeOutQuad(float x, float t, float b, float c, float d);
gef::Texture* checker_texture_;
gef::Sprite checker_sprite_;
gef::Texture* logo_Background_texture_;
gef::Sprite logo_Background_sprite_;
gef::Texture* blackBackground_texture;
gef::Sprite blackBackground_sprite_;
gef::Texture* logo_Background_Shadow_texture_;
gef::Sprite logo_Background_Shadow_sprite_;
gef::Texture* logo_texture_;
gef::Sprite logo_sprite_;
float logo_Y_pos;
float text_Y_pos;
float rotationIncrement;
float logoWidth, logoHeight;
bool isLogoExpanded;
float logoExpansionLerpRate;
float logoMaxExpansionDimention;
float TextYPos;
float TextYfinalPos;
float counter, percent;
float fps, duration, iterations, startPosition, endPosition,
distance, timeIncrement, time, position;
float Temp;
bool startTransition, isTransitionEnded;
float blackBackgroundAlpha;
float sliderPosition;
};