public final class VertexBuffer extends Object
Modifier and Type | Field and Description |
---|---|
protected byte |
a |
protected byte |
b |
protected static int |
BYTES_PER_VERT |
protected int |
capacity |
protected byte[] |
colorArray |
protected float[] |
coordArray |
protected static int |
FLOATS_PER_TC |
protected static int |
FLOATS_PER_VC |
protected static int |
FLOATS_PER_VERT |
protected byte |
g |
protected int |
index |
protected byte |
r |
protected static int |
TC1OFF |
protected static int |
TC2OFF |
protected static int |
VCOFF |
protected static int |
VERTS_PER_QUAD |
Constructor and Description |
---|
VertexBuffer(BaseContext owner,
int maxQuads) |
Modifier and Type | Method and Description |
---|---|
void |
addMappedPgram(float dx11,
float dy11,
float dx21,
float dy21,
float dx12,
float dy12,
float dx22,
float dy22,
float ux11,
float uy11,
float ux21,
float uy21,
float ux12,
float uy12,
float ux22,
float uy22,
float vx,
float vy) |
void |
addMappedPgram(float dx11,
float dy11,
float dx21,
float dy21,
float dx12,
float dy12,
float dx22,
float dy22,
float ux11,
float uy11,
float ux21,
float uy21,
float ux12,
float uy12,
float ux22,
float uy22,
float vx11,
float vy11,
float vx22,
float vy22,
AffineBase tx) |
void |
addMappedPgram(float dx11,
float dy11,
float dx21,
float dy21,
float dx12,
float dy12,
float dx22,
float dy22,
float ux11,
float uy11,
float ux21,
float uy21,
float ux12,
float uy12,
float ux22,
float uy22,
float vx11,
float vy11,
float vx21,
float vy21,
float vx12,
float vy12,
float vx22,
float vy22) |
void |
addMappedQuad(float dx1,
float dy1,
float dx2,
float dy2,
float tx11,
float ty11,
float tx21,
float ty21,
float tx12,
float ty12,
float tx22,
float ty22) |
void |
addMappedQuad(float dx1,
float dy1,
float dx2,
float dy2,
float ux11,
float uy11,
float ux21,
float uy21,
float ux12,
float uy12,
float ux22,
float uy22,
float vx11,
float vy11,
float vx21,
float vy21,
float vx12,
float vy12,
float vx22,
float vy22) |
void |
addQuad(float dx1,
float dy1,
float dx2,
float dy2) |
void |
addQuad(float dx1,
float dy1,
float dx2,
float dy2,
float tx1,
float ty1,
float tx2,
float ty2) |
void |
addQuad(float dx1,
float dy1,
float dx2,
float dy2,
float tx1,
float ty1,
float tx2,
float ty2,
AffineBase tx) |
void |
addQuad(float dx1,
float dy1,
float dx2,
float dy2,
float t1x1,
float t1y1,
float t1x2,
float t1y2,
float t2x1,
float t2y1,
float t2x2,
float t2y2) |
void |
addQuadVO(float topopacity,
float botopacity,
float dx1,
float dy1,
float dx2,
float dy2,
float tx1,
float ty1,
float tx2,
float ty2) |
void |
addSuperQuad(float dx1,
float dy1,
float dx2,
float dy2,
float tx1,
float ty1,
float tx2,
float ty2,
boolean isText) |
void |
addVert(float x,
float y) |
void |
addVert(float x,
float y,
float tx,
float ty) |
void |
addVert(float x,
float y,
float t0x,
float t0y,
float t1x,
float t1y) |
void |
flush()
Flushes (renders) all pending vertices (triangles) in the buffer to the
owner BaseContext.
|
void |
rewind() |
void |
setPerVertexColor(Color c,
float extraAlpha) |
void |
setPerVertexColor(float extraAlpha) |
void |
updateVertexColors(int numVerts) |
protected static final int VERTS_PER_QUAD
protected static final int FLOATS_PER_TC
protected static final int FLOATS_PER_VC
protected static final int FLOATS_PER_VERT
protected static final int BYTES_PER_VERT
protected static final int VCOFF
protected static final int TC1OFF
protected static final int TC2OFF
protected int capacity
protected int index
protected byte r
protected byte g
protected byte b
protected byte a
protected byte[] colorArray
protected float[] coordArray
public VertexBuffer(BaseContext owner, int maxQuads)
public final void setPerVertexColor(Color c, float extraAlpha)
public final void setPerVertexColor(float extraAlpha)
public final void updateVertexColors(int numVerts)
public final void flush()
public final void rewind()
public final void addVert(float x, float y)
public final void addVert(float x, float y, float tx, float ty)
public final void addVert(float x, float y, float t0x, float t0y, float t1x, float t1y)
public final void addQuad(float dx1, float dy1, float dx2, float dy2)
public final void addQuad(float dx1, float dy1, float dx2, float dy2, float t1x1, float t1y1, float t1x2, float t1y2, float t2x1, float t2y1, float t2x2, float t2y2)
public final void addMappedQuad(float dx1, float dy1, float dx2, float dy2, float tx11, float ty11, float tx21, float ty21, float tx12, float ty12, float tx22, float ty22)
public final void addMappedQuad(float dx1, float dy1, float dx2, float dy2, float ux11, float uy11, float ux21, float uy21, float ux12, float uy12, float ux22, float uy22, float vx11, float vy11, float vx21, float vy21, float vx12, float vy12, float vx22, float vy22)
public final void addQuad(float dx1, float dy1, float dx2, float dy2, float tx1, float ty1, float tx2, float ty2, AffineBase tx)
public final void addSuperQuad(float dx1, float dy1, float dx2, float dy2, float tx1, float ty1, float tx2, float ty2, boolean isText)
public final void addQuad(float dx1, float dy1, float dx2, float dy2, float tx1, float ty1, float tx2, float ty2)
public final void addQuadVO(float topopacity, float botopacity, float dx1, float dy1, float dx2, float dy2, float tx1, float ty1, float tx2, float ty2)
public final void addMappedPgram(float dx11, float dy11, float dx21, float dy21, float dx12, float dy12, float dx22, float dy22, float ux11, float uy11, float ux21, float uy21, float ux12, float uy12, float ux22, float uy22, float vx11, float vy11, float vx22, float vy22, AffineBase tx)
public final void addMappedPgram(float dx11, float dy11, float dx21, float dy21, float dx12, float dy12, float dx22, float dy22, float ux11, float uy11, float ux21, float uy21, float ux12, float uy12, float ux22, float uy22, float vx, float vy)
public final void addMappedPgram(float dx11, float dy11, float dx21, float dy21, float dx12, float dy12, float dx22, float dy22, float ux11, float uy11, float ux21, float uy21, float ux12, float uy12, float ux22, float uy22, float vx11, float vy11, float vx21, float vy21, float vx12, float vy12, float vx22, float vy22)
Copyright © 2020. All rights reserved.