Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


How the fuck do I use gluPerspective

This topic is 6509 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok I''ve searched this board for half an hour and I have yet to find anyone actually say how you use this function. THey just say oh use this and it will work. I recall someone posting this in my last topic but it coveniently cant be found. Basically if I was using vec3_t pos for the clients position and the same view rotation as the diput tut what would I pass to the function?

Share this post

Link to post
Share on other sites
gluPerspective( double fovy, double aspect, double near, double far )

fovy - The angle of the field of view on the y axis in degrees

aspect - Aspect ration of the frustum. Usually ends up being the width of the viewport in pixels divided by the height of the viewport in pixels.

near - near clipping plane

far - far clipping plane

What is the problem?

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato

Share this post

Link to post
Share on other sites
There''s this ''Win32 API Reference'' help file out there and it shows how to use every single windows, d3d, and opengl function. Isn''t that just great? I don''t know where your supposed to get it, but it is at the bottom of http://www.bloodshed.net/dev/index.html
in ''Additional help files''. It probably comes with VC but I don''t use it so I really don''t know.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!