~zjm/Moon3D

ref: 0e81b821a0782674dbed435a58ad682e7aef0282 Moon3D/src/player.h -rw-r--r-- 411 bytes
0e81b821Zack Michener wrap rendering objects in a RenderingContext struct 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "3d.h"

typedef struct Player {
	Camera camera;
} Player;

Player *NewPlayer(Vertex position);
void PlayerTurnLeft(Player *player, double angle);
void PlayerTurnRight(Player *player, double angle);
void PlayerMoveForward(Player *player, double amount);
void PlayerMoveBackward(Player *player, double amount);
Vector PlayerDirection(Player *player);
Vertex PlayerPosition(Player *player);