paiting to a new window in C++
Hy,
I'm a real noob at C++, but I learn faster when I see somethingon the screen.
How do I create a window and draw e.g. shapes in it? Which libraries should/can
I use, which ones do you use?
Hope you can help :)
Hi!
It depends on what API you will be using. If you use SDL you make a call to SDL_SetVideoMode(,,,) to create the client window. But you can only draw a filled rectangle with the main SDL API with SDL_FillRect(). But you can use the third party library for it like SDL_gfx. For documentation goto www.libsdl.org
If you will be using Win32(Windows OS API) you call CreateWindow() or CreateWindowEx(). For documentation goto Relevant MSDN Reference
Have you search for it?
It depends on what API you will be using. If you use SDL you make a call to SDL_SetVideoMode(,,,) to create the client window. But you can only draw a filled rectangle with the main SDL API with SDL_FillRect(). But you can use the third party library for it like SDL_gfx. For documentation goto www.libsdl.org
If you will be using Win32(Windows OS API) you call CreateWindow() or CreateWindowEx(). For documentation goto Relevant MSDN Reference
Have you search for it?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement