Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
SFML projects
»
graphic.hpp vs window.hpp
Print
Pages: [
1
]
Author
Topic: graphic.hpp vs window.hpp (Read 3177 times)
0 Members and 1 Guest are viewing this topic.
wvtrammell
Jr. Member
Posts: 70
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
wvtrammell
Jr. Member
Posts: 70
graphic.hpp vs window.hpp
«
Reply #2 on:
June 04, 2010, 05:32:29 pm »
Thanks
Warren
Logged
Print
Pages: [
1
]
SFML community forums
»
General
»
SFML projects
»
graphic.hpp vs window.hpp
anything