OpenGL.h
上传用户:jsylhbnbhn
上传日期:2013-11-03
资源大小:119k
文件大小:1k
- // OpenGL.h: interface for the OpenGL class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_OPENGL_H__17B7289C_7956_41C5_89B9_621E3C435389__INCLUDED_)
- #define AFX_OPENGL_H__17B7289C_7956_41C5_89B9_621E3C435389__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "vector3f.h"
- #include "stdafx.h"
- class OpenGL
- {
- public:
- OpenGL();
- virtual ~OpenGL();
- HDC hDC; // GDI设备描述表
- HGLRC hRC; // 永久着色描述表
- BOOL SetupPixelFormat(HDC hDC);
- void init(int Width, int Height);
- void Render();
- void CleanUp();
- int x_arc; //旋转角度
- int y_arc;
- int z_arc;
- void clear();
- void draw2point(Vector3f vVector1, Vector3f vVector2);
- int Init();
- void display();
- int Correct_3D_Layout(Vector3f vVector1, Vector3f vVector2);
- private:
- void draw_ground();
- };
- #endif // !defined(AFX_OPENGL_H__17B7289C_7956_41C5_89B9_621E3C435389__INCLUDED_)