paiting to a new window in C++

Started by
2 comments, last by programering 15 years, 9 months ago
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 :)
Advertisement
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?
Thanks and yes, I searched for it and I read about the SDL libary, but I though that there had to be a better way, but thanks for your help.
You're welcome. I'm glad to help.

This topic is closed to new replies.

Advertisement