QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sv_recorder.c File Reference

Macros

#define DEMO_FRAMES   64
 
#define DEMO_FRAMES_MASK   (DEMO_FRAMES - 1)
 
#define HEADER   ((int) (intptr_t) &((header_t *) 0)->data)
 
#define MAXSIZE
 
#define MIN_DEMO_MEMORY   0x100000
 
#define USECACHE   (sv_demoUseCache->int_val && svs.demomemsize)
 

Typedefs

typedef struct dbuffer_s dbuffer_t
 
typedef struct demo_frame_s demo_frame_t
 
typedef struct demobuf_s demobuf_t
 
typedef struct header_s header_t
 
typedef struct rec_s rec_t
 

Functions

recorder_tSVR_AddUser (void(*write)(void *, sizebuf_t *, int), int(*frame)(void *), void(*end_frame)(recorder_t *, void *), void(*finish)(void *, sizebuf_t *), int demo, void *user)
 
void SVR_Continue (recorder_t *r)
 
sizebuf_tSVR_Datagram (void)
 
void SVR_ForceFrame (void)
 
void SVR_Init (void)
 
int SVR_NumRecorders (void)
 
void SVR_Pause (recorder_t *r)
 
void SVR_RemoveUser (recorder_t *r)
 
void SVR_SendMessages (void)
 
void SVR_SetDelta (recorder_t *r, int delta, int in_frame)
 
sizebuf_tSVR_WriteBegin (byte type, int to, int size)
 

Macro Definition Documentation

#define DEMO_FRAMES   64
#define DEMO_FRAMES_MASK   (DEMO_FRAMES - 1)
#define HEADER   ((int) (intptr_t) &((header_t *) 0)->data)
#define MAXSIZE
Value:
(rec.dbuffer.end < rec.dbuffer.last ? \
rec.dbuffer.start - rec.dbuffer.end : \
rec.dbuffer.maxsize - rec.dbuffer.end)
#define MIN_DEMO_MEMORY   0x100000
#define USECACHE   (sv_demoUseCache->int_val && svs.demomemsize)

Typedef Documentation

typedef struct dbuffer_s dbuffer_t
typedef struct demo_frame_s demo_frame_t
typedef struct demobuf_s demobuf_t
typedef struct header_s header_t
typedef struct rec_s rec_t

Function Documentation

recorder_t* SVR_AddUser ( void(*)(void *, sizebuf_t *, int write,
int(*)(void *)  frame,
void(*)(recorder_t *, void *)  end_frame,
void(*)(void *, sizebuf_t *)  finish,
int  demo,
void *  user 
)
void SVR_Continue ( recorder_t r)
sizebuf_t* SVR_Datagram ( void  )
void SVR_ForceFrame ( void  )
void SVR_Init ( void  )
int SVR_NumRecorders ( void  )
void SVR_Pause ( recorder_t r)
void SVR_RemoveUser ( recorder_t r)
void SVR_SendMessages ( void  )
void SVR_SetDelta ( recorder_t r,
int  delta,
int  in_frame 
)
sizebuf_t* SVR_WriteBegin ( byte  type,
int  to,
int  size 
)