home *** CD-ROM | disk | FTP | other *** search
- var f32x MATH_PI = 3.14159265359;
- var f32x MATH_2PI = 6.28318530718;
- var f32x MATH_PI_DIV2 = 1.5707963268;
-
- var i32x NULL = 0;
-
- // Base class for sprite
- class Menu_Sprite
- {
- };
- class Menu_Kit
- {
- };
- class Menu_Material
- {
- };
- class Menu_Mesh
- {
- };
- class Display_List
- {
- };
-
- func i32x isdebug();
- func i32x isAIdebug();
- func i32x isDemo();
- func f32x getCMversion();
-
- func szx print(szx szString);
- func szx println(szx szString);
-
- func i32x strlen(szx szString);
- func i32x strcmp(szx szString1, szx szString2);
- func szx strupr(szx szString);
- func szx strlwr(szx szString);
- func szx strncpy(szx szString,i32x iStart, i32x iLength);
- func szx strcat(szx szString1, szx szString2);
-
- func szx itoa(i32x iInteger);
- func szx itohex8(i32x iInteger);
- func i32x atoi(szx szString);
- func szx ftoa(f32x fFloat);
- func szx Formattedftoa(f32x fFloat,i32x iEntire,i32x iDecimal);
-
- func szx GetHMS(f32x fFloat);
-
- func f32x atof(szx szString);
-
- func i32x rand(i32x iMax);
- func i32x randomize(i32x iSeed);
- func i32x randomizetimer();
-
- func i32x GetBit(i32x uiBitField,i32x iBit);
- func i32x SetBit(i32x uiBitField,i32x iBit, i32x iValue);
-
- // Maths tools
- func i32x abs(i32x _i);
- func f32x fabs(f32x _f);
- func f32x fmod(f32x _f,f32x _f2);
- func f32x cos(f32x _f);
- func f32x sin(f32x _f);
- func f32x tan(f32x _f);
- func f32x acos(f32x _f);
- func f32x asin(f32x _f);
- func f32x atan(f32x _f);
-
-
- // file tools
-
- class FILE;
- class FILEBUF;
-
- var i32x C_File_eMode_WRITE_TRUNC_TEXT = 1;
- var i32x C_File_eMode_WRITE_APPEND_TEXT = 2;
- var i32x C_File_eMode_READ_TEXT = 3;
- var i32x C_File_eMode_WRITE_TRUNC_BINARY = 4;
- var i32x C_File_eMode_WRITE_APPEND_BINARY = 5;
- var i32x C_File_eMode_READ_BINARY = 6;
-
- var i32x C_Dir_eModeLocal = 0;
- var i32x C_Dir_eModeRoot = 1;
-
- var i32x C_File_eSeekFromStart = 0;
- var i32x C_File_eSeekFromCurrent = 1;
- var i32x C_File_eSeekFromEnd = 2;
-
- func FILE fopen (szx _szFilename, i32x _iFilemode, i32x _iDirmode );
- func i32x fclose (FILE _pFile);
- func i32x fread (FILE _pFile, FILEBUF _pBuffer,i32x _iBlockSize, i32x _iBlockNumber);
- func i32x fwrite (FILE _pFile, FILEBUF _pBuffer,i32x _iBlockSize, i32x _iBlockNumber);
- func i32x fseek (FILE _pFile, i32x _iOffset,i32x _iSeekOrigin);
- func i32x freadline (FILE _pFile, FILEBUF _pBuffer);
- func i32x fwriteline (FILE _pFile, szx _szLine);
- func FILEBUF CreateFileBuf (i32x _iSize);
- func void DeleteFileBuf (FILEBUF _pBuffer);
- func szx GetStringFromBuf (FILEBUF _pBuffer);
-
-
-
- // Rgba tools
- func i32x MakeARGB(i32x _a,i32x _r,i32x _g,i32x _b);
- func i32x GetAlpha(i32x _iColor);
- func i32x GetRed(i32x _iColor);
- func i32x GetGreen(i32x _iColor);
- func i32x GetBlue(i32x _iColor);
-