#include <CubicProjection.H>
Public Methods | |
| CubicProjection (int u_res=100, int v_res=100) | |
| ~CubicProjection () | |
| void | CubeTextMapping2Sphere () |
| void | GenerateProjectiveCoords () |
Static Public Methods | |
| dVector3D * | Cube2Sphere (int face, double u, double v) |
| void | LookAtFace (int idx) |
| Apply rotation so that looking at the face along the -z direction, with eye at origin. | |
| XiaViewPort | GetXiaViewPort (int idx, double wh_ratio=1.0) |
| Get the sub-viewport in the whole viewport with wh_ratio. | |
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
Get the sub-viewport in the whole viewport with wh_ratio. The returned sub_viewport is of wh_ratio 1.0. The six cube faces are laid out at screen as, ------- | | | top | | | -------------------------- | | | | | | left | back|right|front| | | | | | -------------------------- | | |botto| | | ------- |
|
|
Apply rotation so that looking at the face along the -z direction, with eye at origin.
|
1.2.18