forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
29
src/client/model/geom/Polygon.h
Executable file
29
src/client/model/geom/Polygon.h
Executable file
@@ -0,0 +1,29 @@
|
||||
#ifndef NET_MINECRAFT_CLIENT_MODEL__Polygon_H__
|
||||
#define NET_MINECRAFT_CLIENT_MODEL__Polygon_H__
|
||||
|
||||
//package net.minecraft.client.model;
|
||||
#include "Vertex.h"
|
||||
|
||||
class Tesselator;
|
||||
|
||||
class PolygonQuad
|
||||
{
|
||||
public:
|
||||
PolygonQuad() {}
|
||||
PolygonQuad(VertexPT*,VertexPT*,VertexPT*,VertexPT*);
|
||||
PolygonQuad(VertexPT*,VertexPT*,VertexPT*,VertexPT*, int u0, int v0, int u1, int v1);
|
||||
PolygonQuad(VertexPT*,VertexPT*,VertexPT*,VertexPT*, float u0, float v0, float u1, float v1);
|
||||
|
||||
void mirror();
|
||||
void render(Tesselator& t, float scale, int vboId = -1);
|
||||
PolygonQuad* flipNormal();
|
||||
|
||||
VertexPT vertices[4];
|
||||
//int vertexCount;
|
||||
|
||||
private:
|
||||
static const int VERTEX_COUNT = 4;
|
||||
bool _flipNormal;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_MODEL__Polygon_H__*/
|
||||
Reference in New Issue
Block a user