資源簡介
本操作指導介紹怎么樣去實現Opengl的貼圖

代碼片段和文件信息
//?cmy.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“cmy.h“
#include?“MainFrm.h“
#include?“cmyDoc.h“
#include?“cmyView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCmyApp
BEGIN_MESSAGE_MAP(CCmyApp?CWinApp)
//{{AFX_MSG_MAP(CCmyApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCmyApp?construction
CCmyApp::CCmyApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCmyApp?object
CCmyApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCmyApp?initialization
BOOL?CCmyApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CCmyDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CCmyView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////////////////////////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????27960??2010-05-25?07:56??操作指導6貼圖-櫻花飛舞\cmy.aps
?????文件???????2141??2010-05-25?07:58??操作指導6貼圖-櫻花飛舞\cmy.clw
?????文件???????4155??2006-01-31?11:47??操作指導6貼圖-櫻花飛舞\cmy.cpp
?????文件???????4436??2006-01-31?12:57??操作指導6貼圖-櫻花飛舞\cmy.dsp
?????文件????????529??2006-01-31?11:47??操作指導6貼圖-櫻花飛舞\cmy.dsw
?????文件???????1323??2006-01-31?11:47??操作指導6貼圖-櫻花飛舞\cmy.h
?????文件?????435200??2010-05-25?08:15??操作指導6貼圖-櫻花飛舞\cmy.ncb
?????文件??????54784??2010-05-25?08:15??操作指導6貼圖-櫻花飛舞\cmy.opt
?????文件???????1774??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\cmy.plg
?????文件??????11371??2006-02-10?10:49??操作指導6貼圖-櫻花飛舞\cmy.rc
?????文件???????1682??2006-01-31?11:47??操作指導6貼圖-櫻花飛舞\cmyDoc.cpp
?????文件???????1442??2006-01-31?11:47??操作指導6貼圖-櫻花飛舞\cmyDoc.h
?????文件??????12751??2006-03-01?12:10??操作指導6貼圖-櫻花飛舞\cmyView.cpp
?????文件???????2464??2006-02-10?11:04??操作指導6貼圖-櫻花飛舞\cmyView.h
?????文件????2224179??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmy.exe
?????文件????2599504??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmy.ilk
?????文件??????21634??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmy.obj
?????文件????5453916??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmy.pch
?????文件????3679232??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmy.pdb
?????文件??????14240??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmy.res
?????文件??????13177??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmyDoc.obj
?????文件??????48811??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\cmyView.obj
?????文件??????23106??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\MainFrm.obj
?????文件?????105376??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\StdAfx.obj
?????文件?????197632??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\vc60.idb
?????文件?????364544??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug\vc60.pdb
?????目錄??????????0??2010-05-24?23:55??操作指導6貼圖-櫻花飛舞\Debug
?????文件???????2388??2001-08-17?18:34??操作指導6貼圖-櫻花飛舞\GlGlyphList.cpp
?????文件????????782??2001-08-17?16:50??操作指導6貼圖-櫻花飛舞\GlGlyphList.h
?????文件?????786486??2006-02-09?16:10??操作指導6貼圖-櫻花飛舞\j.bmp
............此處省略16個文件信息
- 上一篇:xtrareport中文幫助手冊
- 下一篇:linux課程大作業
評論
共有 條評論