Graphics Reference
In-Depth Information
radius of the circle when the checkbox is enabled. When we examine the source
code, we observe two support libraries: UWB _ MFC _ Lib1 and UWB _ D3D _ Lib1 .
UWB _ MFC _ Lib1
Reference.
See
p.
508
for
a
summary
of
the
There are nine source files in this library.
UWBGL _ MFC _ Lib1 library.
uwbgl _ MFCDefines.h . This include file defines compilation parameters.
We will not change this file.
uwbgl _ MFC _ Lib1.h . This is the header file that declares all the symbols
and functions defined in this library. Developers (us) should include this
header file when working with this library.
uwbgl _ MFCUtility.h/.cpp . These two files declare and implement the
ReplaceDialogControl() function. As we saw in Tutorial 2.8, this func-
tion is capable of replacing a GUI window element onto the application
window. We have experience with this functionality for the purpose of or-
ganizing and grouping of GUI elements in Tutorial 2.8.
uwbgl _ MFCSliderCtrlWithEcho1.h/.cpp . These two files implement
the SliderCtrlWithEcho class as detailed in Tutorial 2.6.
uwbgl _ MFCUIWindow1.h/.cpp .
These two files implement the UIWindow
UWBMFC _ UIWindow . Because
it will not cause any ambigu-
ity, we will refer to this class
simply as UIWindow .Ingen-
eral, for readability, we will
try to avoid the identifier string
UWBxxx ”.
class. UIWindow is a subclass of CWnd and implements the ReplaceDialog
Control() functionality. As illustrated in Figure 5.4, this class is designed
to represent a GUI drawing area for our application.
UWBGL _ D3D _ Lib1
Reference.
See
p.
509
for
a
summary
of
the
There are 14 files organized into three folders: Common Files , D3D Files ,and
Header Files .
UWBGL _ D3D _ Lib1 library.
math3d++. This is a sep-
arate self-contained inline li-
brary that supports mathemat-
ics operations for 3D com-
puter graphics. All of the ba-
sic data types (e.g., vector, ma-
trix) and their corresponding
operations (e.g., addition, sub-
straction, transformation) are
supported.
Folder
Subfolder
Purpose
Header Files
-
D3D-specific .h files
D3D-specific classes
D3D_Geoms
classes to draw D3D geometries
D3D Files
D3D_GraphicsSystem
D3DGraphicsSystem files
D3D_WindowHandler
D3DWindowHandler files
Graphics API-independent source code files
Common Files
WindowHandler
WindowHandler files
Search WWH ::




Custom Search