⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 raytrace.h

📁 一个非常有用的开源代码
💻 H
字号:
// ********************************************************// This is demo code. You may derive from, use, modify, and// distribute it without limitation for any purpose.// Obviously you don't get a warranty or an assurance of// fitness for a particular purpose with this code. Your// welcome to remove this header and claim original// authorship. I really don't care.// ********************************************************#ifndef __RAYTRACE_H__#define __RAYTRACE_H__#include "Gui.h"class RayTraceController;class RayTraceDialog;class GRayTraceScene;class RayTraceView : public ViewBase{friend class RayTraceController;protected:	RayTraceDialog* m_pDialog;	GImage* m_pImage;public:	RayTraceView(RayTraceController* pController);	virtual ~RayTraceView();	virtual void OnChar(char c);	virtual void OnMouseDown(int x, int y);	virtual void OnMouseUp(int x, int y);	virtual bool OnMousePos(int x, int y);	void SetImage(GImage* pImage) { m_pImage = pImage; }protected:	virtual void Draw(SDL_Surface *pScreen);};class RayTraceController : public ControllerBase{protected:	GRayTraceScene* m_pScene;	bool m_bRendering;public:	RayTraceController();	virtual ~RayTraceController();	void RunModal();	void OnSelectFile(const char* szFilename);};#endif // __RAYTRACE_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -