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

📄 lensfare.h

📁 涉及windows游戏编程中的一些源码
💻 H
字号:
/**********************************************************
  SimNature Ver1.0.0
  Copyright : Panliliang (Stanly Lee)
  2002 - 2003
  Alright reserved!
  All Noncommeric use is Free!

  潘李亮版权所有 
             2003-2003
  本程序的所有非商业化使用为免费代码。

  E- Mial: Panliliang@etang.com
		   Xheartblue@etang.com 




  模块名称:
  功能描述:

  版本:
  作者:

**********************************************************/
#ifndef _LENS_FLARE_H_
#define _LENS_FLARE_H_

#include<vector>
using namespace std;

#include "Camera.h"

class CLensFlar
{
	typedef struct
	{
		float   pos;
		float   size;
		int     texID;
	}LFNODE,*PLFNODE;


public:
	BOOL IsBackOfViewer();
	void SetCamera(CCamera* pCamera);
	
    void Release();
	
	void SetLocation(float x,float y,float z);
	void AddSubNode(float size,float pos,int texID);
	void AddMainNode(float size,int texID);
	
	void Draw();

private:
	vector<LFNODE> m_MainNodes;
	vector<LFNODE> m_SubNodes;

	float m_loca_x,m_loca_y,m_loca_z;
	float m_screen_x,m_screen_y;
	float m_tag_x,m_tag_y;
    CAMERA_INFO* m_pCamera;

	
};
#endif

⌨️ 快捷键说明

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