mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-05 18:10:09 +03:00
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include <utility>
|
|
#include "common/Utils.hpp"
|
|
#include "client/renderer/VertexPT.hpp"
|
|
#include "client/renderer/Tesselator.hpp"
|
|
#include "GameMods.hpp"
|
|
|
|
class PolygonQuad
|
|
{
|
|
private:
|
|
void _init();
|
|
public:
|
|
PolygonQuad() { _init(); }
|
|
PolygonQuad(VertexPT* a, VertexPT* b, VertexPT* c, VertexPT* d);
|
|
PolygonQuad(VertexPT* a, VertexPT* b, VertexPT* c, VertexPT* d, float u1, float v1, float u2, float v2);
|
|
PolygonQuad(VertexPT* a, VertexPT* b, VertexPT* c, VertexPT* d, int u1i, int v1i, int u2i, int v2i);
|
|
|
|
void flipNormal();
|
|
void mirror();
|
|
void render(Tesselator& t, float scale);
|
|
|
|
#ifdef ENH_ENTITY_SHADING
|
|
void setColor(float r, float g, float b);
|
|
#endif
|
|
|
|
private:
|
|
VertexPT m_verts[4];
|
|
bool m_bFlipNormals;
|
|
|
|
#ifdef ENH_ENTITY_SHADING
|
|
int m_color;
|
|
#endif
|
|
};
|