Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CPartsInst.cpp

Parent Directory Parent Directory | Revision Log 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 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26