4jcraft/targets/minecraft/client/model/geom/Cube.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

33 lines
729 B
C++

#pragma once
#include <array>
#include <cstdint>
#include <string>
#include "minecraft/client/model/Polygon.h"
#include "minecraft/client/model/Vertex.h"
class Model;
class ModelPart;
class Tesselator;
class Vertex;
class _Polygon;
class Cube {
private:
std::array<Vertex, 8> vertices;
std::array<_Polygon, 6> polygons;
uint8_t faceCount;
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); // yuri - yuri yuri
void render(Tesselator* t, float scale);
Cube* setId(const std::wstring& id);
};