#ifndef _PLAYER #define _PLAYER #include "ofMain.h" class Player { public: void Setup(); void Update(ofImage &img, bool show_frame); void Draw(); void SetVideo(std::string path, ofFbo &fbo); void SetFrame(std::string path); 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; ofFbo temp; float x_pos; float y_pos; float new_width; float new_height; ofImage frame; Player(); }; #endif