Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа №45 / Oglshvw
.h// oglshvw.h : interface of the COglshapeView class
//
/////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////
///////////////////////////////////////
// START CUSTOM CODE
///////////////////////////////////////
///////////////////////////////////////
#include <gl\gl.h>
enum {Points, Lines, LineStrip, LineLoop, Polygons, Nonconvex,
Triangles, TriangleStrip, TriangleFan, Quads, QuadStrip};
///////////////////////////////////////
///////////////////////////////////////
// END CUSTOM CODE
///////////////////////////////////////
///////////////////////////////////////
class COglshapeView : public CView
{
protected: // create from serialization only
COglshapeView();
DECLARE_DYNCREATE(COglshapeView)
// Attributes
public:
COglshapeDoc* GetDocument();
///////////////////////////////////////
///////////////////////////////////////
// START CUSTOM CODE
///////////////////////////////////////
///////////////////////////////////////
protected:
HGLRC m_hRC;
///////////////////////////////////////
///////////////////////////////////////
// END CUSTOM CODE
///////////////////////////////////////
///////////////////////////////////////
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COglshapeView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~COglshapeView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
///////////////////////////////////////
///////////////////////////////////////
// START CUSTOM CODE
///////////////////////////////////////
///////////////////////////////////////
void DrawWithOpenGL();
///////////////////////////////////////
///////////////////////////////////////
// END CUSTOM CODE
///////////////////////////////////////
///////////////////////////////////////
// Generated message map functions
protected:
bool m_transl;
int DrawFractal(UINT level, double lPtx, double lPty, double rPtx, double rPty);
UINT m_depth;
//{{AFX_MSG(COglshapeView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnDecreased();
afx_msg void OnIncreased();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in oglshvw.cpp
inline COglshapeDoc* COglshapeView::GetDocument()
{ return (COglshapeDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
Соседние файлы в папке Лабораторная работа №45