+ 6

Do we have graphics header file in c++ as in c

I want to know whether can I implement graphics functions in c++ as in C. If I could do so then how would I define my path in init function If not why Can anyone explain please

10th Mar 2017, 1:59 PM
N.Neeharika Reddy
N.Neeharika Reddy - avatar
4 Respuestas
+ 8
//for auto detection int gdriver = DETECT, gmode;      //initialize graphics mode and where path for driver goes if auto detection failed to load //  initgraph(&gdriver, &gmode, ""); or initgraph(&gdriver, &gmode, "c://turboc3//bgi"); here path depends on where your driver located.
13th Mar 2017, 5:33 AM
Piyush Goyani
Piyush Goyani - avatar
+ 2
But how can I define path in init function can you please explain me by taking an example
13th Mar 2017, 3:09 AM
N.Neeharika Reddy
N.Neeharika Reddy - avatar
+ 1
you can include the same header file from c and use it in the same way, thats the beauty in c++ :)
12th Mar 2017, 5:36 PM
Oriel
Oriel - avatar
+ 1
Yes there is, but not standard one. U have to set it up !!! Use this playlist :- https://www.youtube.com/playlist?list=PLMclp-q8OPhnBqdI6DAIhsHX6RvVD5nha
18th Apr 2020, 1:42 PM
Harshit Sharma
Harshit Sharma - avatar