CGLDEF.H
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- #ifndef CGLDEF_H
- #define CGLDEF_H
- #define PI 3.1415926f
- typedef unsigned long DWORD;
- enum OBJ_TYPE{
- OBJ_LIGHT,
- OBJ_MESHOBJECT,
- OBJ_CAMERA,
- OBJ_POINT,
- OBJ_BILLBOARD,
- OBJ_TEXT3D,
- OBJ_TERRAIN,
- OBJ_PARTICAL,
- OBJ_SPRITE,
- OBJ_CLOUD,
- OBJ_EMIT,
- OBJ_FORCE,
- OBJ_RESISTANCE,
- OBJ_PFORCE,
- OBJ_PRESISTANCE
- };
- enum LIG_TYPE{
- LIG_POINT=1,
- LIG_SPOT=2,
- LIG_DIRECTIONAL=3
- };
- //无贴图只有颜色的顶点
- struct COLOREDVERTEX
- {
- float x,y,z;
- DWORD color;
- };
- //带贴图的顶点
- struct TEXTUREDVERTEX
- {
- float x,y,z;
- DWORD color;
- float tu,tv;
- };
- //经过坐标转换带贴图的顶点
- struct SCREENVERTEX
- {
- float x,y,z,rhw;
- DWORD color;
- float tu,tv;
- };
- //文字对齐方式
- #define AL_TOP 0x00000000
- #define AL_LEFT 0x00000000
- #define AL_CENTER 0x00000001
- #define AL_RIGHT 0x00000002
- #define AL_VCENTER 0x00000004
- #define AL_BOTTOM 0x00000008
- #define AL_WORDBREAK 0x00000010
- #define AL_NOCLIP 0x00000100
- enum PAR_FILLMODE{
- FILL_SOLID=3,
- FILL_WIREFRAME=2,
- FILL_POINT=1
- };
- enum PAR_SHADEMODE{
- SHADE_FLAT=1,
- SHADE_GOURAUD=2
- };
- #endif