資源簡介
生成具有真實感的圖形,在給定視點和視線方向后,決定場景中哪些物體表面是可見的,哪些是被遮擋不可見的

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“消隱.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2009-03-31?23:23??消隱\
?????目錄???????????0??2009-03-31?23:23??消隱\Debug\
?????文件???????20075??2004-09-03?19:34??消隱\Debug\MainFrm.obj
?????文件??????105849??2004-09-03?19:34??消隱\Debug\StdAfx.obj
?????文件??????222208??2013-11-20?11:48??消隱\Debug\vc60.idb
?????文件??????372736??2004-12-21?21:00??消隱\Debug\vc60.pdb
?????文件??????127047??2004-12-21?21:00??消隱\Debug\消隱.exe
?????文件??????349056??2004-12-21?21:00??消隱\Debug\消隱.ilk
?????文件???????23039??2004-09-15?20:31??消隱\Debug\消隱.obj
?????文件?????5495324??2004-09-03?19:34??消隱\Debug\消隱.pch
?????文件??????484352??2004-12-21?21:00??消隱\Debug\消隱.pdb
?????文件????????6752??2004-12-21?21:00??消隱\Debug\消隱.res
?????文件???????14687??2004-09-03?19:34??消隱\Debug\消隱Doc.obj
?????文件???????46383??2004-12-21?21:00??消隱\Debug\消隱View.obj
?????文件????????2505??2004-09-03?18:28??消隱\MainFrm.cpp
?????文件????????1581??2004-09-03?18:28??消隱\MainFrm.h
?????文件????????4249??2004-09-03?18:28??消隱\ReadMe.txt
?????文件?????????826??2004-12-21?21:00??消隱\Resource.h
?????文件?????????206??2004-09-03?18:28??消隱\StdAfx.cpp
?????文件????????1054??2004-09-03?18:28??消隱\StdAfx.h
?????目錄???????????0??2009-03-31?23:23??消隱\res\
?????文件????????1078??2004-12-15?22:40??消隱\res\Toolbar.bmp
?????文件????????1078??2004-09-03?18:28??消隱\res\消隱.ico
?????文件?????????396??2004-09-03?18:28??消隱\res\消隱.rc2
?????文件????????1078??2004-09-03?18:28??消隱\res\消隱Doc.ico
?????文件???????28232??2013-11-20?09:00??消隱\消隱.aps
?????文件????????1914??2013-11-20?11:48??消隱\消隱.clw
?????文件????????4145??2004-09-03?18:28??消隱\消隱.cpp
?????文件????????4533??2004-09-03?18:28??消隱\消隱.dsp
?????文件?????????533??2004-09-03?18:28??消隱\消隱.dsw
?????文件????????1312??2004-09-03?18:28??消隱\消隱.h
............此處省略8個文件信息
- 上一篇:spring使用demo
- 下一篇:酒店管理系統設計 軟件工程項目
評論
共有 條評論