Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a C++ programming language knowledge to check the little tool where the introduction of C++ code would be nice to get something on the screen, similar to the "Processing" only with C++ language? I know the "Cinder", but perhaps there should be a lot of code to write something to the screen? I just want to continue to learn C++ and tested by the knowledge I have, but I still can not write a complete program. Game Maker would be very appropriate, but the GML is a different language than C++

share|improve this question
That Cinder framework you linked to looks quite simple actually. Kinda similar to processing. – bummzack May 20 '11 at 12:51
Sorry, the English here is very poor, I'm having a hard time figuring out what you are actually asking. – MrCranky May 20 '11 at 13:51
To learn c++, writing simple c++ functions and classes, without writing a complete program to see something on the screen. How does the game maker's GML language. Or, as in Adobe Flash ActionScript. Or, as the script Unity3D. – Saulius May 20 '11 at 15:01
I think you mean 'I want to see something on the screen without writing lots of code, like how I can in Unity or Flash'. The term you want is a game engine. :) – The Communist Duck May 20 '11 at 15:13
Sorry for my bad english. I have downloaded a few game engines, but not look seriously at them. Just looking for any running program to write not a script, but maybe something like the cropped c++ language looking like a script. – Saulius May 20 '11 at 15:23

I can't really tell if you're asking for a simple windowing/graphics API or an API to assist in the procedural generation of images / "creative coding." C++ doesn't have either as part of its standard library.

If its the first thing, GLUT and its ilk allow you to get a window up and running for using OpenGL relatively quickly and is useful for quick-and-dirty prototyping. SFML is the modern de-facto successor to the popular SDL library... and there's this one I just stumbled across while doing some quick research for this question.

For the second case, I'm not aware of many. In addition to Cinder, there's openFrameworks and (maybe) this haXe thing.

share|improve this answer

i guess you can also use winBGIm it's very simple (only if you are trying to work with MinGW) and you can also find it's port here and if you want to work with specificaly with cisual studio 2010 i think the best way is to use windows GDI it's also as you can see an easy to learn visual tool (this program directly draw on the screen you can also add some code to create a window first!):

/* *********************************************
* A simple gdi program
* ***********************************************/

#include <Windows.h>

void GdiOut(HDC hdc);

int WINAPI WinMain(
  HINSTANCE hInstance,
  HINSTANCE hPrevInstance,
  LPSTR lpCmdLine,
  int nCmdShow
 HDC hdc = GetDC(NULL);
 ReleaseDC(NULL, hdc);

 return 0;

/* Show how to use the basic GDI functions */
void GdiOut(HDC hdc)
 HPEN hPen, hPenOld;
 HBRUSH hBrush, hBrushOld;

 //Initial colors
 BYTE bRed = 0;
 BYTE bGreen = 0;
 BYTE bBlue = 0;

 //Pen color
 COLORREF cPen = RGB(bRed, bGreen, bBlue);
 //Set the brush color based on the pen color. It is purple partial to blue.
 COLORREF cBrush = RGB(233,GetGValue(cPen), 255);
 //Create the pen.
 hPen = CreatePen(PS_SOLID, 10, cPen);
 //Create the brush.
 hBrush = CreateSolidBrush(cBrush);
 //Select the pen and brush. Just like set the drawing arguments.
 hPenOld = (HPEN)SelectObject(hdc, hPen);
 hBrushOld = (HBRUSH)SelectObject(hdc, hBrush);

 //Draw a triangle
 MoveToEx(hdc, 30, 10, NULL);
 LineTo(hdc, 10, 50);
 LineTo(hdc, 50, 50);
 LineTo(hdc, 30, 10);
 //Use the old pen
 //Draw and fill an ellipse
 Ellipse(hdc, 10, 60, 110, 160);

 //Release the resources
 SelectObject(hdc, hBrushOld);

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.