the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "..\Minecraft.World\FloatBuffer.h"
3#include "..\Minecraft.World\IntBuffer.h"
4
5
6class TilePos;
7class Vec3;
8class Player;
9class Mob;
10
11class Camera
12{
13public:
14 static float xPlayerOffs;
15 static float yPlayerOffs;
16 static float zPlayerOffs;
17
18private:
19// static IntBuffer *viewport;
20 static FloatBuffer *modelview;
21 static FloatBuffer *projection;
22// static FloatBuffer *position;
23
24public:
25 static float xa, ya, za, xa2, za2;
26
27 static void prepare(shared_ptr<Player> player, bool mirror);
28
29 static TilePos *getCameraTilePos(shared_ptr<LivingEntity> player, double alpha);
30 static Vec3 *getCameraPos(shared_ptr<LivingEntity> player, double alpha);
31 static int getBlockAt(Level *level, shared_ptr<LivingEntity> player, float alpha);
32};