here is link of first tutorial on allegro that all members of cuclante game development team should go through so as to get some knowledge about allegro library.IN this tutorial loading,editting and dispaly of bitamp images using diff functions is discussed. http://www.loomsoft.net/resources/alltut/alltut_index.htm go through all 9 chapters gievn in tutorial.
here is the second tutorial of allegro library.IN this all I/O functions like textout_ex is expalined apart from that drawing images like circle rectangle is also explained lot of examples and game cdes vailable which will help u out in getting grip over allegro library.Go through the codes and explanation of functions given at bottom of page and plz post ur queries in this thread so we can work it out as soon as possible http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegfiles
manpreet the syntax given by u wont work...check the below synatx rect( screen, 70, 70, 90, 90, makecol( 0, 0, 255)); make certain changes in accordance with parameters of polygon.if still error comes do reply. will check out rect() and rectfill() draw rectangles which start at the point defined by the second and third parameters and end at the point defined by the fourth and fith parameters.
@manpreet have u added the header file refferd in the tutoriaol reffered by u plz make sure add it as it may be giving error due to this or go for the function given by me in previous commnet as it needs jst needs basic allegro library<allegro.h>.
@paras this works but wat if i want to draw a pentagon or hexagon....i cant be able to find the error nd yes i wanna correct u rect(bmp,x1,y1,x2,y2,makecol()) ...... as the rectangle starts and ends at the same point so the co-cordinates here represent the diagonal of the rectangle......
actually very frankly i havent tried this as we are busy in prep of tecch fest so we will be covering all things practically after 2oct.rite now we have jst read all theoritical concepts so we can help u out in that
void polygon(BITMAP *bmp, int vertices, const int *points, int color);
Explanation:
Draws a filled polygon with an arbitrary number of corners. Pass the number of vertices and an array containing a series of x, y points (a total of vertices*2 values).
So everytime is while loop put a black BITMAP on screen to erase all data. Then re draw the clock everytime while loop is exec. P.S. Read abt double buffering will help.
dino.codeplex.com is the project development area..every source code with exec would be uploaded there. I request all to create your account on the website and report your username back to cuclante@gmail.com so we would add you as developers.. P.S Abhi empty hai project space...srry
Sorry we are unable to upload the source code for DINO . Only can assure you that work is in progress and a meeting would be announce before session breaks before diwali. P.S chd.osscamp.in is on, kindly do check that out