Share

BlitzDirect

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Example: 0.0.2.0 (simple graphics window)

You are viewing a single message from this topic. View all messages.

  1. 2007-06-02 06:21:27 UTC
    #include <Blitzprog/GUI/GUI.h>
    #include <Blitzprog/Graphics/Graphics.h>

    //Main
    void Main()
    {
    //Main window
    Window window("Main window", -1, -1, 1024, 768);
    Graphics g(window);

    //Window color
    SetClsColor(0, 0, 0);

    //Show window
    window.Show();

    //Main loop
    while(window.Update())
    {
    //Draw on main window (blitz3d-like commands: clear the backbuffer, draw the word and swap the buffers)
    Cls();
    RenderWorld();
    Flip();
    }
    }
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.