資源簡介
C++與openGL編寫的顯示雪人,有下雪的場景,雪人能轉動
代碼片段和文件信息
//?fg.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“fg.h“
#include?“fgDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFgApp
BEGIN_MESSAGE_MAP(CFgApp?CWinApp)
//{{AFX_MSG_MAP(CFgApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CFgApp?construction
CFgApp::CFgApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFgApp?object
CFgApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFgApp?initialization
BOOL?CFgApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CFgDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-12-18?23:54??opengl-Snowman\
?????目錄???????????0??2012-02-12?23:38??opengl-Snowman\fg\
?????目錄???????????0??2012-02-12?23:34??opengl-Snowman\fg\Debug\
?????文件??????105540??2011-12-18?23:54??opengl-Snowman\fg\Debug\StdAfx.obj
?????文件??????106554??2011-12-18?23:54??opengl-Snowman\fg\Debug\fg.exe
?????文件??????179664??2011-12-18?23:54??opengl-Snowman\fg\Debug\fg.ilk
?????文件???????12730??2011-12-18?23:54??opengl-Snowman\fg\Debug\fg.obj
?????文件????????2472??2011-12-18?23:54??opengl-Snowman\fg\Debug\fg.res
?????文件???????22357??2011-12-18?23:54??opengl-Snowman\fg\Debug\fgDlg.obj
?????文件??????205824??2011-12-18?23:54??opengl-Snowman\fg\Debug\vc60.idb
?????文件??????364544??2011-12-18?23:54??opengl-Snowman\fg\Debug\vc60.pdb
?????文件????????3507??2011-12-18?23:54??opengl-Snowman\fg\ReadMe.txt
?????文件?????????526??2011-12-18?23:54??opengl-Snowman\fg\Resource.h
?????文件?????????204??2011-12-18?23:54??opengl-Snowman\fg\StdAfx.cpp
?????文件????????1054??2011-12-18?23:54??opengl-Snowman\fg\StdAfx.h
?????文件???????20580??2011-12-18?23:54??opengl-Snowman\fg\fg.aps
?????文件?????????987??2011-12-18?23:54??opengl-Snowman\fg\fg.clw
?????文件????????2007??2011-12-18?23:54??opengl-Snowman\fg\fg.cpp
?????文件????????4087??2011-12-18?23:54??opengl-Snowman\fg\fg.dsp
?????文件?????????512??2011-12-18?23:54??opengl-Snowman\fg\fg.dsw
?????文件????????1280??2011-12-18?23:54??opengl-Snowman\fg\fg.h
?????文件???????25600??2011-12-18?23:54??opengl-Snowman\fg\fg.ncb
?????文件????????1521??2011-12-18?23:54??opengl-Snowman\fg\fg.plg
?????文件????????4878??2011-12-18?23:54??opengl-Snowman\fg\fg.rc
?????文件????55201792??2012-02-12?23:38??opengl-Snowman\fg\fg.sdf
?????文件????????1071??2012-02-12?23:38??opengl-Snowman\fg\fg.sln
?????文件????????8704??2012-02-12?23:38??opengl-Snowman\fg\fg.suo
?????文件????????8305??2012-02-12?23:34??opengl-Snowman\fg\fg.vcxproj
?????文件????????1877??2012-02-12?23:34??opengl-Snowman\fg\fg.vcxproj.filters
?????文件?????????143??2012-02-12?23:34??opengl-Snowman\fg\fg.vcxproj.user
?????文件????????4042??2011-12-18?23:54??opengl-Snowman\fg\fgDlg.cpp
............此處省略76個文件信息
評論
共有 條評論