OpenGl을 이용한 행성간 궤도 시뮬레이션
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
해당 자료는 7페이지 까지만 미리보기를 제공합니다.
7페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

OpenGl을 이용한 행성간 궤도 시뮬레이션에 대한 보고서 자료입니다.

목차

[Debug]
  Example07.exe
  Example07.ilk
  Example07.pdb
[Example07]
  [Debug]
  [GLInterface]
  [opengl]
  [res]
  Background.bmp
  Earth.bmp
  Earth2.bmp
  Example07.aps
  Example07.cpp
  Example07.h
  Example07.rc
  Example07.vcproj
  Example07.vcproj.Callab-b09-168.callab.user
  Example07.vcproj.Callab-b09-170.callab.user
  Example07.vcproj.Euijun-PC.Euijun.user
  Example07Doc.cpp
  Example07Doc.h
  Example07View.cpp
  Example07View.h
  Jupiter.bmp
  Line.bmp
  MainFrm.cpp
  MainFrm.h
  Mars.bmp
  Mercury.bmp
  Moon.bmp
  Neptune.bmp
  ReadMe.txt
  Resource.h
  Saturn.bmp
  stdafx.cpp
  stdafx.h
  Sun.bmp
  targetver.h
  Uranus.bmp
  Venus.bmp
Example07.ncb
Example07.sln
Example07.suo



Example07_2

49.1MB

파일 63, 폴더 8

본문내용

Example07.cpp




// Example07.cpp : Defines the class behaviors for the application.
//

#include \"stdafx.h\"
#include \"Example07.h\"
#include \"MainFrm.h\"

#include \"Example07Doc.h\"
#include \"Example07View.h\"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CExample7App

BEGIN_MESSAGE_MAP(CExample7App, CWinApp)
    ON_COMMAND(ID_APP_ABOUT, &CExample7App::OnAppAbout)
    // Standard file based document commands
    ON_COMMAND(ID_FILE_NEW, &CWinApp::OnFileNew)
    ON_COMMAND(ID_FILE_OPEN, &CWinApp::OnFileOpen)
END_MESSAGE_MAP()


// CExample7App construction

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


// The one and only CExample7App object

CExample7App theApp;


// CExample7App initialization

BOOL CExample7App::InitInstance()
{
    // InitCommonControlsEx() is required on Windows XP if an application
    // manifest specifies use of ComCtl32.dll version 6 or later to enable
    // visual styles. Otherwise, any window creation will fail.
    INITCOMMONCONTROLSEX InitCtrls;
    InitCtrls.dwSize = sizeof(InitCtrls);
    // Set this to include all the common control classes you want to use
    // in your application.
    InitCtrls.dwICC = ICC_WIN95_CLASSES;
    InitCommonControlsEx(&InitCtrls);

    CWinApp::InitInstance();

    // Initialize OLE libraries
    if (!AfxOleInit())
    {
        AfxMessageBox(IDP_OLE_INIT_FAILED);
        return FALSE;
    }
    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
    // 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(4); // 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(CExample7Doc),
        RUNTIME_CLASS(CMainFrame), // main SDI frame window
        RUNTIME_CLASS(CExample7View));
    if (!pDocTemplate)
        return FALSE;
    AddDocTemplate(pDocTemplate);



    // Parse command line for standard shell commands, DDE, file open
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);


    // Dispatch commands specified on the command line. Will return FALSE if
    // app was launched with /RegServer, /Register, /Unregserver or /Unregister.
    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();
    // call DragAcceptFiles only if there's a suffix
    // In an SDI app, this should occur after ProcessShellCommand
    return TRUE;
}

키워드

  • 가격500
  • 페이지수20페이지
  • 등록일2012.12.23
  • 저작시기2012.10
  • 파일형식압축파일(zip)
  • 자료번호#827260
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니