Pan view with mouse both side-to-side and up/down from Norman Vine.
This commit is contained in:
parent
978b8af9cb
commit
c0b59ca4b2
2 changed files with 795 additions and 146 deletions
932
src/GUI/gui.cxx
932
src/GUI/gui.cxx
File diff suppressed because it is too large
Load diff
|
@ -136,6 +136,7 @@ static void print_sgMat4( sgMat4 &in) {
|
|||
|
||||
// Update the view parameters
|
||||
void FGView::UpdateViewMath( const FGInterface& f ) {
|
||||
|
||||
Point3D p;
|
||||
sgVec3 v0, minus_z, sgvec, forward;
|
||||
sgMat4 VIEWo, TMP;
|
||||
|
@ -251,6 +252,14 @@ void FGView::UpdateViewMath( const FGInterface& f ) {
|
|||
|
||||
sgMultMat4( VIEW, VIEW_ROT, TRANS );
|
||||
|
||||
//!!!!!!!!!!!!!!!!!!!
|
||||
// THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
|
||||
// THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
|
||||
// this in gui.cxx for now just testing
|
||||
extern float quat_mat[4][4];
|
||||
sgPreMultMat4( VIEW, quat_mat);
|
||||
// !!!!!!!!!! testing
|
||||
|
||||
sgSetVec3( sgvec, 0.0, 0.0, 1.0 );
|
||||
sgXformVec3( forward, sgvec, VIEWo );
|
||||
// cout << "forward = " << forward[0] << ","
|
||||
|
|
Loading…
Add table
Reference in a new issue