33 lines
No EOL
461 B
C
33 lines
No EOL
461 B
C
#ifndef _SUBTITLES_H_
|
|
#define _SUBTITLES_H_
|
|
|
|
#include "Scene.h"
|
|
|
|
void LoadSubtitle(char * filename);
|
|
void SaveSubtitle(char * filename, char* dest);
|
|
void SetSubtitle(char * filename, char* text, float time);
|
|
char * GetSubtitle(char * filename, float time);
|
|
|
|
#define initMaxSub 32
|
|
|
|
|
|
struct Subtitle
|
|
{
|
|
float from;
|
|
float to;
|
|
char text[1024];
|
|
char newText[1024];
|
|
};
|
|
|
|
struct Subfile
|
|
{
|
|
int count;
|
|
int maxSub;
|
|
Subtitle* subtitles;
|
|
char* filename;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif |