Nodapro

Contact Us

Axbreeze Game Lib

#include "axbreeze.h"

INT APIENTRY wWinMain(HINSTANCE, HINSTANCE, LPTSTR, INT)
{
    UINT iWidth = 640, iHeight = 480;

    // Initialize graphics, input, and audio
    SetDisplayMode(iWidth, iHeight, 1, 1);

    // Clear display with blue color (ARGB)
    ClearDisplay(0xFF0000FF);

    // Set foreground color to yellow
    SetForeColor(0xFFFFFF00);

    // Set text font name and font size
    SetTextFont(L"Times New Roman", 72, 1);

    // Output text at screen center
    DrawText(iWidth/2, iHeight/2, 0, 0, L"Hello, World!");

    // Enter the game loop
    while(Looping())
    {
        UpdateDisplay();
        Sleep(100);
    }

    // Free the resources
    return FreeResource();
}