123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808 |
- //--------------------------------------------------------------------------
- //
- // And away we go. MechCommander II GOSScript Test Shell
- //
- //---------------------------------------------------------------------------//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- //-----------------------------------
- // Include Files
- #ifndef MCLIB_H
- #include "mclib.h"
- #endif
- #ifndef LOGISTICS_H
- #include "logistics.h"
- #endif
- #ifndef GAMESOUND_H
- #include "gamesound.h"
- #endif
- #ifndef VERSION_H
- #include "version.h"
- #endif
- #include <GameOS\GameOS.hpp>
- #include <GameOS\ToolOS.hpp>
- #include <GOSScript\GOSScriptHeaders.hpp>
- #include <Stuff\stuff.hpp>
- //------------------------------------------------------------------------------------------------------------
- // MechCmdr2 Global Instances of Things
- UserHeapPtr systemHeap = NULL;
- UserHeapPtr guiHeap = NULL;
- FastFile **fastFiles = NULL;
- long numFastFiles = 0;
- long maxFastFiles = 0;
- long GameDifficulty = 0;
- long gammaLevel = 0;
- long DigitalMasterVolume = 0;
- long MusicVolume = 0;
- long SFXVolume = 0;
- long RadioVolume = 0;
- long resolution = 0;
- long FilterState = gos_FilterNone;
- bool quitGame = FALSE;
- bool justStartMission = FALSE;
- bool gamePaused = FALSE;
- bool hasGuardBand = false;
- bool useUnlimitedAmmo = true;
- TimerManagerPtr timerManager = NULL;
- unsigned long elementHeapSize = 1024000;
- unsigned long maxElements = 2048;
- unsigned long maxGroups = 1024;
- unsigned long systemHeapSize = 3071999;
- unsigned long guiHeapSize = 1023999;
- unsigned long logisticsHeapSize = 4095999;
- unsigned long missionHeapSize = 1023999;
- unsigned long spriteDataHeapSize = 2048000;
- unsigned long spriteHeapSize = 8192000;
- unsigned long polyHeapSize = 1024000;
- unsigned long tglHeapSize = 32767000;
- DWORD gosResourceHandle = 0;
- HGOSFONT3D gosFontHandle = 0;
- FloatHelpPtr globalFloatHelp = NULL;
- unsigned long currentFloatHelp = 0;
- float MaxMinUV = 8.0f;
- DWORD BaseVertexColor = 0x00000000; //This color is applied to all vertices in game as Brightness correction.
- enum { CPU_UNKNOWN, CPU_PENTIUM, CPU_MMX, CPU_KATMAI } Processor = CPU_PENTIUM; //Needs to be set when GameOS supports ProcessorID -- MECHCMDR2
- extern float frameRate;
- void EnterWindowMode();
- extern bool useSound;
- extern bool useMusic;
- bool inViewMode = false;
- unsigned long viewObject = 0x0;
- char missionName[1024];
- char* ExceptionGameMsg = NULL;
- char buildNumber[80];
- extern long TERRAIN_TXM_SIZE;
- long ObjectTextureSize = 128;
- extern unsigned long MultiPlayCommanderId;
- extern bool useRealLOS;
- bool reloadBounds = false;
- //DEBUG
- CameraPtr eye = NULL;
- bool useRealLOS = true;
- //***************************************************************************
- char* GetGameInformation()
- {
- return(ExceptionGameMsg);
- }
- //long cLoadString (HINSTANCE hInstance, UINT uID, LPTSTR lpBuffer, int nBufferMax );
- //---------------------------------------------------------------------------
- void UpdateRenderers()
- {
- hasGuardBand = gos_GetMachineInformation(gos_Info_HasGuardBandClipping) != 0;
- //---------------------------------------------------------------------------------
- //Doesn't work. Always returns 0 for TNT in Win2K build 2183 with 3.55 detonator
- //Assume worst case is +/- 8.0 for now.
- //MaxMinUV = gos_GetMachineInformation(gos_Info_GetMaximumUVSize);
- DWORD bColor = 0x0;
- if (eye)
- bColor = eye->fogColor;
-
- gos_SetupViewport(1,1.0,1,bColor, 0.0, 0.0, 1.0, 1.0 ); //ALWAYS FULL SCREEN for now
- gos_SetRenderState( gos_State_Filter, gos_FilterBiLinear );
- gos_SetRenderState( gos_State_AlphaMode, gos_Alpha_AlphaInvAlpha );
- gos_SetRenderState( gos_State_AlphaTest, TRUE );
- gos_SetRenderState( gos_State_Clipping, TRUE);
- gos_SetRenderState( gos_State_TextureAddress, gos_TextureClamp );
- gos_SetRenderState( gos_State_Dither, 1);
- if (logistics)
- {
- float viewMulX, viewMulY, viewAddX, viewAddY;
- gos_GetViewport(&viewMulX, &viewMulY, &viewAddX, &viewAddY);
- //userInput->setViewport(viewMulX,viewMulY,viewAddX,viewAddY);
- logistics->render();
- }
- //------------------------------------------------------------
- gos_SetRenderState( gos_State_Filter, gos_FilterNone );
- //userInput->render();
- //------------------------------------------------------------
- gos_SetRenderState( gos_State_Filter, gos_FilterNone );
- }
- //---------------------------------------------------------------------------
- void InitializeGameEngine()
- {
- //---------------------------------------------------------------------
- float doubleClickThreshold = 0.2f;
- long dragThreshold = 10;
- Environment.Key_Exit=-1; // so escape doesn't kill your app
- //--------------------------------------------------------------
- // Read in System.CFG
- FitIniFilePtr systemFile = new FitIniFile;
- #ifdef _DEBUG
- long systemOpenResult =
- #endif
- systemFile->open("system.cfg");
-
- #ifdef _DEBUG
- if( systemOpenResult != NO_ERR)
- {
- char Buffer[256];
- gos_GetCurrentPath( Buffer, 256 );
- STOP(( "Cannot find \"system.cfg\" file in %s",Buffer ));
- }
- #endif
- {
- #ifdef _DEBUG
- long systemBlockResult =
- #endif
- systemFile->seekBlock("systemHeap");
- gosASSERT(systemBlockResult == NO_ERR);
- {
- long result = systemFile->readIdULong("systemHeapSize",systemHeapSize);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdULong("guiHeapSize",guiHeapSize);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdULong("logisticsHeapSize",logisticsHeapSize);
- gosASSERT(result == NO_ERR);
- }
- #ifdef _DEBUG
- long systemPathResult =
- #endif
- systemFile->seekBlock("systemPaths");
- gosASSERT(systemPathResult == NO_ERR);
- {
- long result = systemFile->readIdString("terrainPath",terrainPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("artPath",artPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("fontPath",fontPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("savePath",savePath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("spritePath",spritePath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("shapesPath",shapesPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("soundPath",soundPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("objectPath",objectPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("cameraPath",cameraPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("tilePath",tilePath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("missionPath",missionPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("warriorPath",warriorPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("profilePath",profilePath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("interfacepath",interfacePath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("moviepath",moviePath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("CDsoundPath",CDsoundPath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("CDmoviepath",CDmoviePath,79);
- gosASSERT(result == NO_ERR);
- result = systemFile->readIdString("CDspritePath",CDspritePath,79);
- gosASSERT(result == NO_ERR);
- }
- #ifdef _DEBUG
- long fastFileResult =
- #endif
- systemFile->seekBlock("FastFiles");
- gosASSERT(fastFileResult == NO_ERR);
- {
- long result = systemFile->readIdLong("NumFastFiles",maxFastFiles);
- if (result != NO_ERR)
- maxFastFiles = 0;
- if (maxFastFiles)
- {
- fastFiles = (FastFile **)malloc(maxFastFiles*sizeof(FastFile *));
- memset(fastFiles,0,maxFastFiles*sizeof(FastFile *));
- long fileNum = 0;
- char fastFileId[10];
- char fileName[100];
- sprintf(fastFileId,"File%d",fileNum);
-
- while (systemFile->readIdString(fastFileId,fileName,99) == NO_ERR)
- {
- FastFileInit(fileName);
- fileNum++;
- sprintf(fastFileId,"File%d",fileNum);
- numFastFiles++;
- }
- }
- }
-
- long result = systemFile->seekBlock("UseMusic");
- if (result == NO_ERR)
- useMusic = TRUE;
- else
- useMusic = FALSE;
-
- result = systemFile->seekBlock("UseSound");
- if (result == NO_ERR)
- {
- useSound = TRUE;
- }
- else
- {
- useSound = FALSE;
- useMusic = FALSE;
- }
- }
- systemFile->close();
- delete systemFile;
- systemFile = NULL;
- //--------------------------------------------------------------
- // Read in Prefs.cfg
- FitIniFilePtr prefs = new FitIniFile;
- #ifdef _DEBUG
- long prefsOpenResult =
- #endif
- prefs->open("prefs.cfg");
- gosASSERT (prefsOpenResult == NO_ERR);
- {
- #ifdef _DEBUG
- long prefsBlockResult =
- #endif
- prefs->seekBlock("MechCommander2");
- gosASSERT(prefsBlockResult == NO_ERR);
- {
- long filterSetting;
- long result = prefs->readIdLong("FilterState",filterSetting);
- if (result == NO_ERR)
- {
- switch (filterSetting)
- {
- default:
- case 0:
- FilterState = gos_FilterNone;
- break;
- case 1:
- FilterState = gos_FilterBiLinear;
- break;
- case 2:
- FilterState = gos_FilterTriLinear;
- break;
- }
- }
- result = prefs->readIdLong("TerrainTextureRes",TERRAIN_TXM_SIZE);
- if (result != NO_ERR)
- TERRAIN_TXM_SIZE = 64;
- result = prefs->readIdLong("Resolution",resolution);
- if (result != NO_ERR)
- resolution = 0;
- result = prefs->readIdLong("ObjectTextureRes",ObjectTextureSize);
- if (result != NO_ERR)
- ObjectTextureSize = 128;
- result = prefs->readIdLong("Difficulty",GameDifficulty);
- if (result != NO_ERR)
- GameDifficulty = 1;
- result = prefs->readIdLong("Brightness",gammaLevel);
- if (result != NO_ERR)
- gammaLevel = 0;
- // store volume settings in global variable since soundsystem
- // does not exist yet. These will be set in SoundSystem::init()
- result = prefs->readIdLong("DigitalMasterVolume",DigitalMasterVolume);
- if (result != NO_ERR)
- DigitalMasterVolume = 255;
- result = prefs->readIdLong("MusicVolume",MusicVolume);
- if (result != NO_ERR)
- MusicVolume = 64;
- result = prefs->readIdLong("RadioVolume",RadioVolume);
- if (result != NO_ERR)
- RadioVolume = 64;
- result = prefs->readIdLong("SFXVolume",SFXVolume);
- if (result != NO_ERR)
- SFXVolume = 64;
- result = prefs->readIdFloat("DoubleClickThreshold",doubleClickThreshold);
- if (result != NO_ERR)
- doubleClickThreshold = 0.2f;
- result = prefs->readIdLong("DragThreshold",dragThreshold);
- if (result != NO_ERR)
- dragThreshold = 10;
-
- result = prefs->readIdULong("BaseVertexColor",BaseVertexColor);
- if (result != NO_ERR)
- BaseVertexColor = 0x00000000;
-
- result = prefs->readIdBoolean("UnlimitedAmmo",useUnlimitedAmmo);
- if (result != NO_ERR)
- useUnlimitedAmmo = true;
-
- result = prefs->readIdBoolean("RealLOS",useRealLOS);
- if (result != NO_ERR)
- useRealLOS = true;
- }
- }
-
- prefs->close();
-
- delete prefs;
- prefs = NULL;
- //---------------------------------------------------------------------
- switch (resolution)
- {
- case 0: //640by480
- gos_SetScreenMode(640,480);
- break;
- case 1: //800by600
- gos_SetScreenMode(800,600);
- break;
- case 2: //1024by768
- gos_SetScreenMode(1024,768);
- break;
- case 3: //1280by1024
- gos_SetScreenMode(1280,1024);
- break;
- case 4: //1600by1200
- gos_SetScreenMode(1600,1200);
- break;
- }
- //--------------------------------------------------
- // Setup Mouse Parameters from Prefs.CFG
- //userInput = new UserInput;
- //userInput->init();
- //userInput->setMouseDoubleClickThreshold(doubleClickThreshold);
- //userInput->setMouseDragThreshold(dragThreshold);
- //--------------------------------------------------
- gosResourceHandle = gos_OpenResourceDLL("mc2res.dll");
- gosFontHandle = gos_LoadFont("assets\\graphics\\arial8.tga");
- globalFloatHelp = new FloatHelp [MAX_FLOAT_HELPS];
- //
- //----------------------------------
- // Start associated stuff.
- //----------------------------------
- Stuff::InitializeClasses();
-
- //--------------------------------------------------------------
- // Start the GUI Heap.
- systemHeap = new UserHeap;
- gosASSERT(systemHeap != NULL);
-
- systemHeap->init(systemHeapSize,"SYSTEM");
-
- //--------------------------------------------------------------
- // Start the GUI Heap.
- guiHeap = new UserHeap;
- gosASSERT(guiHeap != NULL);
-
- guiHeap->init(guiHeapSize,"GUI");
-
- //------------------------------------------------
- // Fire up the MC Texture Manager.
- mcTextureManager = new MC_TextureManager;
- mcTextureManager->start();
- //--------------------------------------------------------------
- // Load up the mouse cursors
- //userInput->initMouseCursors("cursors");
- //userInput->mouseOff();
- //userInput->setMouseCursor(mState_NORMAL);
- //------------------------------------------------
- // Give the Sound System a Whirl!
- //soundSystem = new GameSoundSystem;
- //soundSystem->init();
- //((SoundSystem *)soundSystem)->init("sound");
-
- //---------------------------------------------------------
- // Start the Mission, Scenario and Logistics classes here
- logistics = new Logistics;
- logistics->start(log_SPLASH); //Always start with logistics in Splash Screen Mode
- }
- //---------------------------------------------------------------------------
- void TerminateGameEngine()
- {
- gosScript_ShutdownProcessor();
- //---------------------------------------------------------
- // End the Mission, Operation and Logistics classes here
- if (logistics)
- {
- logistics->destroy();
- delete logistics;
- logistics = NULL;
- }
- //-------------------------------------------------------------
- // Shut down the soundSytem for a change!
- //if (soundSystem)
- //{
- // soundSystem->destroy();
- //
- // delete soundSystem;
- // soundSystem = NULL;
- //}
- //------------------------------------------------
- // shutdown the MC Texture Manager.
- if (mcTextureManager)
- {
- mcTextureManager->destroy();
- delete mcTextureManager;
- mcTextureManager = NULL;
- }
- //--------------------------------------------------------------
- // End the SystemHeap and globalHeapList
- if (systemHeap)
- {
- systemHeap->destroy();
- delete systemHeap;
- systemHeap = NULL;
- }
- if (globalHeapList)
- {
- globalHeapList->destroy();
- delete globalHeapList;
- globalHeapList = NULL;
- }
- //----------------------------------------------------
- // Shutdown the MLR and associated stuff libraries
- //----------------------------------------------------
- //
- //-------------------
- // Turn off libraries
- //-------------------
- //
- Stuff::TerminateClasses();
- //Redundant. Something else is shutting this down.
- //GOS sure does think its bad to delete something multiple times though.
- //Even though it simply never is!
- //gos_DeleteFont(gosFontHandle);
- gos_CloseResourceDLL(gosResourceHandle);
- //
- //--------------------------
- // Turn off the fast Files
- //--------------------------
- //
- FastFileFini();
- }
- //---------------------------------------------------------------------------
- //
- // No multi-thread now!
- //
- void DoGameLogic()
- {
- //-------------------------------------
- // Get me the current frameRate.
- // Convert to frameLength and any other timing stuff.
- //if (frameRate < 15.0)
- // frameRate = 15.0;
- frameLength = 1.0 / frameRate;
- if (frameLength > 0.25f)
- frameLength = 0.25f;
- //-------------------------------------
- // Poll devices for this frame.
- //userInput->update();
- //----------------------------------------
- // Update the Sound System for this frame
- //soundSystem->update();
-
- //-----------------------------------------------------
- // Update Mission and Logistics here.
- if (logistics)
- {
- long result = logistics->update();
- if (result == log_DONE)
- {
- logistics->stop();
- }
- }
- //---------------------------------------------------
- // Update heap instrumentation.
- if (turn > 3)
- globalHeapList->update();
- //---------------------------------------------------------------
- // Somewhere in all of the updates, we have asked to be excused!
- if (quitGame)
- {
- //EnterWindowMode(); //Game crashes if _TerminateApp called from fullScreen
- gos_TerminateApplication();
- }
- }
- //---------------------------------------------------------------------------
- long textToLong (char *num)
- {
- long result = 0;
-
- //------------------------------------
- // Check if Hex Number
- char *hexOffset = strstr(num,"0x");
- if (hexOffset == NULL)
- {
- result = atol(num);
- }
- else
- {
- hexOffset += 2;
- long numDigits = strlen(hexOffset)-1;
- for (int i=0; i<=numDigits; i++)
- {
- if (!isalnum(hexOffset[i]) || (isalpha(hexOffset[i]) && toupper(hexOffset[i]) > 'F'))
- {
- hexOffset[i] = 0; // we've reach a "wrong" character. Either start of a comment or something illegal. Either way, stop evaluation here.
- break;
- }
- }
- numDigits = strlen(hexOffset)-1;
- long power = 0;
- for (long count = numDigits;count >= 0;count--,power++)
- {
- unsigned char currentDigit = toupper(hexOffset[count]);
-
- if (currentDigit >= 'A' && currentDigit <= 'F')
- {
- result += (currentDigit - 'A' + 10)<<(4*power);
- }
- else if (currentDigit >= '0' && currentDigit <= '9')
- {
- result += (currentDigit - '0')<<(4*power);
- }
- else
- {
- //---------------------------------------------------------
- // There is a digit in here I don't understand. Return 0.
- result = 0;
- break;
- }
- }
- }
-
- return(result);
- }
- //----------------------------------------------------------------------------
- // Same command line Parser as MechCommander
- void ParseCommandLine(char *command_line)
- {
- int i;
- int n_args = 0;
- int index = 0;
- char *argv[30];
-
- char tempCommandLine[4096];
- memset(tempCommandLine,0,4096);
- strncpy(tempCommandLine,command_line,4095);
- while (tempCommandLine[index] != '\0') // until we null out
- {
- argv[n_args] = tempCommandLine + index;
- n_args++;
- while (tempCommandLine[index] != ' ' && tempCommandLine[index] != '\0')
- {
- index++;
- }
- while (tempCommandLine[index] == ' ')
- {
- tempCommandLine[index] = '\0';
- index++;
- }
- }
- i=0;
- while (i<n_args)
- {
- i++;
- }
- }
- bool notFirstTime = false;
- //---------------------------------------------------------------------------
- //
- // Setup the GameOS structure -- This tells GameOS what I am using
- //
- void GetGameOSEnvironment( char* CommandLine )
- {
- ParseCommandLine(CommandLine);
- Environment.applicationName = "MC2GOSScriptShell";
- Environment.directoryPath = "Logistics";
- Environment.debugLog = ""; //; "DebugLog.txt";
- Environment.spew = "GameOS_ScriptsOUtput"; //"GameOS_Texture GameOS_DirectDraw GameOS_Direct3D ";
- Environment.TimeStampSpew = 0;
- Environment.GetGameInformation = GetGameInformation;
- Environment.UpdateRenderers = UpdateRenderers;
- Environment.InitializeGameEngine = InitializeGameEngine;
- Environment.DoGameLogic = DoGameLogic;
- Environment.TerminateGameEngine = TerminateGameEngine;
-
- if (useSound)
- {
- Environment.soundDisable = FALSE;
- Environment.soundHiFi = TRUE;
- Environment.soundChannels = 24;
- }
- else
- {
- Environment.soundDisable = TRUE;
- Environment.soundHiFi = FALSE;
- Environment.soundChannels = 0;
- }
- //--------------------------
- // Networking information...
- // MechCommander GUID = {09608800-4815-11d2-92D2-0060973CFB2C}
- // or {0x9608800, 0x4815, 0x11d2, {0x92, 0xd2, 0x0, 0x60, 0x97, 0x3c, 0xfb, 0x2c}}
- Environment.NetworkGame = false;
- Environment.NetworkMaxPlayers = 0;
- Environment.NetworkGUID[0] = 0x09;
- Environment.NetworkGUID[1] = 0x60;
- Environment.NetworkGUID[2] = 0x88;
- Environment.NetworkGUID[3] = 0x00;
- Environment.NetworkGUID[4] = 0x48;
- Environment.NetworkGUID[5] = 0x15;
- Environment.NetworkGUID[6] = 0x11;
- Environment.NetworkGUID[7] = 0xd2;
- Environment.NetworkGUID[8] = 0x92;
- Environment.NetworkGUID[9] = 0xd2;
- Environment.NetworkGUID[10] = 0x00;
- Environment.NetworkGUID[11] = 0x60;
- Environment.NetworkGUID[12] = 0x97;
- Environment.NetworkGUID[13] = 0x3c;
- Environment.NetworkGUID[14] = 0xfb;
- Environment.NetworkGUID[15] = 0x2c;
-
- Environment.screenWidth = 640;
- Environment.screenHeight = 480;
- Environment.bitDepth = 16;
- Environment.fullScreen = 0;
- Environment.version = versionStamp;
- Environment.FullScreenDevice = 0;
- Environment.Renderer = 0;
- Environment.AntiAlias = 0;
- //
- // Texture infomation
- //
- Environment.Texture_S_256 = 6;
- Environment.Texture_S_128 = 1;
- Environment.Texture_S_64 = 0;
- Environment.Texture_S_32 = 1;
- Environment.Texture_S_16 = 5;
- Environment.Texture_K_256 = 2;
- Environment.Texture_K_128 = 5;
- Environment.Texture_K_64 = 5;
- Environment.Texture_K_32 = 5;
- Environment.Texture_K_16 = 5;
- Environment.Texture_A_256 = 0;
- Environment.Texture_A_128 = 1;
- Environment.Texture_A_64 = 5;
- Environment.Texture_A_32 = 1;
- Environment.Texture_A_16 = 0;
- notFirstTime = true;
- }
- //***************************************************************************
|