anmobj.h
来自「碰撞检测.,用c++ opengl 实现」· C头文件 代码 · 共 48 行
H
48 行
// 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 + =
减小字号Ctrl + -
显示快捷键?