mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
I suck. big time. Sorry gb.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4113 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ac187bf81d
commit
904eb552fa
1 changed files with 24 additions and 0 deletions
24
plugins/engine.h
Normal file
24
plugins/engine.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
typedef enum uploadfmt_e
|
||||
{
|
||||
TF_INVALID,
|
||||
TF_RGBA32,
|
||||
TF_BGRA32,
|
||||
TF_RGBX32,
|
||||
TF_BGRX32
|
||||
} uploadfmt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
void *(*createdecoder)(char *name); //needed
|
||||
void *(*decodeframe)(void *ctx, qboolean nosound, enum uploadfmt_e *fmt, int *width, int *height); //needed
|
||||
void (*doneframe)(void *ctx, void *img); //basically a free()
|
||||
void (*shutdown)(void *ctx); //probably needed...
|
||||
void (*rewind)(void *ctx);
|
||||
|
||||
//these are any interactivity functions you might want...
|
||||
void (*cursormove) (void *ctx, float posx, float posy); //pos is 0-1
|
||||
void (*key) (void *ctx, int code, int unicode, int event); //key event! event=1=down
|
||||
qboolean (*setsize) (void *ctx, int width, int height); //updates the desired screen-space size
|
||||
void (*getsize) (void *ctx, int *width, int *height); //retrieves the screen-space size
|
||||
void (*changestream) (void *ctx, char *streamname); //can be used to accept commands from qc
|
||||
} media_decoder_funcs_t;
|
Loading…
Reference in a new issue