Isle
Loading...
Searching...
No Matches
TglImpl Namespace Reference

[AI] Forward declaration for Direct3DRMTexture interface [AI] More...

Classes

class  CameraImpl
 [AI] Implementation of Tgl::Camera, wraps a Direct3DRMFrame2 and provides transformation management [AI] More...
 
class  DeviceImpl
 [AI] Implements the Tgl::Device interface, encapsulates Direct3DRMDevice2 and provides rendering device operations. More...
 
class  GroupImpl
 [AI] Implementation of Tgl::Group, wraps a Direct3DRMFrame2 and provides scene graph and transformation features [AI] More...
 
class  LightImpl
 [AI] Implementation of Tgl::Light, wraps a Direct3DRMFrame2 and color data [AI] More...
 
class  MeshBuilderImpl
 [AI] Implements Tgl::MeshBuilder, manages mesh construction and provides the interface for creating geometry buffers [AI] More...
 
class  MeshImpl
 [AI] Implementation of Tgl::Mesh, manages a mesh object and geometry data with group index [AI] More...
 
class  RendererImpl
 [AI] Implements Tgl::MeshBuilder; facilitates mesh construction [AI] More...
 
class  TextureImpl
 [AI] Implements Tgl::Texture using a Direct3DRMTexture; provides upload and palette control [AI] More...
 
class  TglD3DRMIMAGE
 [AI] Simple wrapper for D3DRMIMAGE; manages pixel buffer and palette for Direct3DRM textures [AI] More...
 
class  ViewImpl
 [AI] Implementation of Tgl::View backed by Direct3DRMViewport, handles scene rendering, picking, and camera control. More...
 

Functions

Result ResultVal (HRESULT result)
 Returns a Tgl Result value for HRESULT [AI]. More...
 
void RendererDestroy (IDirect3DRM2 *pRenderer)
 Destroys a Direct3DRM2 renderer object, manages global pointer [AI]. More...
 
void DeviceDestroy (IDirect3DRMDevice2 *pDevice)
 Releases (decreases ref count of) a Direct3DRMDevice2 [AI]. More...
 
void ViewDestroy (IDirect3DRMViewport *pView)
 Releases a Direct3DRMViewport [AI]. More...
 
void CameraDestroy (IDirect3DRMFrame2 *pFrame)
 Releases (decreases ref count) for a Direct3DRMFrame2 [AI]. More...
 
void LightDestroy (IDirect3DRMFrame2 *pLight)
 Releases a Direct3DRMFrame2 used as light [AI]. More...
 
void MeshDestroy (MeshImpl::MeshDataType pMesh)
 Destroys mesh data object [AI]. More...
 
void GroupDestroy (IDirect3DRMFrame2 *pGroup)
 Releases group/frame resource from Direct3DRM [AI]. More...
 
void MeshBuilderDestroy (IDirect3DRMMesh *pMeshBuilder)
 Releases a Direct3DRMMesh [AI]. More...
 
void TextureDestroy (IDirect3DRMTexture *pTexture)
 Releases texture and manages memory [AI]. More...
 
D3DRMRENDERQUALITY Translate (ShadingModel tglShadingModel)
 Converts Tgl shading model enum to D3DRM enum [AI]. More...
 
D3DRMPROJECTIONTYPE Translate (ProjectionType tglProjectionType)
 Converts Tgl projection type enum to D3DRM enum [AI]. More...
 
D3DRMMATRIX4DTranslate (FloatMatrix4 &tglMatrix4x4, D3DRMMATRIX4D &rD3DRMMatrix4x4)
 Converts Tgl FloatMatrix4 to D3DRMMATRIX4D (no-op except for typing) [AI]. More...
 
D3DVECTORTranslate (const float tglVector[3], D3DVECTOR &rD3DVector)
 Converts Tgl float vector to D3DVECTOR [AI]. More...
 
D3DRMLIGHTTYPE Translate (LightType tglLightType)
 Maps Tgl LightType to D3DRMLIGHTTYPE [AI]. More...
 

Variables

IDirect3DRM2 * g_pD3DRM = NULL
 [AI] Global pointer to Direct3DRM2, used to manage lifecycle [AI] More...
 

Detailed Description

[AI] Forward declaration for Direct3DRMTexture interface [AI]

Function Documentation

◆ CameraDestroy()

void TglImpl::CameraDestroy ( IDirect3DRMFrame2 *  pFrame)
inline

Releases (decreases ref count) for a Direct3DRMFrame2 [AI].

Parameters
pFrameFrame pointer to be released [AI]

Definition at line 716 of file impl.h.

◆ DeviceDestroy()

void TglImpl::DeviceDestroy ( IDirect3DRMDevice2 *  pDevice)
inline

