Jump to content
  • Advertisement
Sign in to follow this  
AbelCorver

paiting to a new window in C++

This topic is 3635 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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?

Share this post


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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!