📄 openglview.h
字号:
#if !defined(AFX_OPENGLVIEW_H__E05D6E20_989C_4CEA_B5F6_EB69671EEC38__INCLUDED_)
#define AFX_OPENGLVIEW_H__E05D6E20_989C_4CEA_B5F6_EB69671EEC38__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OpenGLView.h : header file
//
#include <gl/gl.h>
#include <gl/glu.h>
/////////////////////////////////////////////////////////////////////////////
// COpenGLView view
//class CMagicScissorsDoc;
class COpenGLView : public CScrollView
{
protected:
COpenGLView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(COpenGLView)
CMagicScissorsDoc* GetDocument();
// Attributes
public:
BOOL InitGL();
void CloseGL();
void Render();
BOOL SetupPixelFormat(CDC* pDC);
BOOL CreateQuadricObject();
HGLRC m_hGLContext;
GLUquadricObj* m_pQuadObj;
CImage* m_pTexture;
void MakeDepthMap(LPCTSTR plszPathName);
// Operations
public:
float m_CX;
float m_CY;
float m_CZ;
CPoint m_ptAnchor;
BOOL m_bClick;
float m_fZoom;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COpenGLView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // first time after construct
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~COpenGLView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(COpenGLView)
afx_msg void OnClose();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDestroy();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnDepthMap();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnFrontView();
afx_msg void OnDownView();
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnOriginal();
afx_msg void OnHalf();
afx_msg void OnMakeStereo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MagicScissorsView.cpp
inline CMagicScissorsDoc* COpenGLView::GetDocument()
{ return (CMagicScissorsDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OPENGLVIEW_H__E05D6E20_989C_4CEA_B5F6_EB69671EEC38__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -