📄 nonamedlg.h
字号:
// NoNameDlg.h : header file
//
#if !defined(AFX_NONAMEDLG_H__820732C4_FBF8_47F8_AAE7_4D23C6B7864C__INCLUDED_)
#define AFX_NONAMEDLG_H__820732C4_FBF8_47F8_AAE7_4D23C6B7864C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Vector3.h"
#include "Dib.h"
#include "ShowTracedPicture.h"
/////////////////////////////////////////////////////////////////////////////
// CNoNameDlg dialog
class CNoNameDlg : public CDialog
{
// Construction
public:
void BuildList_Eye();
void BuildList_Flat();
void RenderScene();
BOOL CreateViewGLContext(HDC hDC);
int m_GLPixelIndex;
BOOL SetWindowPixelFormat(HDC hDC);
void BuildList();
CNoNameDlg(CWnd* pParent = NULL); // standard constructor
HGLRC m_hGLContext;
float x;
float x_flat;
float Eye_x;
float Eye_y;
float Eye_z;
float View_z;
float Sphere_r;
int TranslateChoice;
int Dirction;
CSurface* surface;
RGBQUAD** buffer;
CRayTraceEngine* tracer;
CShowTracedPicture ShowPic;
CBitmap* m_pResMap;
int m_nWndWidth;//图像宽度
int m_nWndHeight;//图像高度
// Dialog Data
//{{AFX_DATA(CNoNameDlg)
enum { IDD = IDD_NONAME_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNoNameDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNoNameDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnTracedPicture();
afx_msg void OnAddSphere();
afx_msg void OnDeleteObject();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NONAMEDLG_H__820732C4_FBF8_47F8_AAE7_4D23C6B7864C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -