4jcraft/Minecraft.Client/Rendering/Cube.h
2026-03-28 13:34:20 -05:00

26 lines
616 B
C++

#pragma once
#include <array>
#include "../../Minecraft.World/Util/ArrayWithLength.h"
#include "Vertex.h"
#include "Polygon.h"
class Model;
class Cube {
private:
std::array<Vertex, 8> vertices;
std::array<_Polygon, 6> polygons;
public:
const float x0, y0, z0, x1, y1, z1;
std::wstring id;
public:
Cube(ModelPart* modelPart, int xTexOffs, int yTexOffs, float x0, float y0,
float z0, int w, int h, int d, float g, int faceMask = 63,
bool bFlipPoly3UVs = false); // 4J - added faceMask
void render(Tesselator* t, float scale);
Cube* setId(const std::wstring& id);
};