資源簡介
計算機圖形學上機題 用opengl畫出大小顏色不一樣的多個五角星

代碼片段和文件信息
//?ab.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ab.h“
#include?“MainFrm.h“
#include?“abDoc.h“
#include?“abView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAbApp
BEGIN_MESSAGE_MAP(CAbApp?CWinApp)
//{{AFX_MSG_MAP(CAbApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CAbApp?construction
CAbApp::CAbApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAbApp?object
CAbApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAbApp?initialization
BOOL?CAbApp::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(CAbDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CAbView));
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;
}
/////////////////////////////////////////////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????28552??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ab.aps
?????文件???????2267??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ab.clw
?????文件???????4137??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ab.cpp
?????文件???????4532??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ab.dsp
?????文件????????527??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ab.dsw
?????文件???????1312??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ab.h
?????文件?????140288??2015-04-15?22:05??多個五角星(顏色不一)\多個五角星\ab.ncb
?????文件??????48640??2015-04-15?22:05??多個五角星(顏色不一)\多個五角星\ab.opt
?????文件???????1886??2015-04-15?22:04??多個五角星(顏色不一)\多個五角星\ab.plg
?????文件??????10485??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ab.rc
?????文件???????1662??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\abDoc.cpp
?????文件???????1431??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\abDoc.h
?????文件???????8235??2015-04-15?22:05??多個五角星(顏色不一)\多個五角星\abView.cpp
?????文件???????2109??2015-04-15?18:13??多個五角星(顏色不一)\多個五角星\abView.h
?????文件?????127058??2015-04-15?22:04??多個五角星(顏色不一)\多個五角星\Debug\ab.exe
?????文件?????565160??2015-04-15?22:04??多個五角星(顏色不一)\多個五角星\Debug\ab.ilk
?????文件??????22856??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\Debug\ab.obj
?????文件????5495540??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\Debug\ab.pch
?????文件?????451584??2015-04-15?22:04??多個五角星(顏色不一)\多個五角星\Debug\ab.pdb
?????文件???????7180??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\Debug\ab.res
?????文件??????14184??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\Debug\abDoc.obj
?????文件??????34979??2015-04-15?22:04??多個五角星(顏色不一)\多個五角星\Debug\abView.obj
?????文件??????19580??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\Debug\MainFrm.obj
?????文件?????105323??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\Debug\StdAfx.obj
?????文件?????238592??2015-04-15?22:04??多個五角星(顏色不一)\多個五角星\Debug\vc60.idb
?????文件?????372736??2015-04-15?22:04??多個五角星(顏色不一)\多個五角星\Debug\vc60.pdb
?????文件???????2503??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\MainFrm.cpp
?????文件???????1581??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\MainFrm.h
?????文件???????4215??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\ReadMe.txt
?????文件???????1078??2015-04-15?18:01??多個五角星(顏色不一)\多個五角星\res\ab.ico
............此處省略13個文件信息
評論
共有 條評論