work for beta festival 2024
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.

47 lines
834 B

6 months ago
#ifndef _PLAYER
#define _PLAYER
#include "ofMain.h"
class Player {
public:
void Setup();
void Update(ofImage &img, bool show_frame);
6 months ago
void Draw();
void SetVideo(std::string path, ofFbo &fbo);
void SetFrame(std::string path);
6 months ago
ofPixels GetVideoPixels();
void SetVideoPosition(ofFbo& output_fbo);
6 months ago
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;
6 months ago
Player();
};
#endif