public class BatchShapeBuilder extends java.lang.Object implements IShapeBuilder<Batch>, IShapeCuller
| Constructor and Description |
|---|
BatchShapeBuilder(Batch batch,
int numUv,
boolean hasNrm,
boolean hasClr,
Frustum frustum) |
| Modifier and Type | Method and Description |
|---|---|
Batch |
build() |
boolean |
isCulled(IVolume<?> volume) |
boolean |
isHasUv() |
void |
line(int i0,
int i1) |
int |
offset(Batch.PolygonType polygonType) |
void |
point(int i0) |
void |
pop() |
void |
push(Mat4x4 matrix) |
void |
quad(int i0,
int i1,
int i2,
int i3) |
void |
reserve(int numVertices,
int numIndices,
Batch.PolygonType polygonType) |
void |
triangle(int i0,
int i1,
int i2) |
void |
vertex(Vec3 position,
float[] texCoord,
Vec3 normal,
Color4b color) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCuller, isHasClr, isHasNrmpublic void reserve(int numVertices,
int numIndices,
Batch.PolygonType polygonType)
reserve in interface IShapeBuilder<Batch>public void push(Mat4x4 matrix)
push in interface IShapeBuilder<Batch>push in interface IShapeCullerpublic void pop()
pop in interface IShapeBuilder<Batch>pop in interface IShapeCullerpublic boolean isCulled(IVolume<?> volume)
isCulled in interface IShapeCullerpublic int offset(Batch.PolygonType polygonType)
offset in interface IShapeBuilder<Batch>public void vertex(Vec3 position, float[] texCoord, Vec3 normal, Color4b color)
vertex in interface IShapeBuilder<Batch>public void point(int i0)
point in interface IShapeBuilder<Batch>public void line(int i0,
int i1)
line in interface IShapeBuilder<Batch>public void triangle(int i0,
int i1,
int i2)
triangle in interface IShapeBuilder<Batch>public void quad(int i0,
int i1,
int i2,
int i3)
quad in interface IShapeBuilder<Batch>public Batch build()
build in interface IShapeBuilder<Batch>public boolean isHasUv()
isHasUv in interface IShapeBuilder<Batch>Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com