src/2D.cpp
static void read_matrices ()
{
    // Read the model view and projection matrices from this frame
    XPLMGetDatavf(drMatrixWrld,gMatrixWrld,0,16);
    XPLMGetDatavf(drMatrixProj,gMatrixProj,0,16);
    
    // Read the screen size (won't change often if at all...but could!)
    gScreenW = (float)XPLMGetDatai(drScreenWidth);
    gScreenH = (float)XPLMGetDatai(drScreenHeight);
    
    // Field of view
    gFOV = XPLMGetDataf(drFieldOfView);
}
/// Once per cycle read necessary matrices from X-Plane
Once per cycle read necessary matrices from X-Plane
Once per cycle read necessary matrices from X - Plane
static void read_matrices ()
{
    XPLMGetDatavf(drMatrixWrld,gMatrixWrld,0,16);
    XPLMGetDatavf(drMatrixProj,gMatrixProj,0,16);
    gScreenW = (float)XPLMGetDatai(drScreenWidth);
    gScreenH = (float)XPLMGetDatai(drScreenHeight);
    gFOV = XPLMGetDataf(drFieldOfView);
}
static void read_matrices ( ) { XPLMGetDatavf ( drMatrixWrld , gMatrixWrld , 0 , 16 ) ; XPLMGetDatavf ( drMatrixProj , gMatrixProj , 0 , 16 ) ; gScreenW = ( float ) XPLMGetDatai ( drScreenWidth ) ; gScreenH = ( float ) XPLMGetDatai ( drScreenHeight ) ; gFOV = XPLMGetDataf ( drFieldOfView ) ; }
Once per cycle read necessary matrices from X-Plane
Once per cycle read necessary matrices from X - Plane
// Read the model view and projection matrices from this frame // Read the screen size (won't change often if at all...but could!) // Field of view