Ticket #581: test.cpp
| File test.cpp, 599 bytes (added by richienyhus, 2 years ago) |
|---|
| 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 | |
| 11 | int 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 | } |
| 27 | END_OF_MAIN(); |
