⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewcorr.h

📁 [Game.Programming].Academic - Graphics Gems (6 books source code)
💻 H
字号:
/* viewcorr.h *    The global types for view correlation routines. */typedef struct ViewParmsStruct {    Point3 eye;			/* projection point */    Matrix3 view;		/* 3x3 rotation matrix */    Matrix3 viewinv;		/* 3x3 inverse rotation matrix */    double d_over_s;		/* distance to screen / half screen width */    double aspect;		/* aspect ratio (for non-square pixels) */    double halfx, halfy;	/* half of screen resolutions */    double xcenter, ycenter;	/* center of image */} ViewParms;typedef struct ViewDataStruct {    int numpts;			/* number of data points */    Point3 *pts;   		/* array of three D data points */    Point2 *scrpts;   		/* array of screen data points */} ViewData;/* If you cannot handle arbitrary aspect ratios, change the following define * to an undef.  The iteration will happen with the aspect ratio given in * the initial set of ViewParms. */#define ITERATE_ASPECT_RATIO#ifdef ITERATE_ASPECT_RATIO#define NUM_VIEW_PARMS 10#else#define NUM_VIEW_PARMS 9#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -