+ 2

Can Someone Tell Me The Uses Of Using The Header File <graphics.h> ??? I Use CodeBlocks

Like I Want To Know What Are The Things With Which You Can Bring About A Change In The Output Screen ??? Like Change Of Background Color , Change Of Font Color , Change Of Font Size (If Possible ) ...

12th Aug 2016, 10:09 AM
Shashank Pai
Shashank Pai - avatar
6 odpowiedzi
+ 2
don't use the older get graphics.h or similarly conventions to make graphics. they're much older and out dated. look into things like sfml/sdl or if you want to learn graphics a little more under the hood look up openGL apis for c++. I see a lot of glfw and glut being used
12th Aug 2016, 8:09 PM
destro
+ 1
Hi, Graphics.h is a borland specific header file. It's not available in other c++ compilers. Please refer to below http://stackoverflow.com/questions/7860569/how-i-can-get-and-use-the-header-file-graphics-h-in-my-c-program
12th Aug 2016, 4:24 PM
sidharth arora
sidharth arora - avatar
0
Can U Tell Me A Similar Header File That Can Be Used ???
12th Aug 2016, 4:46 PM
Shashank Pai
Shashank Pai - avatar
0
Hey destro can u tell me more about sfml/sdl and openGL ..
13th Aug 2016, 4:50 AM
Shashank Pai
Shashank Pai - avatar
0
they are. third party which u have to installe. learn them and use them
1st Sep 2016, 4:33 PM
Richard Dan
Richard Dan - avatar
0
hi there sidharth, sorry about the delay I never got the notification until now. sfml and sdl are 2d graphics apis built on the openGL framework, meaning that they live and die by the functionality of the api. opengl by design is platform agnostic so it can be run on all systems but you may have to do a few extra tweaks. sfml is more c++ whereas sdl is closer to c syntax but both work fundamentally the same so pick your poison. I would say that getting to know these libraries at first is good so you can get an idea of what graphics programming is like. after that you can delve into more things like glfw which gives you more control over the program but requires more work. and Vulcan is the new form of openGL, so if you get really comfortable with openGL and like it Vulcan will be an easy transition as it gets more in demand
1st Sep 2016, 4:40 PM
destro