openGL显示动态的雪人


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-Snowmanfg
     目录           0  2012-02-12 23:34  opengl-SnowmanfgDebug
     文件      105540  2011-12-18 23:54  opengl-SnowmanfgDebugStdAfx.obj
     文件      106554  2011-12-18 23:54  opengl-SnowmanfgDebugfg.exe
     文件      179664  2011-12-18 23:54  opengl-SnowmanfgDebugfg.ilk
     文件       12730  2011-12-18 23:54  opengl-SnowmanfgDebugfg.obj
     文件        2472  2011-12-18 23:54  opengl-SnowmanfgDebugfg.res
     文件       22357  2011-12-18 23:54  opengl-SnowmanfgDebugfgDlg.obj
     文件      205824  2011-12-18 23:54  opengl-SnowmanfgDebugvc60.idb
     文件      364544  2011-12-18 23:54  opengl-SnowmanfgDebugvc60.pdb
     文件        3507  2011-12-18 23:54  opengl-SnowmanfgReadMe.txt
     文件         526  2011-12-18 23:54  opengl-SnowmanfgResource.h
     文件         204  2011-12-18 23:54  opengl-SnowmanfgStdAfx.cpp
     文件        1054  2011-12-18 23:54  opengl-SnowmanfgStdAfx.h
     文件       20580  2011-12-18 23:54  opengl-Snowmanfgfg.aps
     文件         987  2011-12-18 23:54  opengl-Snowmanfgfg.clw
     文件        2007  2011-12-18 23:54  opengl-Snowmanfgfg.cpp
     文件        4087  2011-12-18 23:54  opengl-Snowmanfgfg.dsp
     文件         512  2011-12-18 23:54  opengl-Snowmanfgfg.dsw
     文件        1280  2011-12-18 23:54  opengl-Snowmanfgfg.h
     文件       25600  2011-12-18 23:54  opengl-Snowmanfgfg.ncb
     文件        1521  2011-12-18 23:54  opengl-Snowmanfgfg.plg
     文件        4878  2011-12-18 23:54  opengl-Snowmanfgfg.rc
     文件    55201792  2012-02-12 23:38  opengl-Snowmanfgfg.sdf
     文件        1071  2012-02-12 23:38  opengl-Snowmanfgfg.sln
     文件        8704  2012-02-12 23:38  opengl-Snowmanfgfg.suo
     文件        8305  2012-02-12 23:34  opengl-Snowmanfgfg.vcxproj
     文件        1877  2012-02-12 23:34  opengl-Snowmanfgfg.vcxproj.filters
     文件         143  2012-02-12 23:34  opengl-Snowmanfgfg.vcxproj.user
     文件        4042  2011-12-18 23:54  opengl-SnowmanfgfgDlg.cpp
............此处省略76个文件信息

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

发表评论

评论列表(条)