D3DMaterial.inl
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: D3DMaterial.inl
- // Inlines for CD3DMaterial
- inline void CD3DMaterial::SetMaterial(LPD3DMATERIAL7 lpMat)
- {
- ::CopyMemory(&m_d3dMaterial, lpMat, sizeof(D3DMATERIAL7));
- m_bChanged = true;
- }
- inline void CD3DMaterial::SetAlpha(const D3DVALUE& dvAlpha)
- {
- m_d3dMaterial.dcvDiffuse.dvA = dvAlpha;
- m_bChanged = true;
- }
- inline D3DVALUE CD3DMaterial::GetAlpha(void) const
- {
- return m_d3dMaterial.dcvDiffuse.dvA;
- }
- inline void CD3DMaterial::SetPower(const D3DVALUE& dvPower)
- {
- m_d3dMaterial.dvPower = dvPower;
- m_bChanged = true;
- }
- inline D3DVALUE CD3DMaterial::GetPower(void) const
- {
- return m_d3dMaterial.dvPower;
- }