Graphics Reference
In-Depth Information
UWBGL_D3D_Lib13
Supports. The tutorials that
are based on this library:
Tutorials 12.3 and 12.5.
Introduced in Chapter 12, this library presents the alpha blending (on p. 348) and
texture mapping (on p. 359) functionality to the programmers. Figure C.16 high-
lights the new and updated classes in this library. The following list summarizes
the changes from the previous version of the library:
UWBD3D _ Resource . This is a new class introduced to support searching and
loading of files. A loadable file is considered as a resource. For now, we
support loading of file textures as resources.
UWBD3D _ GraphicsSystem . This class is modified to include an array of
file texture resources. New functionality is added to search, and to trigger
lazy loading of file texture resources.
UWB _ Primitive . This class is modified to support attributes associated
with alpha blending and file textures.
DrawHelper . The classes in the Common Files and D3D Files folders are
both modified to support the new alpha blending and file texture attributes
and rendering.
UWB_Primitive
UWBD3D_Resource
UWB_DrawHelper
-only changes are shown
-...
#m_bBlendingEnabled : bool
#m_bTexturingEnabled : bool
#m_TexFileName : wstring
#m_pDevice : LPDIRECT3DDEVICE9
#m_ResourceName : wstring
+only changes are shown
-...
#m_TexFileName : wstring
+UWBD3D_Resource()
+~UWBD3D_Resource()
+GetResourceName ()
+LoadResource ()
#ReleaseMemory ()
#LoadResourceFromFile ()
#FindFilePath ()
+EnableBlending ()
+SetTextureInfo()
+EnableTexture ()
+UWB_Primitive()
+EnableBlending ()
+IsBlendingEnabled ()
+SetTextureFileName ()
+GetTextureFileName ()
+EnableTexturing ()
+IsTexturingEnabled ()
*
External Classes:: LPDIRECT3DTEXTURE9
+internal to D 3D
1
UWBD3D_TextureResource
UWBD3D_GraphicsSystem
#m_pTexture : LPDIRECT3DTEXTURE9
-only changes are shown
-...
-m_texture_resources : UWB_PointerArray <UWBD3D_TextureResource *>
#ReleaseMemory ()
#LoadResourceFromFile ()
+UWBD3D_TextureResource ()
+~UWBD3D_TextureResource ()
+GetD3DTexture()
*
1
+ActivateTexture()
+DeactivateTexture()
UWBGL _ D3D _ Lib13 : Resource classes and modifications for resource
Figure C.16.
support.
Search WWH ::




Custom Search