Self stading program C++ Help

hey guys, how are you?

i have been programming in the past just for little while(true){kidding :D}
anyway i programmed some basic games no graphic on the cmd like X/O , snake , memory card and so ..

i have few question for me to start again programming
i have few ideas for things to do and i want to re learn everything and start to be serious with the programming.
i use VS 2015

i want to learn how to do the few simple things:
1.how to program self window software ( not cmd relying just stand alone window that will run my software)

2.how to program simple 2D game with graphic

3.how to program simple 3D games with graphic

4.i have few requests from people i know to develop program for them i know only the basics of C++ and i really want to learn and help them get their program work and have something that i created work as well i will be happy if you can help me and guide me through all this step by step.

thanks very much appreciate please respond and help me
Standard C++ doesn't support the idea of a "console", nor of a "window". Those things are provided by your operating system, or by a system library. Instead, C++ simply provides "streams".

The usual solution (to simplify GUI creation) is to use a third-party library which supplies those concepts. Qt ( https://www.qt.io/ ) is quite popular. There are others.

There is a similar array of choices for applications which need hardware-accelerated graphics. My preference is SDL2 ( https://www.libsdl.org/ ) along with OpenGL, although for very simple interfaces direct use of a graphics API is not required.
@mbozzi
tnx for answer but i didnt get it which question u did answer me?
your answers was respond to the first question of self windowed software
or the 2D games or 3D games?
and SDL2 needs to be combined with OpenGL?
Which question did you answer
The first three.

Regarding question 1:
You can use a library such as Qt to create GUIs (what you're calling a "stand alone window").

Regarding questions 2 and 3:
You can use libraries such as SDL2 and/or OpenGL to create hardware-accelerated graphics, like you would find in a game.

OpenGL is a low-level 3D graphics API. There are others, like Microsoft's DirectX or Chronos Group's Vulkan. Note that doing 2D graphics with a 3D graphics API is usually as easy as ignoring the third dimension.

Does SDL2 needs to be combined with OpenGL?

Often, but not always. The last program I wrote using SDL did not use OpenGL directly. SDL is mostly a portable media library, that is, it provides mouse and keyboard functionality, resource loading, sound, font rendering, window creation, and it simplifies the use of a graphics API if one is used. On its own, it can draw images and lines in 2D.

4. I have requests ... I will be happy if you can ... guide me through all this step by step
I don't think I can answer "how to program [kind of software]" in any useful way through a forum post.
Last edited on
Topic archived. No new replies allowed.