Releases (decreases ref count of) a Direct3DRMDevice2 [AI].

Parameters
pDeviceDevice to release [AI]

Definition at line 428 of file impl.h.

◆ GroupDestroy()

void TglImpl::GroupDestroy ( IDirect3DRMFrame2 *  pGroup)
inline

Releases group/frame resource from Direct3DRM [AI].

Parameters
pGroupFrame pointer to release [AI]

Definition at line 1060 of file impl.h.

◆ LightDestroy()

void TglImpl::LightDestroy ( IDirect3DRMFrame2 *  pLight)
inline

Releases a Direct3DRMFrame2 used as light [AI].

Parameters
pLightLight frame pointer [AI]

Definition at line 795 of file impl.h.

◆ MeshBuilderDestroy()

void TglImpl::MeshBuilderDestroy ( IDirect3DRMMesh *  pMeshBuilder)
inline

Releases a Direct3DRMMesh [AI].

Parameters
pMeshBuilderMesh object to release [AI]

Definition at line 1186 of file impl.h.

◆ MeshDestroy()

void TglImpl::MeshDestroy ( MeshImpl::MeshDataType  pMesh)
inline

Destroys mesh data object [AI].

Parameters
pMeshMeshData pointer to destroy [AI]

Definition at line 923 of file impl.h.

◆ RendererDestroy()

void TglImpl::RendererDestroy ( IDirect3DRM2 *  pRenderer)
inline

Destroys a Direct3DRM2 renderer object, manages global pointer [AI].

Parameters
pRendererPointer to renderer to destroy [AI]

Definition at line 297 of file impl.h.

◆ ResultVal()

Result TglImpl::ResultVal ( HRESULT  result)
inline

Returns a Tgl Result value for HRESULT [AI].

Parameters
resultHRESULT value [AI]
Returns
Returns Success if SUCCEEDED(result) is true, Error otherwise [AI]

Definition at line 35 of file impl.h.

◆ TextureDestroy()

void TglImpl::TextureDestroy ( IDirect3DRMTexture *  pTexture)
inline

Releases texture and manages memory [AI].

Parameters
pTextureTexture pointer to release [AI]

Definition at line 1374 of file impl.h.

◆ Translate() [1/5]

D3DVECTOR * TglImpl::Translate ( const float  tglVector[3],
D3DVECTOR rD3DVector 
)
inline

Converts Tgl float vector to D3DVECTOR [AI].

Parameters
tglVectorAn array of 3 floats (x, y, z) [AI]
rD3DVectorD3D vector to output to [AI]
Returns
Pointer to filled D3DVECTOR [AI]

Definition at line 1475 of file impl.h.

◆ Translate() [2/5]

D3DRMMATRIX4D * TglImpl::Translate ( FloatMatrix4 tglMatrix4x4,
D3DRMMATRIX4D rD3DRMMatrix4x4 
)
inline

Converts Tgl FloatMatrix4 to D3DRMMATRIX4D (no-op except for typing) [AI].

Parameters
tglMatrix4x4Input matrix (float) [AI]
rD3DRMMatrix4x4Output matrix [AI]
Returns
Pointer to output matrix [AI]

Definition at line 1458 of file impl.h.

◆ Translate() [3/5]

D3DRMLIGHTTYPE TglImpl::Translate ( LightType  tglLightType)
inline

Maps Tgl LightType to D3DRMLIGHTTYPE [AI].

Parameters
tglLightTypeTgl light type [AI]
Returns
Matching Direct3D light type [AI]

Definition at line 1490 of file impl.h.

◆ Translate() [4/5]

D3DRMPROJECTIONTYPE TglImpl::Translate ( ProjectionType  tglProjectionType)
inline

Converts Tgl projection type enum to D3DRM enum [AI].

Parameters
tglProjectionTypeTgl projection type [AI]
Returns
D3DRM projection type [AI]

Definition at line 1432 of file impl.h.

◆ Translate() [5/5]

D3DRMRENDERQUALITY TglImpl::Translate ( ShadingModel  tglShadingModel)
inline

Converts Tgl shading model enum to D3DRM enum [AI].

Parameters
tglShadingModelTgl shading model [AI]
Returns
Corresponding D3DRM shading enum [AI]

Definition at line 1398 of file impl.h.

◆ ViewDestroy()

void TglImpl::ViewDestroy ( IDirect3DRMViewport *  pView)
inline

Releases a Direct3DRMViewport [AI].

Parameters
pViewViewport to release [AI]

Definition at line 645 of file impl.h.

Variable Documentation

◆ g_pD3DRM

IDirect3DRM2 * TglImpl::g_pD3DRM = NULL

[AI] Global pointer to Direct3DRM2, used to manage lifecycle [AI]

Definition at line 21 of file renderer.cpp.