Kinc to Kore

This commit is contained in:
Gorochu
2026-06-09 13:00:08 -07:00
parent 7558d03739
commit c24828f11d
895 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,40 @@
#include <Kore/Graphics4/Texture.h>
#include <Kore/IO/FileReader.h>
namespace Kore {
class VideoSoundStream;
class Video {
public:
Video(const char *filename) {
duration = 1000 * 10;
position = 0;
finished = false;
paused = false;
image = new Graphics4::Texture(100, 100, Graphics4::Image::RGBA32, false);
}
~Video() {
delete image;
}
void play() {}
void pause() {}
void stop() {}
int width() {
return 100;
}
int height() {
return 100;
}
Graphics4::Texture *currentImage() {
return image;
}
double duration; // milliseconds
double position; // milliseconds
bool finished;
bool paused;
void update(double time) {}
private:
Graphics4::Texture *image;
};
}