|
Product parts
|
|
Virtual File system
|
| Virtual Render |
| Virtual Machine |
| |
|
Demo Games
|
| |
|
3D Engine
|
|
gvSystem(dx9)
|
|
|
|
Link
|
 |
|
|
gdefine.h File Reference#include <math.h>
#include <memory.h>
Include dependency graph for gdefine.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
|
Defines |
| #define | _APP_ "gvSystem" |
| #define | _VERSION_ "v2.1521233 (passed build)" |
| #define | BASE_PATH "" |
| #define | BASE_PATH1 "data/" |
| #define | MAXTOKEN 1024 |
| #define | LINE_TERMINATOR TEXT("\r\n") |
| #define | PATH_SEPARATOR TEXT("\\") |
| #define | DLLEXT TEXT(".dll") |
| #define | LIBRARY HMODULE |
| #define | LIB_PREFIX "" |
| #define | LIB_SUFFIX ".dll" |
| #define | LOADLIB(file) LoadLibrary(file) |
| #define | UNLOADLIB(lib) FreeLibrary((HMODULE)lib) |
| #define | INVALID_LIBRARY NULL |
| #define | _OS_ "linux" |
| #define | ASM 0 |
| #define | pathcmp stricmp |
| #define | guard(func) {static const char __FUNC_NAME__[]=TEXT(#func); |
| #define | unguard } |
| #define | unguardf(msg) } |
| #define | MAX_DISP 32 |
| #define | MAX_KEYBKEYS 256 |
| #define | DINPUT_BUFFERSIZE 2048 |
Typedefs |
| typedef unsigned char | BYTE |
| typedef unsigned short | WORD |
| typedef unsigned long | DWORD |
| typedef signed char | SBYTE |
| typedef signed short | SWORD |
| typedef signed int | INT |
| typedef unsigned int | UINT |
| typedef long | LONG |
| typedef unsigned char | byte |
| typedef unsigned short | word |
| typedef unsigned int | dword |
| typedef float | FLOAT |
| typedef double | DOUBLE |
| typedef INT | BOOL |
Enumerations |
| enum | inputType { ID_KEYBOARD = 0x01,
ID_MOUSE = 0x02,
ID_JOYSTICK1 = 0x04,
ID_JOYSTICK2 = 0x08
} |
| enum | mouseAction {
MV_XPOS,
MV_YPOS,
MV_XAXIS,
MV_YAXIS,
MV_ZAXIS,
MV_BUTTON1,
MV_BUTTON2,
MV_BUTTON3,
MV_BUTTON4,
MV_WHEELUP,
MV_WHEELDOWN
} |
| enum | errorType {
_NO_ERROR,
ERROR_LOADING_FILE,
ERROR_LOADING_MODULE,
ERROR_FREEING_MODULE,
ERROR_ALLOCATING_MEMORY,
ERROR_READING_FILE,
ERROR_INVALID_FILENAME,
ERROR_FORMAT_NOT_SUPPORTED,
ERROR_CREATING_WINDOW,
CRITICAL_ERROR,
HEAP_ERROR,
PARSE_ERROR,
UNKNOWN_ERROR
} |
| enum | varType {
VF_CHEAT = 0x0001,
VF_SYSTEM = 0x0002,
VF_PERSISTENT = 0x0004,
VF_LATCH = 0x0008,
VF_USER = 0x0010,
VF_TEMP = 0x0020,
VF_AUTO = 0x0040
} |
Functions |
| int | appRound (float F) |
| int | appFloor (float F) |
| char | appToUpper (char c) |
| char | appToLower (char c) |
| bool | appIsAlpha (char c) |
| bool | appIsDigit (char c) |
| bool | appIsAlnum (char c) |
| int | gvStrcmp (const char *s1, const char *s2) |
| int | gvStrncmp (const char *s1, const char *s2, int len) |
| char * | gvStrcpy (register char *s1, register const char *s2) |
| DWORD | appCycles () |
| void | appMemcpy (void *Dest, const void *Src, INT Count) |
| void | appMemzero (void *Dest, INT Count) |
| void | appMemset (void *Dest, int setvalue, int nsize) |
Define Documentation
| #define _VERSION_ "v2.1521233 (passed build)" |
| #define BASE_PATH1 "data/" |
| #define DINPUT_BUFFERSIZE 2048 |
| #define DLLEXT TEXT(".dll") |
| #define guard |
( |
func |
|
) |
{static const char __FUNC_NAME__[]=TEXT(#func); |
| #define INVALID_LIBRARY NULL |
| #define LIB_SUFFIX ".dll" |
| #define LINE_TERMINATOR TEXT("\r\n") |
| #define LOADLIB |
( |
file |
|
) |
LoadLibrary(file) |
| #define PATH_SEPARATOR TEXT("\\") |
| #define unguardf |
( |
msg |
|
) |
} |
| #define UNLOADLIB |
( |
lib |
|
) |
FreeLibrary((HMODULE)lib) |
Typedef Documentation
| typedef unsigned char byte |
| typedef unsigned char BYTE |
| typedef unsigned int dword |
| typedef unsigned long DWORD |
| typedef signed char SBYTE |
| typedef signed short SWORD |
| typedef unsigned int UINT |
| typedef unsigned short word |
| typedef unsigned short WORD |
Enumeration Type Documentation
- Enumerator:
-
| _NO_ERROR |
|
| ERROR_LOADING_FILE |
|
| ERROR_LOADING_MODULE |
|
| ERROR_FREEING_MODULE |
|
| ERROR_ALLOCATING_MEMORY |
|
| ERROR_READING_FILE |
|
| ERROR_INVALID_FILENAME |
|
| ERROR_FORMAT_NOT_SUPPORTED |
|
| ERROR_CREATING_WINDOW |
|
| CRITICAL_ERROR |
|
| HEAP_ERROR |
|
| PARSE_ERROR |
|
| UNKNOWN_ERROR |
|
Definition at line 247 of file gdefine.h.
- Enumerator:
-
| ID_KEYBOARD |
|
| ID_MOUSE |
|
| ID_JOYSTICK1 |
|
| ID_JOYSTICK2 |
|
Definition at line 223 of file gdefine.h.
- Enumerator:
-
| MV_XPOS |
|
| MV_YPOS |
|
| MV_XAXIS |
|
| MV_YAXIS |
|
| MV_ZAXIS |
|
| MV_BUTTON1 |
|
| MV_BUTTON2 |
|
| MV_BUTTON3 |
|
| MV_BUTTON4 |
|
| MV_WHEELUP |
|
| MV_WHEELDOWN |
|
Definition at line 232 of file gdefine.h.
- Enumerator:
-
| VF_CHEAT |
|
| VF_SYSTEM |
|
| VF_PERSISTENT |
|
| VF_LATCH |
|
| VF_USER |
|
| VF_TEMP |
|
| VF_AUTO |
|
Definition at line 265 of file gdefine.h.
Function Documentation
| bool appIsAlnum |
( |
char |
c |
) |
|
| bool appIsAlpha |
( |
char |
c |
) |
|
| bool appIsDigit |
( |
char |
c |
) |
|
| void appMemcpy |
( |
void * |
Dest, |
|
|
const void * |
Src, |
|
|
INT |
Count | |
|
) |
| | |
| void appMemset |
( |
void * |
Dest, |
|
|
int |
setvalue, |
|
|
int |
nsize | |
|
) |
| | |
| void appMemzero |
( |
void * |
Dest, |
|
|
INT |
Count | |
|
) |
| | |
| char appToLower |
( |
char |
c |
) |
|
| char appToUpper |
( |
char |
c |
) |
|
| int gvStrcmp |
( |
const char * |
s1, |
|
|
const char * |
s2 | |
|
) |
| | |
| char* gvStrcpy |
( |
register char * |
s1, |
|
|
register const char * |
s2 | |
|
) |
| | |
| int gvStrncmp |
( |
const char * |
s1, |
|
|
const char * |
s2, |
|
|
int |
len | |
|
) |
| | |
|