Torque3D Documentation / _generateds / platformX86UNIX.h

platformX86UNIX.h

Engine/source/platformX86UNIX/platformX86UNIX.h

More...

Public Defines

define
PREF_DIR_GAME_NAME() "torqueDemo"
define
PREF_DIR_ROOT() ".garagegames"

Public Variables

Public Functions

bool
AcquireProcessMutex(const char * mutexName)
Cleanup(bool minimal)
DisplayErrorAlert(const char * errMsg, bool showSDLError)
ImmediateShutdown(S32 exitCode, S32 signalNum)
setExePathName(const char * exePathName)
const char *
stristr(const char * szStringToBeSearched, const char * szSubstringToSearchFor)
char *
strtolwr(char * str)

Detailed Description

Public Defines

PREF_DIR_GAME_NAME() "torqueDemo"
PREF_DIR_ROOT() ".garagegames"

Public Variables

const S32 TORQUE_SETVIDEOMODE 

Public Functions

AcquireProcessMutex(const char * mutexName)

Cleanup(bool minimal)

DisplayErrorAlert(const char * errMsg, bool showSDLError)

GL_EXT_Init(void )

ImmediateShutdown(S32 exitCode, S32 signalNum)

PlatformBlitInit(void )

ProcessControlInit()

setExePathName(const char * exePathName)

stristr(const char * szStringToBeSearched, const char * szSubstringToSearchFor)

strtolwr(char * str)

 1
 2//-----------------------------------------------------------------------------
 3// Copyright (c) 2012 GarageGames, LLC
 4//
 5// Permission is hereby granted, free of charge, to any person obtaining a copy
 6// of this software and associated documentation files (the "Software"), to
 7// deal in the Software without restriction, including without limitation the
 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 9// sell copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21// IN THE SOFTWARE.
22//-----------------------------------------------------------------------------
23
24#ifndef _PLATFORMX86UNIX_H_
25#define _PLATFORMX86UNIX_H_
26
27#ifndef _PLATFORM_H_
28#include "platform/platform.h"
29#endif
30#ifndef _EVENT_H_
31#include "platform/input/event.h"
32#endif
33
34#include <stdio.h>
35#include <string.h>
36
37// these will be used to construct the user preference directory where
38// created files will be stored (~/PREF_DIR_ROOT/PREF_DIR_GAME_NAME)
39#define PREF_DIR_ROOT ".garagegames"
40#define PREF_DIR_GAME_NAME "torqueDemo"
41
42// event codes for custom SDL events
43const S32 TORQUE_SETVIDEOMODE = 1;
44
45extern bool GL_EXT_Init( void );
46
47extern void PlatformBlitInit( void );
48
49// Process Control functions
50void Cleanup(bool minimal=false);
51void ImmediateShutdown(S32 exitCode, S32 signalNum = 0);
52void ProcessControlInit();
53bool AcquireProcessMutex(const char *mutexName);
54
55// Utility functions
56// Convert a string to lowercase in place
57char *strtolwr(char* str);
58
59void DisplayErrorAlert(const char* errMsg, bool showSDLError = true);
60
61// Just like strstr, except case insensitive
62// (Found this function at http://www.codeguru.com/string/stristr.html)
63extern const char *stristr(const char *szStringToBeSearched, const char *szSubstringToSearchFor);
64
65extern "C"
66{
67   // x86UNIX doesn't have a way to automatically get the executable file name
68   void setExePathName(const char* exePathName);
69}
70#endif
71