Results 1 to 9 of 9
  1. #1

    Default Need help with graphics in C


    I'm just a newb trying to learn C programming... what include files do I need to have graphics in my program?

  2. #2
    graphics.h
    conio.h
    dos.h
    io.h
    u need those

    sa IDE naka list lang mga functions sa help window.. bisan sa turbo C... wahahah i remember. Naa ko code sa Mouse Pointer. hhhm... ako 'sa to pangitaon asa to nabutang. waaaaah

  3. #3
    Quote Originally Posted by dodie View Post
    graphics.h
    conio.h
    dos.h
    io.h
    u need those

    sa IDE naka list lang mga functions sa help window.. bisan sa turbo C... wahahah i remember. Naa ko code sa Mouse Pointer. hhhm... ako 'sa to pangitaon asa to nabutang. waaaaah
    using interrupt 33h man guro na gamit bai nu? hehehe kahinumdom pa ko sa akng turbo c days pd..

    Quote Originally Posted by arthexcalibur View Post
    I'm just a newb trying to learn C programming... what include files do I need to have graphics in my program?
    unsa na graphics imo pasabot?

  4. #4
    basig computer graphics using C programming....

  5. #5
    OT: dods, i.post to imong code before sa informatics days nmo. Remember katong imong gi.himo nga "Internet Cafe" time-in/time-out calculator. If I remember it right, naa to graphics.

  6. #6
    bacn nahan pod ka og opengl para naay 3d graphics og 2d...
    kaso taas2x imo kat.onon anang opengl..ngita lang guro og lib nga naa na..

  7. #7
    Quote Originally Posted by madina View Post
    basig computer graphics using C programming....
    There are many ways you can do "Computer graphics in C " man bai,

    DirectX
    OpenGL
    SDL
    GDI
    pure VGA (Old school)
    software rasterizer
    etc.

    Mao na nangutana ko kng asa ana ang gusto sa TS

  8. #8
    Unsa imung compiler TS?

    There are lot of graphics library.

  9. #9
    Quote Originally Posted by ChaosOrb View Post
    OT: dods, i.post to imong code before sa informatics days nmo. Remember katong imong gi.himo nga "Internet Cafe" time-in/time-out calculator. If I remember it right, naa to graphics.
    Yes the program i made during Informatics days. hahahah I'll get only the mouse codes. I no longer care of these codes because I don't use these anymore. I would be happy to share these MOUSE CODES in TURBO C. YEAHHH!!! I made that program from scratch, when I was 19 YEARS OLD. wahahahahahahah

    IT WOULD BE A WASTE IF I DON'T SHARE IT.
    Code:
    /*-----------ALL ABOUT MOUSE-----------*/
    initmouse()
    {  i.x.ax=0; int86(0x33,&i,&o); return (o.x.ax);}
    showmouse()
    {  i.x.ax=1; int86(0x33,&i,&o);  return 0; }
    
    hidemouse()
    {  i.x.ax=2; int86(0x33,&i,&o); return 0; }
    
    mouse( int *button,int *x,int *y)
    {  i.x.ax=3; int86(0x33,&i,&o);
       *button=o.x.bx; *x=o.x.cx; *y=o.x.dx;  return 0;
    
    }
    leftrelease()
    {
        regs.x.ax=6; regs.x.bx=0; int86(0x33,&regs,&regs);
        return 0;
    }
    
    /*-------------BUTTONS OR BOXES------------*/
    greybutton(int xgrid,int ygrid,char string[])
    {
         int x2,y2;
         xgrid=GRID*xgrid; ygrid=GRID*ygrid;
         x2=xgrid+GRID*30; y2=ygrid+GRID*2;
         setfillstyle(SOLID_FILL,8); setcolor(15);
         bar(xgrid,ygrid,x2,y2); rectangle(xgrid,ygrid,x2,y2);
         settextstyle(SMALL_FONT,HORIZ_DIR,4);
         setcolor(14); outtextxy(xgrid+GRID,ygrid,string);  return 0;
    }
    
    redbutton(int xgrid,int ygrid,char string[])
    {
    
         int x2,y2;
         xgrid=GRID*xgrid; ygrid=GRID*ygrid;
         x2=xgrid+GRID*8; y2=ygrid+GRID*2;
         setfillstyle(SOLID_FILL,4); setcolor(15);
         bar(xgrid,ygrid,x2,y2); rectangle(xgrid,ygrid,x2,y2);
         settextstyle(SMALL_FONT,HORIZ_DIR,4);
         setcolor(14); outtextxy(xgrid+GRID,ygrid,string);
         return 0;
    }
    smallbutton(int xgrid,int ygrid,char string[])
    {
         int x2,y2;
         xgrid=GRID*xgrid; ygrid=GRID*ygrid;
         x2=xgrid+GRID*7; y2=ygrid+GRID*2;
         setfillstyle(SOLID_FILL,7); setcolor(15);
         bar(xgrid,ygrid,x2,y2); rectangle(xgrid,ygrid,x2,y2);
         settextstyle(SMALL_FONT,HORIZ_DIR,4);
         setcolor(14); outtextxy(xgrid+GRID,ygrid,string);
         return 0;
    }
    Last edited by dodie; 01-22-2011 at 02:33 PM.

  10.    Advertisement

Similar Threads

 
  1. Need help with tools you need in making a good video
    By arthexcalibur in forum Websites & Multimedia
    Replies: 1
    Last Post: 10-19-2010, 02:42 AM
  2. need help with p900
    By kloos in forum Gizmos & Gadgets (Old)
    Replies: 8
    Last Post: 09-04-2006, 01:55 PM
  3. need help with wordpress
    By gaily_girl in forum Websites & Multimedia
    Replies: 10
    Last Post: 12-19-2005, 08:11 PM
  4. NEED HELP WITH THIS CODE
    By saminoske in forum Websites & Multimedia
    Replies: 1
    Last Post: 12-05-2005, 11:27 AM
  5. Need help with CSS png transparency.
    By silent-kill in forum Websites & Multimedia
    Replies: 1
    Last Post: 07-01-2005, 11:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top