OPenGL实现 3DS卫星地球


OPenGL实现 3DS卫星地球,非常经典的学习代码
资源截图
代码片段和文件信息
// 3DSglLoader.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “3DSglLoader.h“

#include “MainFrm.h“
#include “3DSglLoaderDoc.h“
#include “3DSglLoaderView.h“

#include “SatGL.h“


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMy3DSglLoaderApp

BEGIN_MESSAGE_MAP(CMy3DSglLoaderApp CWinApp)
//{{AFX_MSG_MAP(CMy3DSglLoaderApp)
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()

/////////////////////////////////////////////////////////////////////////////
// CMy3DSglLoaderApp construction

CMy3DSglLoaderApp::CMy3DSglLoaderApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CMy3DSglLoaderApp object

CMy3DSglLoaderApp theApp;



/////////////////////////////////////////////////////////////////////////////
// CMy3DSglLoaderApp initialization

BOOL CMy3DSglLoaderApp::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(CMy3DSglLoaderDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CMy3DSglLoaderView));
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 win

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-08-23 13:36  3DS卫星地球
     文件      422828  2012-05-30 17:11  3DS卫星地球3DSglLoader.aps
     文件        2581  2012-05-30 17:14  3DS卫星地球3DSglLoader.clw
     文件        4355  2012-03-14 22:30  3DS卫星地球3DSglLoader.cpp
     文件        5104  2012-03-21 12:18  3DS卫星地球3DSglLoader.dsp
     文件         547  2002-01-19 19:31  3DS卫星地球3DSglLoader.dsw
     文件        1418  2002-01-19 19:31  3DS卫星地球3DSglLoader.h
     文件      254976  2012-05-30 17:14  3DS卫星地球3DSglLoader.ncb
     文件       53760  2012-05-30 17:14  3DS卫星地球3DSglLoader.opt
     文件         256  2012-05-30 17:11  3DS卫星地球3DSglLoader.plg
     文件       11857  2012-03-15 09:53  3DS卫星地球3DSglLoader.rc
     文件        1876  2002-01-19 19:31  3DS卫星地球3DSglLoaderDoc.cpp
     文件        1541  2002-01-19 19:31  3DS卫星地球3DSglLoaderDoc.h
     文件       16778  2012-03-21 20:30  3DS卫星地球3DSglLoaderView.cpp
     文件        2947  2012-03-20 00:48  3DS卫星地球3DSglLoaderView.h
     文件       37035  2002-01-19 17:10  3DS卫星地球DC10.H
     目录           0  2012-08-23 13:36  3DS卫星地球Debug
     文件     5604352  2012-03-21 20:30  3DS卫星地球Debug3DSglLoader.bsc
     文件      671865  2012-03-21 20:30  3DS卫星地球Debug3DSglLoader.exe
     文件      444628  2012-03-21 20:30  3DS卫星地球Debug3DSglLoader.ilk
     文件       24016  2012-03-15 09:03  3DS卫星地球Debug3DSglLoader.obj
     文件     7158616  2012-03-13 15:39  3DS卫星地球Debug3DSglLoader.pch
     文件      549888  2012-03-21 20:30  3DS卫星地球Debug3DSglLoader.pdb
     文件      400724  2012-03-15 09:54  3DS卫星地球Debug3DSglLoader.res
     文件           0  2012-03-15 09:03  3DS卫星地球Debug3DSglLoader.sbr
     文件       15864  2012-03-13 15:39  3DS卫星地球Debug3DSglLoaderDoc.obj
     文件           0  2012-03-13 15:39  3DS卫星地球Debug3DSglLoaderDoc.sbr
     文件      103284  2012-03-21 20:30  3DS卫星地球Debug3DSglLoaderView.obj
     文件           0  2012-03-21 20:30  3DS卫星地球Debug3DSglLoaderView.sbr
     文件       35008  2002-12-28 19:21  3DS卫星地球DebugHUBBLE.GL
     文件       20849  2012-03-15 10:36  3DS卫星地球DebugMainFrm.obj
............此处省略35个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)