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

Author Topic: OpenGl , gluPerspective in SFML ?  (Read 2142 times)

0 Members and 1 Guest are viewing this topic.

domcsidd

  • Newbie
  • *
  • Posts: 9
    • View Profile
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); 
 :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
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);  
Laurent Gomila - SFML developer

domcsidd

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: OpenGl , gluPerspective in SFML ?
« Reply #2 on: June 08, 2013, 04:13:35 pm »
Thanks  ;D I am so silly , I thougt that gluPerspectiv is not SFML part .

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
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 ;)
Laurent Gomila - SFML developer

 

anything