#ifndef _PLAYER #define _PLAYER #include "ofMain.h" class Player { public: void Setup(); void Update(ofImage &img); void Draw(); void SetVideo(std::string path, ofFbo &fbo); ofPixels GetVideoPixels(); void SetVideoPosition(ofFbo& output_fbo); void SetRandomFrame(); void SetupGUI(); void UpdateGUI(); void UpdateVector(); void CheckNewFrame(); void GetCurrentFrame(); ofVideoPlayer videoPlayer; int playerCurrentFrame; int playerTotalFrameNum; int playerVideoIndex; std::string videoPath; bool hasVideo; glm::vec2 centerPosition; ofFbo fbo; Player(); }; #endif