New to C++ and programming :)

Hello world<--over used haha.

I am new to programming and C++ but it interest's me a lot.

I recently bought a C++ for Dummies book and have gotten about halfway through it, i just found this site and it looks pretty friendly.



Question: Can i make 2D graphics with C++ and RPG based games with purely C++, outside of the CMD / MS-DOS window, lol thats all i seem to be using with code::blocks at the moment. (i know baby steps) i just want to make sure i am working towards the right thing.
To be able to do 2D graphics and a lot of other game related stuff you will need to use a library. SDL and SFML is popular.
Last edited on
Ok, so it is possible to create things aside from in the MS-DOS window :) lol

Can i use those together or only one at a time?
Both SFML and SDL covers approximately the same features (graphics, sound, threads, network, etc.) so even if it's possible to use both at the same time there is probably no good reason to do so.
From what I know u need to know:
C++ condition
C++ loop
C++ pointers
C++ structure
C++ class

U need to know a window API.
________Some window API: SDL( multiplatform ) , SFML( multiplatform ) , WinAPI( Windows only ) etc.

For better performance and power u will need to know a graphic API.
________Some graphic API: OpenGL(multiplatform) or DirectX(Microsoft only)

For adding cool visual effects u need to know GLSL(if u use OpenGL) or HLSL(if u use Directx)

OpenGL tutorials : http://nehe.gamedev.net/
SDL tutorials :http://lazyfoo.net/SDL_tutorials/index.php
Last edited on
Nice, so is it just personal preference between SDL and SFML or is there a strong difference in readability and performance? This is new to me and im just curious.

It seems by what you've provided i would want either SDL or SFML with OpenGL and GLSL.

^ down the road of course lol this is seeming to be my path.
Oh and are Window API and graphic API the same thing, like i can use OpenGL instead of SDL? or i need to use OpenGL in SDL or SFML, like graphics within the Window?
SFML : http://www.sfml-dev.org/features.php
SDL : http://www.libsdl.org/


Personally I prefer SDL.

If u use SDL to draw things in a window u use the CPU. If u use OpenGL to draw things u use the GPU.

OpenGL is used only to draw elements in a window.
Last edited on
Ok and by draw things in a window you mean like images and such, not the actual window itself, what is used to make the actual window itself? or can they both be used? like this internet explorer page and the buttons on it? Are they able to be from the same? i may be confusing it somewhere. lol im going to read into these now. :) thanks for all the help everyone.
Topic archived. No new replies allowed.