📄 shadowview.h
字号:
// ShadowView.h : interface of the CShadowView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHADOWVIEW_H__7CF353D2_043D_4BB3_B1C0_291026C02FF5__INCLUDED_)
#define AFX_SHADOWVIEW_H__7CF353D2_043D_4BB3_B1C0_291026C02FF5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ShadowDoc.h"
#include "ParamPanel.h"
#include <gl/gl.h>
#include <gl/glu.h>
class CShadowView : public CView
{
protected: // create from serialization only
CShadowView();
DECLARE_DYNCREATE(CShadowView)
// Attributes
public:
CShadowDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShadowView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CShadowView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
//User defined here!!!!!
//////////////////////////////////////////////////////////////
protected:
bool isReady;
//High precision time test
LARGE_INTEGER timerFrequency;
LARGE_INTEGER startTime,endTime;
UINT m_nTimer;
float m_FrameRate;
int WinWidth, WinHeight; // the size of the window
float WHRatio;
HGLRC m_hRC;
CDC* m_pDC;
/////////////////////////////////////////PBuffer
//functions about OpenGL
virtual void SetupPerspective();
virtual void InitRenderWin();
virtual void UpdateInformation();
//////////////////////////////////////////PBuffer
BOOL RenderScene();
private:
///////////////////////////////////////////////////////////////
// Generated message map functions
protected:
//{{AFX_MSG(CShadowView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTestComputationOnGPU();
afx_msg void OnReadybutton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ShadowView.cpp
inline CShadowDoc* CShadowView::GetDocument()
{ return (CShadowDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHADOWVIEW_H__7CF353D2_043D_4BB3_B1C0_291026C02FF5__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -