Sign in to follow this  
AbelCorver

paiting to a new window in C++

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this