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

Author Topic: graphic.hpp vs window.hpp  (Read 2664 times)

0 Members and 1 Guest are viewing this topic.

wvtrammell

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
graphic.hpp vs window.hpp
« on: June 04, 2010, 04:19:06 pm »
I wish to write some code in C++ where it draws 4 circles on the screen with the program defining the location and color of each.
Then I want to draw an additional four circles with the user defining the location and color of each.
Do I need to use graphic.hpp or window.hpp?
Thanks
Warren

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
graphic.hpp vs window.hpp
« Reply #1 on: June 04, 2010, 04:24:35 pm »
The window module doesn't provide any drawing facility, you would have to use OpenGL to draw your circles. So, unless you want to write this stuff from scratch with raw OpenGL, you should use the graphics module.
Laurent Gomila - SFML developer

wvtrammell

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
graphic.hpp vs window.hpp
« Reply #2 on: June 04, 2010, 05:32:29 pm »
Thanks
Warren

 

anything