You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
650 B
39 lines
650 B
6 months ago
|
#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();
|
||
|
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
|