Miscellany
public c v1 · immutable#include "glheaders.h"#ifndef _PLAYER_H#define _PLAYER_Hstruct player_t{ GLfloat x, y, z; GLfloat lx, ly, lz; GLfloat matrix[16]; GLfloat velocity[3];};struct player_t player;void player_init(GLfloat x, GLfloat y, GLfloat z, GLfloat lx, GLfloat ly, GLfloat lz);void player_update();void player_set_velocity(float xs, float ys, float zs);void player_rotate(GLfloat xangle, GLfloat yangle, GLfloat zangle);#endif