Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Using SFML with win32 API  (Read 2423 times)

0 Members and 1 Guest are viewing this topic.

Mad Engineer

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Using SFML with win32 API
« on: December 28, 2013, 09:51:07 pm »
Is it possible to make only part of the window render target, so i can use rest of the window for my win32 commands. I want to do this to create map editor for my 2D game.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Using SFML with win32 API
« Reply #1 on: December 28, 2013, 11:52:53 pm »
Not sure what you mean with "win32 commands". If you want to use SFML with a GUI system, you should rather create a SFML widget for that GUI system and integrate it that way.

But yes you can render only to part of the screen, by changing the viewport. See the tutorial and documentation on how to do this. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mad Engineer

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Using SFML with win32 API
« Reply #2 on: December 29, 2013, 11:05:45 am »
Thanks, this made my day :D