Windows XP - PowerPoint PPT Presentation

About This Presentation
Title:

Windows XP

Description:

: 20031385 20031668 Windows XP Visual C++ 6.0 (MFC) OpenGL ... – PowerPoint PPT presentation

Number of Views:40
Avg rating:3.0/5.0
Slides: 23
Provided by: u201
Category:

less

Transcript and Presenter's Notes

Title: Windows XP


1
??? ?????
  • ? ? ???
  • 20031385 ???
  • 20031668 ???

2
????
  • ????
  • Windows XP
  • Visual C 6.0 (MFC)
  • OpenGL

3
????
  • "OpenGL ?????", ???, ??????, 1998
  •  "??????? ???", ???.???.?? ??, ?????, 2003
  •   http//www.solarne.com/
  •   http//www.ultimategameprogramming.com/
  •   http//liftoff.msfc.nasa.gov/academy/space/solar
    system/solarsystemjava.html
  •   http//www.geocities.com/eagle_speaks/SolarSim/A
    ppframe.html
  •   http//www.sssim.com/en/product/studio/download.
    html
  •   http//grace.chonnam.ac.kr/7Emelchi/research/op
    engl/glEvalCoord.html
  •   http//profs.sci.univr.it/colombar/html_openGL_
    tutorial/en/index.html

4
????
  • ???? ??? ??? ?? ?????
  • ????? ?? ??? ??????
  • ???? ?? ????
  • gt ????? 3D????
  • ??? ? ??? ???

5
????(1)
  • ?????
  • ???? ??? ???? ??, ??, ??, ??, ??, ??, ???,
    ???, ????? ???? ??? ? ???? ?? ??? ?? ??? ?? ???
    ???, ??? ??

6
????(2)
  • ?? ???? ??? ???? ??
  • ??? ??
  • ????
  • ????
  • ?????
  • ???? ??(????? ??? ??)
  • ????? ( ????, ??? )
  • ???? ??? ?? ??? ???
  • ????? ???? ??? ?? ??

7
??? ????(1)
8
??? ????(2)
9
????
  • ?????? ??? ??? ??
  • X???
  • Y???
  • ????? ?????
  • ???
  • ????? ?????? 0
  • X???Y???

10
????? ??
  • ??? ?? ???? ??? ??? ?? ???? ??. ????? ???? ?????
    17???? ????.

11
??????
12
??? ????
  • ?? ???? ??? ??? ???
  • ?? ??? ???
  • ?? ???? ??? ?? ???
  • ?? ??? ???
  • ???? ??/??
  • ??
  • - ??
  • ???? ??/??
  • 1 ??
  • 2 ??

13
??? ????
  • ????
  • ????

14
??? ????
  • ????/??

15
????
  • ???? ??? ?? ?? ??? ??
  • ???? ?? ??? ?? ????
  • ?? ????? ??
  • gt??? ?? ??? ?? ?? ??? ???
  • ?? ??? ???.
  • ?? ??? ??? ??? ????
  • ????? ??
  • ???? ??? ??? ???? ???
  • ????? ????? ??? ??
  • ?????? ????

16
????
  • ????
  • CChildViewInit() ??
  • glEnable(GL_CULL_FACE)
  • ????
  • CChildViewInit() ??
  •  glEnable(GL_DEPTH_TEST)
  • ??
  • CChildViewInit() ??
  • glEnable(GL_LIGHTING)
  • glLightModelfv(GL_LIGHT_MODEL_AMBIENT,m_ambLight)
  • ???? ????. ?????? ????? ????? ?? ??.

17
????
  • ??
  • CChildViewInit() ??
  •  glLightfv(GL_LIGHT0,GL_DIFFUSE,m_sourceLight)
  • glLightfv(GL_LIGHT0,GL_POSITION,m_lightPos)
  • glEnable(GL_LIGHT0)
  • ??? ??? ??? ?? ????
  • ?? ???? ?? ?? ???? ??
  • ??? ?? ??.
  • ????
  • CChildViewReadTexture()
  •  11?? ???(??, ??...???, ???)
  • ???? CBmp ???? ?? ??? ???
  • ?? ???? ????.
  • CChildViewDraw() ??
  • glBindTexture(GL_TEXTURE_2D,
  • textureidORBITLINE)
  • glBindTexture(GL_TEXTURE_2D, textureidi)
  • ???? ??? ? ??? ???? ???? ??? ??.

18
????
  • SolarSystem ???
  • SolarSystem() ?? ??? ????
  • ?????
  • virtual SolarSystem() ??? ????
  • void Slow() ????? ??? ??
  • void Fast() ????? ??? ??
  • void Clock() 1???? ????
  • ??? ??? ??/??? ????
  • Planet ???
  • Planet(float,float,float,float) ?? ??? ??? ??
    ??? ?? ???
  • Planet(float,float,float,float,float,float)
    ????? ?? ??? ?? ???
  • float GetRotationAngle() ?? ??? ??? ????
  • float GetAngleY(float Angle) ???? ???? ?? ?????
    y??? ????
  • float GetAngleX(float Angle) ???? ???? ?? ?????
    x??? ????
  • float GetY() ?? y ??? ????
  • float GetX() ?? x ??? ????
  • float GetRadius() ??? ???? ????
  • int GetYear() ?? ??? ??? 1??? ??
  • ??? ?? ????
  • void Run(int nCount) nCount10????
  • ??? ??? ????
  • float radian(float dAngle) ??? ??????
  • ????

19
????
  • CBmp ???
  • boolLoadBitmap(charfilename)
  • ???? ?? ???? ????
  • void FreeImage() ??? ????
    ????

20
????
  • CChildView ???
  • void Init() ??? ????, ????? ????
  • void Draw() ??? ??? ???
  • void ReadTexture() ??? ???? ???
  • void OnPaint() ??? ??? Draw()? ????, ??????
    ????
  • BOOL OnEraseBkgnd(CDC pDC) InvalidateRect(NULL)
    ? ????? ??? ????? ???? ?? FALSE? ????
  • void OnKeyDown(UINT nChar, UINT nRepCnt, UINT
    nFlags) ????? ??
  • int OnCreate(LPCREATESTRUCT lpCreateStruct) ???
    ??? ????? ??, DC? ????? ????, Init()? ??, ????
    ????
  • void OnDestroy() ???? ???? RC? ????, DC? ???
    ????.
  • void OnLButtonDown(UINT nFlags, CPoint point)
    ???? ??? ??
  • void OnLButtonUp(UINT nFlags, CPoint point)
    ???? ??? ??
  • void OnMouseMove(UINT nFlags, CPoint point)
    ????, ????
  • void OnSize(UINT nType, int cx, int cy) ??? ???
    ??? ???? ????
  • void OnTimer(UINT nIDEvent) ?? ??? ??? ????
    1???? ????

21
???
  • ??? ???? ???? ??
  • ?? ??? ?? ??? ??? ???? ??
  • ?? ??? ?? ??? ??? ??? ??? ???? ? ?? ? ???? ????
    ?? ??
  • ????? ???? ??? ??
  • ???? ???? ???? ??? ?? ???

22
  • ?????
  • _____
Write a Comment
User Comments (0)
About PowerShow.com