diff --git a/RetroFE/Source/Graphics/Component/Video.cpp b/RetroFE/Source/Graphics/Component/Video.cpp index fef1df0..d48b7e4 100644 --- a/RetroFE/Source/Graphics/Component/Video.cpp +++ b/RetroFE/Source/Graphics/Component/Video.cpp @@ -39,6 +39,15 @@ Video::Video(std::string file, std::string altFile, int numLoops, Page &p, float allocateGraphicsMemory( ); } +void Video::launchEnter() +{ + freeGraphicsMemory(); +} + +void Video::launchExit() +{ + allocateGraphicsMemory(); +} Video::~Video( ) { diff --git a/RetroFE/Source/Graphics/Component/Video.h b/RetroFE/Source/Graphics/Component/Video.h index ff81822..49c2644 100644 --- a/RetroFE/Source/Graphics/Component/Video.h +++ b/RetroFE/Source/Graphics/Component/Video.h @@ -28,6 +28,8 @@ public: void update(float dt); void freeGraphicsMemory( ); void allocateGraphicsMemory( ); + void launchEnter(); + void launchExit(); void draw( ); virtual bool isPlaying( );