Revision: 6691
http://playerstage.svn.sourceforge.net/playerstage/?rev=6691&view=rev
Author: alexcb
Date: 2008-06-26 11:49:21 -0700 (Thu, 26 Jun 2008)
Log Message:
-----------
added limits to pitch on perspective camera
Modified Paths:
--------------
code/stage/trunk/libstage/stage.hh
code/stage/trunk/libstage/worldgui.cc
Modified: code/stage/trunk/libstage/stage.hh
===================================================================
--- code/stage/trunk/libstage/stage.hh 2008-06-26 10:06:47 UTC (rev 6690)
+++ code/stage/trunk/libstage/stage.hh 2008-06-26 18:49:21 UTC (rev 6691)
@@ -1856,7 +1856,7 @@
inline float vertFov( void ) const { return _vert_fov; }
inline void addYaw( float yaw ) { _yaw += yaw; }
inline void setPitch( float pitch ) { _pitch = pitch; }
- inline void addPitch( float pitch ) { _pitch += pitch; }
+ inline void addPitch( float pitch ) { _pitch += pitch; if(
_pitch < 0 ) _pitch = 0; else if( _pitch > 180 ) _pitch = 180; }
inline float realDistance( float z_buf_val ) const {
//formulat found at
http://www.cs.unc.edu/~hoff/techrep/openglz.html
Modified: code/stage/trunk/libstage/worldgui.cc
===================================================================
--- code/stage/trunk/libstage/worldgui.cc 2008-06-26 10:06:47 UTC (rev
6690)
+++ code/stage/trunk/libstage/worldgui.cc 2008-06-26 18:49:21 UTC (rev
6691)
@@ -131,7 +131,7 @@
-StgWorldGui::StgWorldGui(int W,int H,const char* L) : Fl_Window(0,0,W,H,L)
+StgWorldGui::StgWorldGui(int W,int H,const char* L) : Fl_Window(W,H,L)
{
//size_range( 100,100 ); // set minimum window size
oDlg = NULL;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit