Browse Subversion Repository
Contents of /trunk/CPartsInst.cpp
Parent Directory
| Revision Log
Revision 1 -
( show annotations)
( download)
( as text)
Sun Aug 15 01:53:13 2010 UTC
(13 years, 9 months ago)
by okadu
File MIME type: text/x-c++src
File size: 501 byte(s)
| 1 |
#include "stdafx.h" |
| 2 |
#include "CPartsInst.h" |
| 3 |
|
| 4 |
/* |
| 5 |
* [static] |
| 6 |
* フォーカスボックス描画 |
| 7 |
*/ |
| 8 |
void CPartsInst::DrawBox(){ |
| 9 |
BOX8 box = m_Object.GetBox(); |
| 10 |
devResetMatrix(); |
| 11 |
devSetTexture(0, NULL); |
| 12 |
devSetLighting(FALSE); |
| 13 |
devSetZRead(TRUE); |
| 14 |
devSetZWrite(FALSE); |
| 15 |
devSetState(D3DRS_ZFUNC, D3DCMP_ALWAYS); |
| 16 |
::DrawBox(&box, ScaleColor(0x40ff0000, g_BlinkAlpha)); |
| 17 |
devSetState(D3DRS_ZFUNC, D3DCMP_LESSEQUAL); |
| 18 |
::DrawBox(&box, ScaleColor(0xffff0000, g_BlinkAlpha)); |
| 19 |
devSetZWrite(TRUE); |
| 20 |
} |
|