91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.89MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-08-31
  • 語言: C/C++
  • 標(biāo)簽: MFC??OpenGL??

資源簡介

改程序是我自學(xué)OpenGL時仿照代碼敲得一個例子,覺得OpenGL真是一個神奇的工具,畫得3D圖形太強(qiáng)了

資源截圖

代碼片段和文件信息

//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//

#include?“stdafx.h“
#include?“SdiOpenGL.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;

if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}

if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}

//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);

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


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????20003??2011-06-05?22:06??SdiOpenGL\Debug\MainFrm.obj

?????文件?????122954??2011-06-05?22:06??SdiOpenGL\Debug\SdiOpenGL.exe

?????文件?????328920??2011-06-05?22:06??SdiOpenGL\Debug\SdiOpenGL.ilk

?????文件??????23190??2011-06-05?22:06??SdiOpenGL\Debug\SdiOpenGL.obj

?????文件????5629420??2011-06-05?22:05??SdiOpenGL\Debug\SdiOpenGL.pch

?????文件?????336896??2011-06-05?22:05??SdiOpenGL\Debug\SdiOpenGL.pdb

?????文件???????7328??2011-06-05?22:05??SdiOpenGL\Debug\SdiOpenGL.res

?????文件??????14969??2011-06-05?22:05??SdiOpenGL\Debug\SdiOpenGLDoc.obj

?????文件??????30990??2011-06-05?22:05??SdiOpenGL\Debug\SdiOpenGLView.obj

?????文件?????107335??2011-06-05?22:05??SdiOpenGL\Debug\StdAfx.obj

?????文件?????214016??2011-08-23?23:26??SdiOpenGL\Debug\vc60.idb

?????文件?????364544??2011-06-05?22:05??SdiOpenGL\Debug\vc60.pdb

?????文件???????2510??2011-06-05?22:05??SdiOpenGL\MainFrm.cpp

?????文件???????1581??2011-06-05?21:34??SdiOpenGL\MainFrm.h

?????文件???????4383??2011-06-05?21:34??SdiOpenGL\ReadMe.txt

?????文件???????1078??2011-06-05?21:34??SdiOpenGL\res\SdiOpenGL.ico

?????文件????????401??2011-06-05?21:34??SdiOpenGL\res\SdiOpenGL.rc2

?????文件???????1078??2011-06-05?21:34??SdiOpenGL\res\SdiOpenGLDoc.ico

?????文件???????1078??2011-06-05?21:34??SdiOpenGL\res\Toolbar.bmp

?????文件????????497??2011-06-05?21:34??SdiOpenGL\Resource.h

?????文件??????28796??2011-06-05?21:35??SdiOpenGL\SdiOpenGL.aps

?????文件???????2271??2011-06-05?22:11??SdiOpenGL\SdiOpenGL.clw

?????文件???????4263??2011-06-05?21:34??SdiOpenGL\SdiOpenGL.cpp

?????文件???????4618??2011-06-05?21:34??SdiOpenGL\SdiOpenGL.dsp

?????文件????????526??2011-06-05?22:11??SdiOpenGL\SdiOpenGL.dsw

?????文件???????1389??2011-06-05?21:34??SdiOpenGL\SdiOpenGL.h

?????文件??????58368??2011-08-23?23:26??SdiOpenGL\SdiOpenGL.ncb

?????文件??????74752??2011-08-23?23:26??SdiOpenGL\SdiOpenGL.opt

?????文件????????252??2011-08-23?23:26??SdiOpenGL\SdiOpenGL.plg

?????文件??????10595??2011-06-05?21:34??SdiOpenGL\SdiOpenGL.rc

............此處省略12個文件信息

評論

共有 條評論