Graphics Reference
In-Depth Information
UWB_BoundingVolume
UWB_BoundingBox
UWB_Primitive
-m_min : vec3
-m_max : vec3
#m_bDrawBoundingVolume : bool
Primitives
(
details similar to Lib7 omitted)
+GetType()
+GetCenter()
+Add()
+Intersects()
+ContainsPoint()
+Draw()
+GetBoundingVolume()
+CollisionResponse()
+IsDrawBoundingVolume()
+...()
+UWB_BoundingBox()
+UWB_BoundingBox()
+UWB_BoundingBox()
+SetCorners()
+MoveCenterTo()
+GetMin()
+GetMax()
+Width()
+Height()
+Depth()
+MakeInvalid()
+IsValid()
+Add()
UWB_PrimitivePoint
#m_bounds : UWB_BoundingBox
+GetBoundingVolume()
+...()
UWB_PrimitiveCircle
#m_bounds : UWB_BoundingBox
+GetBoundingVolume()
+...()
UWB_PrimitiveLine
Bounding Volume/Box
#m_bounds : UWB_BoundingBox
+GetBoundingVolume()
+...()
Figure C.7.
UWBGL
_
D3D
_
Lib6
:
BoundingBox
and the
Primitive
hierarchy.
UWBGL_D3D_Lib7
Supports.
The tutorials that
are based on this library:
Tutorials 7.4 and 7.5.
Introduced in Chapter 7 (on p. 189), this library presents the
PrimitiveList
abstraction for coherently grouping primitives. The important change from the
previous library is the addition of
PrimitiveList1.h/.cpp
into the
Primitives
subfolder of the
Common Files
folder.
Figure C.8 highlights the new and updated classes in this library. The follow-
ing files are modified from the previous version of the library:
Filename Purpose
Header Files
folder: library header files
D3D
_
Lib7.h
header file for using this library
Common Files
folder: API-independent files
Common Files/Primitives
folder:
PrimitiveList1
support list of primitives
UWB_PrimitiveList
#m_list : UWB_PointerArray<UWB_Primitive*>
#m_bounds : UWB_BoundingBox
UWB_Primitive
#DrawPrimitive()
+UWB_PrimitiveList()
+Update()
+DrawChildBoundingVolumes()
+Count()
+PrimitiveAt()
+PrimitiveAt()
+Append()
+DeletePrimitiveAt()
#SetupDrawAttributes()
+UWB_Primitive()
+~UWB_Primitive()
#DrawPrimitive()
+SetDrawBoundingVolume()
+...()
Figure C.8.
UWBGL
_
D3D
_
Lib7
:
PrimitiveList
class.
Search WWH ::
Custom Search