HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #581

Ticket #581: test.cpp

File test.cpp, 599 bytes (added by richienyhus, 2 years ago)

Tri-Edge AI's test

Line 
1/*
2 * Copyright 2004-2007 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *              Vladimir Angelov, triedgeai@gmail.com
7 */
8
9#include <allegro.h>
10
11int main()
12{
13        allegro_init();
14        set_color_depth(32);
15        set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800, 600, 0, 0);
16       
17        install_mouse();
18       
19        while(!(mouse_b & 1))
20        {
21                rest(1);
22                circle(screen, rand()%800, rand()%600, rand()%20, 0xFF0000);
23        }
24       
25        return 0;
26}
27END_OF_MAIN();

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/