Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
OpenGl , gluPerspective in SFML ?
Print
Pages: [
1
]
Author
Topic: OpenGl , gluPerspective in SFML ? (Read 2138 times)
0 Members and 1 Guest are viewing this topic.
domcsidd
Newbie
Posts: 9
OpenGl , gluPerspective in SFML ?
«
on:
June 07, 2013, 07:38:56 pm »
Hi !
I want to know , how can i write this in SFML :
gluPerspective(45.0,(double)w / (double)h,1.0, 200.0);
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: OpenGl , gluPerspective in SFML ?
«
Reply #1 on:
June 07, 2013, 08:56:29 pm »
Like this:
gluPerspective
(
45.0
,
(
double
)
w
/
(
double
)
h,
1.0
,
200.0
)
;
Logged
Laurent Gomila - SFML developer
domcsidd
Newbie
Posts: 9
Re: OpenGl , gluPerspective in SFML ?
«
Reply #2 on:
June 08, 2013, 04:13:35 pm »
Thanks
I am so silly , I thougt that gluPerspectiv is not SFML part .
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: OpenGl , gluPerspective in SFML ?
«
Reply #3 on:
June 08, 2013, 04:33:07 pm »
It's not. That's why it's exactly the same with SFML
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
OpenGl , gluPerspective in SFML ?
anything