I just spent my entire day fixing bugs and making code efficient... What a waste... Well, here's all the commands:
DWORD twGetInternalData(void);
void twEnableAutoError(void);
void twDisableAutoError(void);
void twSetAutoErrorsEnabled(BOOL fEnable);
BOOL twGetAutoErrorsEnabled(void);
void twEnd(void);
void twSync(void);
BOOL twRunning(void);
void twMessageBox(char* szText, char* szTitle);
void twWarningBox(char* szText, char* szTitle);
void twErrorBox(char* szText, char* szTitle);
void twInfoBox(char* szText, char* szTitle);
BOOL twQuestionBox(char* szText, char* szTitle);
DWORD twMakeWindow(DWORD dwStyle, DWORD dwWidth, DWORD dwHeight, LPSTR szTitle, DWORD dwParent);
void twKillWindow(DWORD dwWindow);
void twPositionWindow(DWORD dwWindow, int x, int y);
void twResizeWindow(DWORD dwWindow, int width, int height);
int twGetWindowX(DWORD dwWindow);
int twGetWindowY(DWORD dwWindow);
int twGetWindowWidth(DWORD dwWindow);
int twGetWindowHeight(DWORD dwWindow);
void twSetWindowText(DWORD dwWindow, char* szText);
char* twGetWindowText(DWORD dwWindow);
void twShowWindow(DWORD dwWindow);
void twHideWindow(DWORD dwWindow);
void twSetWindowVisible(DWORD dwWindow, BOOL fVisible);
void twSetWindowParent(DWORD dwWindow, DWORD dwParent);
DWORD twGetWindowParent(DWORD dwWindow);
DWORD twMakeButton(LPSTR text, int x, int y, int width, int height, DWORD parent);
DWORD twMakeImageButton(LPSTR text, int x, int y, int width, int height, LPSTR image, DWORD parent);
DWORD twMakeCheckbox(LPSTR text, int x, int y, int width, int height, DWORD parent);
DWORD twMakeRadiobox(LPSTR text, int x, int y, int width, int height, DWORD parent);
DWORD twMakeGroupbox(LPSTR text, int x, int y, int width, int height, DWORD parent);
int twButtonPressed(DWORD hWnd);
int twBoxChecked(DWORD hWnd);
void twSetBoxChecked(DWORD dwWnd, int checked);
DWORD twMakeCombobox(int x, int y, int width, int height, int list, DWORD parent);
void twInsertString(DWORD hWnd, LPSTR string, int index);
void twRemoveString(DWORD hWnd, int index);
int twFindString(DWORD hWnd, LPSTR text);
int twGetItemCount(DWORD hWnd);
int twGetCurrentItem(DWORD hWnd);
char* twGetItemText(DWORD hWnd, int num);
void twClearItemData(DWORD hWnd);
DWORD twMakeEditbox(int x, int y, int width, int height, int singleline, int type, char* text, DWORD parent);
char* twGetEditText(DWORD hWnd, int lineNum);
DWORD twMakeDateTimePicker(int x, int y, int width, int height, DWORD parent);
DWORD twMakeProgressBar(int x, int y, int width, int height, int rangeSize, int type, DWORD parent);
void twSetProgressBarPosition(DWORD hWnd, int pos);
void twSetProgressBarRange(DWORD hWnd, int rangeSize);
int twGetProgressBarPosition(DWORD hWnd);
int twGetProgressBarRange(DWORD hWnd);
DWORD twMakeLabel(LPSTR text, int x, int y, int width, int height, DWORD parent);
DWORD twMakeStatic(int x, int y, int width, int height, DWORD parent);
DWORD twMakeStaticImage(int x, int y, int width, int height, LPSTR image, DWORD parent);
void twSetWindowImage(DWORD hWnd, LPSTR image, int width, int height);
DWORD twMakeTrackbar(int x, int y, int width, int height, int minVal, int maxVal, DWORD parent);
void twSetTrackbarMinSize(DWORD hWnd, int size);
void twSetTrackbarMaxSize(DWORD hWnd, int size);
int twGetTrackbarMinSize(DWORD hWnd);
int twGetTrackbarMaxSize(DWORD hWnd);
void twSetTrackbarPosition(DWORD hWnd, int pos);
int twGetTrackbarPosition(DWORD hWnd);
void twSetWindowSizeCallback(DWORD pFunc);
void twSetWindowFont(DWORD hWnd, int size, LPSTR family, int italic, int underline, int strikeout, int bold);
DWORD twMakeMenu(void);
DWORD twAddMenu(DWORD dwMenu, LPSTR szName);
void twAddSubMenu(DWORD dwParentMenu, DWORD dwID, LPSTR szName);
void twAddMenuSeperator(DWORD dwParentMenu, DWORD dwID);
void twApplyMenu(DWORD dwWindow, DWORD dwMenu);
void twKillMenu(DWORD dwMenu);
DWORD twGetSystemMenu(DWORD dwWindow);
void twSetMenuCheck(DWORD dwMenu, DWORD dwID, BOOL fChecked);
DWORD twGetMenuClicked(void);
char* twOpenFileDialog(DWORD dwWnd, char* filter);
char* twSaveFileDialog(DWORD dwWnd, char* filter);
DWORD twMakeToolbar(DWORD dwParent);
void twAddToolbarButton(DWORD dwToolBar, DWORD dwCommand, DWORD dwBitmap);
void twAddToolbarSeperator(DWORD dwToolBar);
void twUpdateToolbar(DWORD dwToolBar);
void twSetMenuBitmap(DWORD dwMenu, DWORD dwID, DWORD dwBitmap);
DWORD twColorDialog(DWORD dwWindow);
DWORD twMakeRichEdit(int x, int y, int width, int height, DWORD dwParent);
void twSetEditBackgroundColor(DWORD dwRichEdit, DWORD dwColor);
void twSetEditTextLimit(DWORD dwEdit, DWORD dwLimit);
void twKillVideoDriver(void);
BOOL twSelectVideoDeviceDriver(DWORD dwWindow, IVideoDeviceDriver* pVDD);
void twSyncGraphics(void);
BOOL twGraphicsAvailable(void);
BOOL twResetGraphics(void);
void twClear(DWORD dwColor);
void twBeginScene(void);
void twEndScene(void);
void twDrawBox(int x0, int y0, int x1, int y1, DWORD dwColor0, DWORD dwColor1, DWORD dwColor2, DWORD dwColor3);
void twDrawLine(int x0, int y0, int x1, int y1, DWORD dwColor0, DWORD dwColor1);
void twDrawTriangle(int x0, int y0, int x1, int y1, int x2, int y2, DWORD dwColor0, DWORD dwColor1, DWORD dwColor2);
void twDrawPixel(int x, int y, DWORD dwColor);
void twDrawText(int x, int y, char* szString, DWORD dwColor, DWORD dwFont);
void twDrawTexture(DWORD dwTexture, int x0, int y0, int tx0, int ty0, int x1, int y1, float rotation, DWORD dwDiffuse, BOOL transparent, DWORD dwColorKey);
DWORD twGrabPixel(int x, int y);
DWORD twGetFont(char* szFontName, DWORD dwFontSize, BOOL bold, BOOL italic);
void twKillFont(DWORD dwFont);
DWORD twGetTextWidth(char* szText, DWORD dwFont);
DWORD twGetTextHeight(char* szText, DWORD dwFont);
void twDrawMesh(DWORD dwMesh);
void twSetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwDepth, DWORD dwSyncRate, BOOL fullscreen, BOOL vsync, DWORD dwAASamples);
DWORD twGetTexture(DWORD dwBits, DWORD dwLoadingMode);
void twKillTexture(DWORD dwTexture);
void twDrawTexture(DWORD dwTexture, int x, int y, int tx0, int ty0, int tx1, int ty1, float fRotation, DWORD dwDiffuse, BOOL fTransparent, DWORD dwColorKey);
DWORD twGetTextureWidth(DWORD dwTexture);
DWORD twGetTextureHeight(DWORD dwTexture);
DWORD twGetTextureDepth(DWORD dwTexture);
void twGetTextureBits(DWORD dwTexture, DWORD dwBitsPointer);
void twSetTextureBits(DWORD dwTexture, DWORD dwBitsPointer);
void twSetCurrentSurface(DWORD dwTexture);
DWORD twGetCurrentSurface(void);
DWORD twGetMesh(char* szFile);
void twKillMesh(DWORD dwMesh);
DWORD twMakeMemblock(DWORD dwSize);
void twKillMemblock(DWORD dwMemblock);
void twWriteMemblockByte(DWORD dwMemblock, DWORD dwPosition, unsigned char bByte);
void twWriteMemblockWord(DWORD dwMemblock, DWORD dwPosition, unsigned short wWord);
void twWriteMemblockDword(DWORD dwMemblock, DWORD dwPosition, DWORD dwDword);
void twWriteMemblockInteger(DWORD dwMemblock, DWORD dwPosition, int iInteger);
void twWriteMemblockFloat(DWORD dwMemblock, DWORD dwPosition, float fFloat);
unsigned char twReadMemblockByte(DWORD dwMemblock, DWORD dwPosition);
unsigned short twReadMemblockWord(DWORD dwMemblock, DWORD dwPosition);
DWORD twReadMemblockDword(DWORD dwMemblock, DWORD dwPosition);
int twReadMemblockInteger(DWORD dwMemblock, DWORD dwPosition);
float twReadMemblockFloat(DWORD dwMemblock, DWORD dwPosition);
float twAbs(float fValue);
float twAcos(float fValue);
float twAsin(float fValue);
float twAtan(float fValue);
float twCos(float fValue);
float twPi(void);
float twRnd(float fMax);
float twSin(float fValue);
float twSqrt(float fValue);
float twTan(float fValue);
void twMakeConsole(void);
void twKillConsole(void);
void twWriteConsole(char* szText);
void twSetConsoleTitle(char* szTitle);
void twSetConsoleCursorPosition(int x, int y);
void twShowConsoleCursor(void);
void twHideConsoleCursor(void);
BOOL twConsoleCursorVisible(void);
void twSetConsoleCursorSize(DWORD dwSize);
DWORD twGetConsoleCursorSize(void);
void twSetConsoleWaitKey(void);
DWORD twOpenToRead(char* szFilename);
DWORD twOpenToWrite(char* szFilename);
DWORD twOpenToAppend(char* szFilename);
BOOL twFileEnd(DWORD dwFile);
void twCloseFile(DWORD dwFile);
void twWriteByte(DWORD dwFile, unsigned char cByte);
unsigned char twReadByte(DWORD dwFile);
void twWriteWord(DWORD dwFile, unsigned short cWord);
unsigned short twReadWord(DWORD dwFile);
void twWriteInteger(DWORD dwFile, int cInt);
int twReadInteger(DWORD dwFile);
void twWriteDword(DWORD dwFile, DWORD cDword);
DWORD twReadDword(DWORD dwFile);
void twWriteString(DWORD dwFile, char* szString);
char* twReadString(DWORD dwFile);
void twWriteMemory(DWORD dwFile, void* pMemory, DWORD dwMemorySize);
void twReadMemory(DWORD dwFile, void* pMemory, DWORD dwMemorySize);
DWORD twFileSize(char* szFilename);
BOOL twFileExist(char* szFilename);
void twCopyFile(char* szSource, char* szDest);
void twDeleteFile(char* szFile);
void twMoveFile(char* szSource, char* szDest);
void twMakeDirectory(char* szDirectory);
void twDeleteDirectory(char* szDirectory);
char* twFindFirstFile(void);
char* twFindNextFile(void);
BOOL twFileType(void);
void twSetDir(char* szDirectory);
char* twGetDir(void);
int twGetGlobalMouseX(void);
int twGetGlobalMouseY(void);
BOOL twKeyState(int iKey);
void twSetJoystickAutoSync(BOOL fAutoSync);
void twClearJoystickInfo();
void twPollJoystick(int id);
int twGetJoystickX(void);
int twGetJoystickY(void);
int twGetJoystickZ(void);
int twGetJoystickX2(void);
int twGetJoystickY2(void);
int twGetJoystickZ2(void);
BOOL twJoystickLeft(void);
BOOL twJoystickUp(void);
BOOL twJoystickRight(void);
BOOL twJoystickDown(void);
BOOL twJoystickFireA(void);
BOOL twJoystickFireB(void);
BOOL twJoystickFireC(void);
BOOL twJoystickFireD(void);
BOOL twJoystickFireX(int index);
That's what I've been up to.
Cheers,
-naota
Who's gonna take the dive for post 378?