Graphics Reference
In-Depth Information
UWB_Primitive
UWB_PrimitiveCircle
#m_bVisible : bool
#m_velocity : vec3
#m_FlatColor : UWB_Color
#m_ShadingColor : UWB_Color
#m_FillMode : eFillMode
#m_ShadeMode : eShadeMode
#m_PointSize : float
#m_center : vec3
#m_radius : float
#SetupDrawAttributes()
#DrawPrimitive()
+UWB_PrimitiveCircle()
+Update()
+MouseDownVertex()
+MoveTo()
+GetLocation()
+SetCenter()
+SetCenter()
+GetCenter()
+SetRadius()
+GetRadius()
UWB_PrimitiveLine
#m_start : vec3
#m_end : vec3
+UWB_Primitive()
+~UWB_Primitive()
#SetupDrawAttributes()
#DrawPrimitive()
+SetVisible()
+SetVelocity()
+GetVelocity()
+SetFillMode()
+GetFillMode()
+UWB_PrimitiveLine()
+Update()
+MouseDownVertex()
+MoveTo()
+GetLocation()
+SetStartPoint()
+GetStartPoint()
+SetEndPoint()
+GetEndPoint()
+GetMidPoint()
UWB_PrimitivePoint
#m_point : vec3
«enumeration»
eFillMode
#SetupDrawAttributes()
#DrawPrimitive()
+UWB_PrimitivePoint()
+MouseDownVertex()
+GetLocation()
+SetLocation()
+fmPoint
+fmWireframe
+fmSolid
«enumeration»
eShadeMode
+smFlat
+smGouraud
Figure C.6.
UWBGL
_
D3D
_
Lib5
:
Primitive
hierarchy.
UWBGL_D3D_Lib6
Supports.
The tutorial that is
based on this library:
Tutorial 7.3.
Introduced in Chapter 7 (on p. 185), this library presents the
BoundingVolume
abstraction to support collision behavior for the
Primitive
hierarchy. A new
BoundingVolumes
subfolder is defined in the
Common Files
folder for the new
source files. All source files in the entire
Primitive
hierarchy are updated to
support
BoundingVolume
collision behavior.
Figure C.7 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
folders: library header files
D3D
_
Lib6.h
header files for using this library
Common Files
folder: API-independent files
Common Files/BoundingVolumes
folder:
Intersect1
defines bounding volume hierarchy to support collisions
Common Files/Primitives
folder: abstraction of primitives
all primitives are updated to support bounding volumes:
Primitive2
,
PrimitivePoint2
,
PrimitiveLine2
,
PrimitiveCircle1
Search WWH ::
Custom Search