資源簡介
計算機圖形學作業,利用opengl實現了一個太陽系,共有八大行星,有紋理貼圖,進行了視角切換比較真實。

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“Socar.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;
????Modifystyle(WS_BORDER|WS_SYSMENU0);
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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????18712??2008-12-10?11:31??Socar\Debug\MainFrm.obj
?????文件??????????0??2008-12-04?17:00??Socar\Debug\MainFrm.sbr
?????文件????3884032??2008-12-04?17:04??Socar\Debug\Socar.bsc
?????文件????1376346??2008-12-10?20:43??Socar\Debug\Socar.exe
?????文件?????772692??2008-12-10?20:43??Socar\Debug\Socar.ilk
?????文件??????23119??2008-12-04?22:11??Socar\Debug\Socar.obj
?????文件????5497884??2008-12-04?22:11??Socar\Debug\Socar.pch
?????文件?????623616??2008-12-10?20:43??Socar\Debug\Socar.pdb
?????文件????1029424??2008-12-10?11:31??Socar\Debug\Socar.res
?????文件??????????0??2008-12-04?17:00??Socar\Debug\Socar.sbr
?????文件??????14629??2008-12-04?22:11??Socar\Debug\SocarDoc.obj
?????文件??????????0??2008-12-04?17:00??Socar\Debug\SocarDoc.sbr
?????文件??????53525??2008-12-10?20:43??Socar\Debug\SocarView.obj
?????文件??????????0??2008-12-04?17:04??Socar\Debug\SocarView.sbr
?????文件?????105593??2008-12-04?22:11??Socar\Debug\StdAfx.obj
?????文件????1374952??2008-12-04?17:00??Socar\Debug\StdAfx.sbr
?????文件?????238592??2009-11-19?20:22??Socar\Debug\vc60.idb
?????文件?????372736??2008-12-10?20:43??Socar\Debug\vc60.pdb
?????文件???????1847??2008-12-10?11:31??Socar\MainFrm.cpp
?????文件???????1581??2008-12-01?19:03??Socar\MainFrm.h
?????文件???????4287??2008-12-01?19:03??Socar\ReadMe.txt
?????文件?????515576??2008-12-03?14:36??Socar\res\earth.bmp
?????文件??????43256??2008-12-03?14:36??Socar\res\Haixing.bmp
?????文件??????43256??2008-12-03?14:36??Socar\res\Huoxing.bmp
?????文件????????766??2008-12-10?11:31??Socar\res\icon1.ico
?????文件????????766??2008-12-10?11:31??Socar\res\icon2.ico
?????文件????????766??2008-12-10?11:31??Socar\res\icon3.ico
?????文件??????43256??2008-12-03?14:36??Socar\res\Jinxing.bmp
?????文件??????43256??2007-08-18?01:50??Socar\res\mars.bmp
?????文件??????13622??2008-12-05?17:36??Socar\res\Moon.bmp
............此處省略33個文件信息
評論
共有 條評論