Point.h
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- #pragma once
- #include "NodeObject.h"
- class Cloud;
- /*********************************************************************
- Point类:既可作为逻辑点(摄象机目标点)又可作为带有贴图的离子物体(用于离子系统)
- 渲染速度快
- *********************************************************************/
- class Point : public NodeObject
- {
- friend class TransitionController;
- friend class ShaderController;
- friend class FileController;
- friend class SceneTree;
- friend class Cloud;
- public:
- Point(Point&pt);
- Point(TCHAR* name,TCHAR*fileName=NULL,float size=10,bool resize=false,VECTOR3 pos = VECTOR3()
- ,DWORD color=0xffffffff);
- virtual ~Point(){};
- void SetColor(DWORD color);
- void DrawObject(); //画虚拟物体(摄像机目标点)
- void PreDraw(){}; //不做任何事
- void CleanUp();
- private:
- bool resize;
- float size;
- IDirect3DVertexBuffer9* localVertex;
- LPDIRECT3DTEXTURE9 texture;// 点贴图
- };