trail_geometry.h

来自「小游戏 linux very happy」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef TRAIL_GEOMETRY_H#define TRAIL_GEOMETRY_H#include "video.h"#include "game/game.h"typedef struct {	vec3* pVertices; // each vertex consists of three floats	vec3* pNormals; // each normal consists of three float	vec2* pTexCoords; // each texcoord consists of three float	unsigned short *pIndices; // each triangle consists of three 16bit indices	unsigned char *pColors; // each vertex color consists of 4 bytes	unsigned int iSize;	unsigned int iUsed;} TrailMesh;void storeVertex(TrailMesh *pMesh, int offset, 								 segment2 *s, float t, float fFloor, float fTop,								 float fSegLength, float fTotalLength);void storeIndices(TrailMesh *pMesh, int indexOffset, int vertexOffset);void trailGeometry(Player *pPlayer, PlayerVisual *pV,									 TrailMesh *pMesh,								 int *pVertexOffset, int *pIndexOffset);void bowGeometry(Player *pPlayer, PlayerVisual *pV,								 TrailMesh *pMesh,								 int *pVertexOffset, int *pIndexOffset);void trailRender(TrailMesh *pMesh);void trailStatesNormal(Player *pPlayer, int texture);void trailStatesShadowed(void);void trailStatesRestore(void);#endif

⌨️ 快捷键说明

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