blob: b03327241e488f7343c57206d494510384cc1765 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef SUPPORT_H
#define SUPPORT_H
#include <stdio.h>
#include <unistd.h>
#include <AL/al.h>
#define fsFromStart SEEK_SET
typedef char* Str255;
typedef int OSErr;
typedef short int SInt16;
typedef bool Boolean;
#define TRUE true
#define FALSE false
typedef struct UnsignedWide
{
unsigned int lo;
unsigned int hi;
} UnsignedWide;
#define SetFPos(fildes, whence, offset) lseek(fildes, offset, whence)
#define FSClose(fildes) close(fildes)
int Random();
bool IsKeyDown(int key);
void loadOgg(char* filename, ALuint buffer, ALuint source);
FILE *cfh_fopen(const char *filename, const char *mode);
#endif
|