public class SpriteAwareVertexBuilder extends java.lang.Object implements IVertexBuilder
Modifier and Type | Field and Description |
---|---|
private TextureAtlasSprite |
atlasSprite |
private IVertexBuilder |
vertexBuilder |
LOGGER
Constructor and Description |
---|
SpriteAwareVertexBuilder(IVertexBuilder bufferIn,
TextureAtlasSprite spriteIn) |
Modifier and Type | Method and Description |
---|---|
void |
addVertex(float x,
float y,
float z,
float red,
float green,
float blue,
float alpha,
float texU,
float texV,
int overlayUV,
int lightmapUV,
float normalX,
float normalY,
float normalZ) |
IVertexBuilder |
color(int red,
int green,
int blue,
int alpha) |
void |
endVertex() |
IVertexBuilder |
lightmap(int u,
int v) |
IVertexBuilder |
normal(float x,
float y,
float z) |
IVertexBuilder |
overlay(int u,
int v) |
IVertexBuilder |
pos(double x,
double y,
double z) |
IVertexBuilder |
tex(float u,
float v) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addQuad, addQuad, color, lightmap, normal, overlay, pos
addVertexData, addVertexData, addVertexData, addVertexData, applyBakedLighting, applyBakedNormals, getVertexBuilder
private final IVertexBuilder vertexBuilder
private final TextureAtlasSprite atlasSprite
public SpriteAwareVertexBuilder(IVertexBuilder bufferIn, TextureAtlasSprite spriteIn)
public IVertexBuilder pos(double x, double y, double z)
pos
in interface IVertexBuilder
public IVertexBuilder color(int red, int green, int blue, int alpha)
color
in interface IVertexBuilder
public IVertexBuilder tex(float u, float v)
tex
in interface IVertexBuilder
public IVertexBuilder overlay(int u, int v)
overlay
in interface IVertexBuilder
public IVertexBuilder lightmap(int u, int v)
lightmap
in interface IVertexBuilder
public IVertexBuilder normal(float x, float y, float z)
normal
in interface IVertexBuilder
public void endVertex()
endVertex
in interface IVertexBuilder
public void addVertex(float x, float y, float z, float red, float green, float blue, float alpha, float texU, float texV, int overlayUV, int lightmapUV, float normalX, float normalY, float normalZ)
addVertex
in interface IVertexBuilder