public static class Geometry.Builder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.LinkedHashMap<java.lang.Integer,java.lang.Integer> |
attributes |
protected int |
drawType |
protected int |
elements |
protected VertexBuffer |
vbo |
| Constructor and Description |
|---|
Builder(VertexBuffer vbo,
int elements) |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
build() |
protected VertexArray |
buildVertexArray() |
Geometry.Builder |
withAttribute(Attribute attribute) |
Geometry.Builder |
withAttribute(Attribute attribute,
int size) |
Geometry.Builder |
withAttribute(int attribute) |
Geometry.Builder |
withAttribute(int attribute,
int size) |
Geometry.Builder |
withDrawType(int drawType) |
protected final VertexBuffer vbo
protected int drawType
protected final int elements
protected final java.util.LinkedHashMap<java.lang.Integer,java.lang.Integer> attributes
public Builder(VertexBuffer vbo, int elements)
public Geometry.Builder withDrawType(int drawType)
public Geometry.Builder withAttribute(Attribute attribute, int size)
public Geometry.Builder withAttribute(Attribute attribute)
public Geometry.Builder withAttribute(int attribute, int size)
public Geometry.Builder withAttribute(int attribute)
protected VertexArray buildVertexArray()
public Geometry build()
Copyright © 2013-2014. All Rights Reserved.