SwConsole
From SWWorkshop
Console argument type. These are bool(true/false),int,float,string
typedef enum _swConsoleArgType{ SW_CONSOLE_ARG_BOOL, SW_CONSOLE_ARG_INT, SW_CONSOLE_ARG_FLOAT, SW_CONSOLE_ARG_STRING, }swConsoleArgType;
Argument structure in a Console Command..
typedef struct _swConsoleArg{ swConsoleArgType type; union{ bool bVal; int iVal; float fVal; char sVal[16]; }arg; }swConsoleArg;
Console Functions..
void swConsoleInit(); void swConsoleDeInit(); void swConsoleSetFont(int fontID,int set,swColor *color,float size); void swConsoleSetBgColor(swColor *color); void swConsoleSetPos(float x,float y); void swConsoleSetLayer(int layer); void swConsoleSetSize(float w,float h); void swConsoleSetVisible(bool bVisible); void swConsolePrint(char *string,...); void swConsoleClear(); void swConsoleRegisterCommand(void(*cmdFunc)(int,swConsoleArg *cArgs),char *cmdName,int count,swConsoleArg *cArgs);
