ABDULLAH
Open Gl
C++ program to create a loading bar
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int x=170,i,gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,”c:\tc\bgi”);
settextstyle(DEFAULT_FONT,HORIZ_DIR,2);
outtextxy(170,180,”LOADING,PLEASE WAIT”);
for(i=0;i<300;++i)
{
delay(30);
line(x,200,x,220);
x++;
}
getch();
closegraph();
}
Simple program to create a circular loading bar using graphics
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm,i;
initgraph(&gd,&gm,”c:\turboc3\bgi”);
for(i=0;i<=360;++i)
{
circle(300,200,80);
pieslice(300,200,0,i,80);
outtextxy(200,320,”Loading….Please Wait!”);
delay(20);
}
closegraph();
}
No comments:
Post a Comment
Home
Subscribe to:
Posts (Atom)
Abdullah Creations
My facebook page logo.... #QUOTEBANNER #SHIEKHSADI
No comments:
Post a Comment