mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 10:35:35 -04:00
44124711e9
Adapted to changes in GDCore/GDL. git-svn-id: svn://localhost@768 8062f311-0dae-4547-b526-b8ab9ac864a5
29 lines
645 B
C++
29 lines
645 B
C++
#ifndef _THEORAMEMORYLOADER_H
|
|
#define _THEORAMEMORYLOADER_H
|
|
|
|
#include <string>
|
|
#include <stdio.h>
|
|
#include "TheoraDataSource.h"
|
|
|
|
/**
|
|
* \brief Simple class to load a video from memory
|
|
*/
|
|
class TheoraMemoryLoader : public TheoraDataSource
|
|
{
|
|
std::string mName;
|
|
unsigned long mSize,mReadPointer;
|
|
unsigned char* mData;
|
|
public:
|
|
TheoraMemoryLoader(std::string name, unsigned char *source, unsigned long size);
|
|
~TheoraMemoryLoader();
|
|
|
|
int read(void* output,int nBytes);
|
|
void seek(unsigned long byte_index);
|
|
|
|
std::string repr() { return "Memory:"+mName; }
|
|
unsigned long size();
|
|
unsigned long tell();
|
|
};
|
|
|
|
#endif
|