Added new assets for the player Added lookups for assets Initial sound testing Re-enabled temp world drawing
44 lines
836 B
C
44 lines
836 B
C
#if !defined(LD_GAME_CORE_H_)
|
|
#define LD_GAME_CORE_H_
|
|
#include "world.h"
|
|
|
|
typedef struct G_Camera G_Camera;
|
|
struct G_Camera {
|
|
V3f x, y, z;
|
|
V3f p;
|
|
|
|
F32 fov;
|
|
F32 nearp, farp;
|
|
|
|
Mat4x4FInv proj;
|
|
};
|
|
|
|
typedef struct G_State G_State;
|
|
struct G_State {
|
|
M_Arena *arena;
|
|
|
|
D_Context draw;
|
|
G_Camera camera;
|
|
|
|
World *world;
|
|
};
|
|
|
|
function void G_ImagesLoad(G_State *game);
|
|
function void G_PipelinesLoad(G_State *game);
|
|
function void G_AudioLoad(G_State *game);
|
|
|
|
function void G_CalculateCamera(G_Camera *camera, F32 aspect);
|
|
|
|
// Assumes 'calculate' has been called
|
|
function V3f G_CameraUnprojectAt(G_Camera *camera, V2f clip, F32 z);
|
|
function V3f G_CameraUnproject(G_Camera *camera, V2f clip);
|
|
|
|
function R3f G_CameraBounds(G_Camera *camera);
|
|
|
|
#include "aabb.h"
|
|
#include "player.h"
|
|
#include "nav.h"
|
|
#include "npc.h"
|
|
|
|
#endif // LD_GAME_CORE_H_
|