+ 2
how to create a graphics with c++
6 Réponses
+ 4
I like the SDL graphics library
it also handles sound and input
uses BLIT for rendering then when done
uses flip screen for display
I've got some ferry nice frame rates
+ 3
You can create graphics with the help of graphics .h
Example:
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{ clrscr();
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:/tc/bgi");
circle(200,200,50);
getch();
closegraph();
} // this program prints a circle at coordinate
// 200 nd 200(x nd y) with a radius of 50
Note : This program is written in turbo c++. The coding might differ from what you have studied in these lessons.
+ 3
but i want to create a game
+ 3
Game creation is a whole different level.
You will be needing a game engine to do so.
In game engines, scripting is the part which requires programming which is done in C# or javascript.
If you want to do it with c++ from the start ,well first you need to create a game engine which includes render settings,textures,shaders,physics engine and collision detection system.
Also game engine is not based on only one language, it is a combination of different language which comes together making an engine.
Checkout Unity 5 or unreal engine 4 for game engine reference.
You can use these engines to make small games.. both of them are easy to learn👍
+ 2
I feel u man I want to do it to but I just can't set up anything that will print graphics on the screen
+ 1
IM INTERESTED ON THIS FEATURE ALSO