Graphics Reference
In-Depth Information
UWBGL_D3D_Lib17
Supports. The tutorials that
are based on this library:
Tutorials
Introduced in Chapter 16 (on p. 462) to support interactive manipulation of ro-
tation based on the more efficient quaternion representation. In this case, all
changes are localized to the XformInfo class. Because of the limited and local-
ized modifications, the static class diagram for this library is not shown. Besides
the wubgl _ XformInfo file, all changes in other files are results of header file
version changes.
16.4,
16.5,
16.6,
16.7, 16.8, and 16.9.
Filename Purpose
Header Files folders: library header files
D3D _ Lib17.h header file for using this library
Common Files/SceneNode folder:
SceneNode6
header file version changes
Common Files/XformInfo folder:
XformInfo5 represent rotation with quaternion
D3D Files folder: D3D-specific files
D3D Files/D3D_Primitives folder:
D3DPrimitiveMeshArrow3
header file version changes
header file version changes
D3DPrimitiveMeshAxis3
UWBGL_D3D_Lib18
Supports. The tutorials that
are based on this library:
Tutorials A.2 and A.3.
Introduced in Appendix A (on p. 490 ) to support per-vertex lighting computation
and definition of custom .x mesh. The following are the new classes introduced
in this version of the library:
UWB _ Material . As illustrated on the right of Figure C.19, this new class
abstracts the material property required in a typical Phong lighting compu-
tation.
UWBD3D _ Light . As illustrated on the left of Figure C.19, this new class de-
fines simple accessor functions to the D3DLIGHT9 class. UWBD3D _ PointLight ,
UWBD3D _ DirectionalLight ,and UWBD3D _ SpotLight all subclass from
this class. The subclasses define simple functions to draw the correspond-
ing light types.
UWBD3D _ MeshPrimitiveCustom . A wrapper class over simple .x mesh
definition. This class defines a mesh with n
×
n vertices on the xz -plane in
the
1 range. Drawing and editing functions are defined to allow interac-
tive manipulation of each of the vertices.
±
Search WWH ::




Custom Search