packspu.h revision 0c0e78bbdcbeec81f856e8aa1097a9504c16bb1c
/* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_PACKSPU_H
#define CR_PACKSPU_H
#ifdef WINDOWS
#define PACKSPU_APIENTRY __stdcall
#else
#define PACKSPU_APIENTRY
#endif
#include "cr_glstate.h"
#include "cr_netserver.h"
#include "cr_pack.h"
#include "cr_spu.h"
#include "cr_threads.h"
#include "state/cr_client.h"
typedef struct thread_info_t ThreadInfo;
typedef struct context_info_t ContextInfo;
struct thread_info_t {
unsigned long id;
int BeginEndState;
int writeback;
};
struct context_info_t {
};
typedef struct {
int id;
int swap;
/* config options */
int swapbuffer_sync;
int ReadPixels;
char *name;
int buffer_size;
int numThreads;
int numContexts;
} PackSPU;
#ifdef CHROMIUM_THREADSAFE
extern CRmutex _PackMutex;
#else
#endif
#define GET_CONTEXT(C) \
GET_THREAD(thread); \
extern void packspuCreateFunctions( void );
extern void packspuFlush( void *arg );
extern GLboolean packspuSyncOnFlushes();
#endif /* CR_PACKSPU_H */