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

📄 anmobj.h

📁 碰撞检测.,用c++ opengl 实现
💻 H
字号:
// anmobj.h: interface for the anmobj class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ANMOBJ_H__46249C44_7C55_4407_AAE7_790A324FB6DE__INCLUDED_)
#define AFX_ANMOBJ_H__46249C44_7C55_4407_AAE7_790A324FB6DE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//////////////////////////////////////////
struct animation
{	char name[16];
	int	 start;		
	int	 end;		
};

struct MAN	//人动作结构
 {	float qd[3];		//起点
	float zd[3];		//终点
	int dz;				//动作
	int death;			//死亡帧
 }; 
////////////////////////////////////////////
class anmobj //:public baiscobj
{
public:
	anmobj();
	virtual ~anmobj();
public:
	md2_model_t*	model[2];	//模型
	Texture*		texture[2]; //贴图
	animation*		anim[2];	//动作数组
	int				size[2];
	float			frame[RNSHU];
	MAN				man[RNSHU];
	int				counter[RNSHU];
	void			getobj(CString na);
	animation*		animations (md2_model_t* model,int p);
	void			setman(int i,float y);//显示人
///////////////////////////////////////////////////////////////////
	bool			manmove(int i);//对象的移动
	int				re[RNSHU];
///////////////////////////////////////////////////////////////////////
};

#endif // !defined(AFX_ANMOBJ_H__46249C44_7C55_4407_AAE7_790A324FB6DE__INCLUDED_)

⌨️ 快捷键说明

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