mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-06 19:02:52 +02:00
Setting code formatting standard to allman.
This commit is contained in:
@@ -12,21 +12,27 @@
|
||||
class VideoComponent : public Component
|
||||
{
|
||||
public:
|
||||
VideoComponent(IVideo *videoInst, std::string videoFile, float scaleX, float scaleY);
|
||||
virtual ~VideoComponent();
|
||||
void Update(float dt);
|
||||
void Draw();
|
||||
void FreeGraphicsMemory();
|
||||
void AllocateGraphicsMemory();
|
||||
void LaunchEnter() {FreeGraphicsMemory(); }
|
||||
void LaunchExit() { AllocateGraphicsMemory(); }
|
||||
VideoComponent(IVideo *videoInst, std::string videoFile, float scaleX, float scaleY);
|
||||
virtual ~VideoComponent();
|
||||
void Update(float dt);
|
||||
void Draw();
|
||||
void FreeGraphicsMemory();
|
||||
void AllocateGraphicsMemory();
|
||||
void LaunchEnter()
|
||||
{
|
||||
FreeGraphicsMemory();
|
||||
}
|
||||
void LaunchExit()
|
||||
{
|
||||
AllocateGraphicsMemory();
|
||||
}
|
||||
|
||||
private:
|
||||
SDL_Texture *VideoTexture;
|
||||
std::string VideoFile;
|
||||
std::string Name;
|
||||
IVideo *VideoInst;
|
||||
float ScaleX;
|
||||
float ScaleY;
|
||||
bool IsPlaying;
|
||||
SDL_Texture *VideoTexture;
|
||||
std::string VideoFile;
|
||||
std::string Name;
|
||||
IVideo *VideoInst;
|
||||
float ScaleX;
|
||||
float ScaleY;
|
||||
bool IsPlaying;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user