| Package | Description |
|---|---|
| com.bonzaiengine.drawing | |
| com.bonzaiengine.renderer |
| Modifier and Type | Method and Description |
|---|---|
void |
LineStrip.fill(Batch batch,
Mat4x4 matrix) |
void |
Lines.fill(Batch batch,
Mat4x4 matrix) |
void |
IShape.fill(Batch batch,
Mat4x4 matrix) |
void |
Arc.fill(Batch batch,
Mat4x4 matrix) |
| Modifier and Type | Method and Description |
|---|---|
static Batch |
Shapes.createAxis(Batch dstBatchOrNull,
float length)
Draw an axis system made of 3 lines :
red line: x axis green line: y axis blue line: z axis |
static Batch |
Shapes.createBoundingVolume(Batch dstBatchOrNull,
IVolume<?> bv,
boolean line,
int subdivisions,
Lights<?> lights) |
static Batch |
Shapes.createBox(Batch dstBatchOrNull,
Box bb,
boolean fill,
Vec3 uvArea,
Lights<?> lights)
Draw a box
|
static Batch |
Shapes.createCapsule(Batch dstBatchOrNull,
Capsule capsule,
int slices,
boolean fill,
boolean hasUv,
Lights<?> lights)
Draw a capsule
|
static Batch |
Shapes.createCircle(Batch dstBatchOrNull,
float radius,
int slices,
boolean fill,
int dir,
Vec3 center,
boolean hasUv,
Lights<?> lights)
Draw a circle wit axis along y
|
static Batch |
Shapes.createCylinder(Batch dstBatchOrNull,
Cylinder cylinder,
int slices,
boolean fill,
boolean closed,
boolean hasUv,
Lights<?> lights) |
static Batch |
Shapes.createCylinder(Batch dstBatchOrNull,
Vec3 position,
float baseRadius,
float topRadius,
float height,
int slices,
boolean fill,
boolean closed,
boolean hasUv,
Lights<?> lights)
Draw a cylinder with axis along Y
=========================================================================
Copyright (c) 2002-2008 LWJGL Project
All rights reserved.
|
static Batch |
Shapes.createEllipse(Batch dstBatchOrNull,
float radiusX,
float radiusY,
int slices,
boolean fill,
Vec3 center,
boolean hasUv,
Lights<?> lights)
Draw an Ellipse along z plane
Num indices: fill ?
|
static Batch |
Shapes.createFrustum(Mat4x4 proj,
Mat4x4 view) |
static Batch |
Shapes.createGridY(Batch dstBatchOrNull,
float sizeX,
float sizeZ,
int numX,
int numZ,
float uRepeat,
float vRepeat,
Vec3 position,
boolean fill)
Num indices: (numX * numZ * 4) + (numX * 2) + (numZ * 2)
Num vertices: (numX + 1) * (numZ + 1) |
static Batch |
Shapes.createLine(Batch dstBatchOrNull,
Vec3 pos1,
Vec3 pos2) |
static Batch |
Shapes.createPoint(Batch dstBatchOrNull,
Vec3 pos) |
static Batch |
Shapes.createQuadY(Batch dstBatchOrNull,
float sizeX,
float sizeZ,
float uRepeat,
float vRepeat,
Vec3 position,
boolean hasUv,
Lights<?> lights)
Draw a Rectangle on the z plane at the (x, y, z) position
Texture is repeted on the rectangle nbTextRepetition times. |
static Batch |
Shapes.createQuadYLine(Batch dstBatchOrNull,
float sizeX,
float sizeZ,
Vec3 position)
Num indices: 5
Num vertices: 4 |
static Batch |
Shapes.createQuadZ(Batch dstBatchOrNull,
float sizeX,
float sizeY,
float uRepeat,
float vRepeat,
Vec3 position,
boolean hasUv,
Lights<?> lights)
Draw a Rectangle on the z plane at the (x, y, z) position
Texture is repeated on the rectangle nbTextRepetition times. |
static Batch |
Shapes.createQuadZLine(Batch dstBatchOrNull,
float sizeX,
float sizeY,
Vec3 position)
Num indices: 5
Num vertices: 4 |
static Batch |
Shapes.createSphere(Batch dstBatchOrNull,
Sphere sphere,
int slices,
int stacks,
boolean fill,
boolean hasUv,
Lights<?> lights)
Draw a sphere with texture coordinates and normals
|
Batch |
Renderer.getBatch() |
static Batch |
Batch.newPersistent()
Persistent
Batch allocating persistent memory, must be destroyed with destroy(IGL) |
static Batch |
Batch.newVolatile()
Volatile
Batch allocating volatile memory in BufferPool |
| Modifier and Type | Method and Description |
|---|---|
static Batch |
Shapes.createAxis(Batch dstBatchOrNull,
float length)
Draw an axis system made of 3 lines :
red line: x axis green line: y axis blue line: z axis |
static Batch |
Shapes.createBoundingVolume(Batch dstBatchOrNull,
IVolume<?> bv,
boolean line,
int subdivisions,
Lights<?> lights) |
static Batch |
Shapes.createBox(Batch dstBatchOrNull,
Box bb,
boolean fill,
Vec3 uvArea,
Lights<?> lights)
Draw a box
|
static Batch |
Shapes.createCapsule(Batch dstBatchOrNull,
Capsule capsule,
int slices,
boolean fill,
boolean hasUv,
Lights<?> lights)
Draw a capsule
|
static Batch |
Shapes.createCircle(Batch dstBatchOrNull,
float radius,
int slices,
boolean fill,
int dir,
Vec3 center,
boolean hasUv,
Lights<?> lights)
Draw a circle wit axis along y
|
static Batch |
Shapes.createCylinder(Batch dstBatchOrNull,
Cylinder cylinder,
int slices,
boolean fill,
boolean closed,
boolean hasUv,
Lights<?> lights) |
static Batch |
Shapes.createCylinder(Batch dstBatchOrNull,
Vec3 position,
float baseRadius,
float topRadius,
float height,
int slices,
boolean fill,
boolean closed,
boolean hasUv,
Lights<?> lights)
Draw a cylinder with axis along Y
=========================================================================
Copyright (c) 2002-2008 LWJGL Project
All rights reserved.
|
static Batch |
Shapes.createEllipse(Batch dstBatchOrNull,
float radiusX,
float radiusY,
int slices,
boolean fill,
Vec3 center,
boolean hasUv,
Lights<?> lights)
Draw an Ellipse along z plane
Num indices: fill ?
|
static Batch |
Shapes.createGridY(Batch dstBatchOrNull,
float sizeX,
float sizeZ,
int numX,
int numZ,
float uRepeat,
float vRepeat,
Vec3 position,
boolean fill)
Num indices: (numX * numZ * 4) + (numX * 2) + (numZ * 2)
Num vertices: (numX + 1) * (numZ + 1) |
static Batch |
Shapes.createLine(Batch dstBatchOrNull,
Vec3 pos1,
Vec3 pos2) |
static Batch |
Shapes.createPoint(Batch dstBatchOrNull,
Vec3 pos) |
static Batch |
Shapes.createQuadY(Batch dstBatchOrNull,
float sizeX,
float sizeZ,
float uRepeat,
float vRepeat,
Vec3 position,
boolean hasUv,
Lights<?> lights)
Draw a Rectangle on the z plane at the (x, y, z) position
Texture is repeted on the rectangle nbTextRepetition times. |
static Batch |
Shapes.createQuadYLine(Batch dstBatchOrNull,
float sizeX,
float sizeZ,
Vec3 position)
Num indices: 5
Num vertices: 4 |
static Batch |
Shapes.createQuadZ(Batch dstBatchOrNull,
float sizeX,
float sizeY,
float uRepeat,
float vRepeat,
Vec3 position,
boolean hasUv,
Lights<?> lights)
Draw a Rectangle on the z plane at the (x, y, z) position
Texture is repeated on the rectangle nbTextRepetition times. |
static Batch |
Shapes.createQuadZLine(Batch dstBatchOrNull,
float sizeX,
float sizeY,
Vec3 position)
Num indices: 5
Num vertices: 4 |
static Batch |
Shapes.createSphere(Batch dstBatchOrNull,
Sphere sphere,
int slices,
int stacks,
boolean fill,
boolean hasUv,
Lights<?> lights)
Draw a sphere with texture coordinates and normals
|
static void |
Shapes.putBox(Batch batch,
Box bb,
boolean fill,
Vec3 uvArea,
byte[] color,
Lights<?> lights) |
static void |
Shapes.putCircle(Batch batch,
float radius,
int slices,
boolean fill,
int dir,
Vec3 center) |
static void |
Shapes.putCylinder(Batch batch,
Vec3 position,
float baseRadius,
float topRadius,
float height,
int slices,
boolean fill,
boolean closed) |
static void |
Shapes.putLine(Batch batch,
Vec3 pos1,
Vec3 pos2,
byte[] color) |
static void |
Shapes.putSphere(Batch batch,
Vec3 position,
float radius,
int slices,
int stacks,
boolean fill,
boolean half,
boolean halfBot,
byte[] color) |
void |
Renderer.render(Batch batch,
RenderOptions renderOptions,
Transform t,
Shader shader,
int numHwInstances) |
void |
Renderer.render(Batch batch,
Transform t,
boolean diffuseTexture,
boolean alphaTest,
Lights<?> lights,
int numHwInstances) |
void |
Renderer.render(Batch batch,
Transform t,
IMaterial material,
int numHwInstances) |
void |
Renderer.render(Batch batch,
Transform t,
Shader shader,
int numHwInstances) |
static void |
Shapes.renderOnce(IGL gl,
Batch batch,
Color4 color,
Lights<?> lights) |
static void |
Shapes.renderOnce(IGL gl,
Batch batch,
Lights<?> lights) |
static void |
Shapes.renderOnce(Renderer renderer,
Batch batch) |
static void |
Shapes.renderOnce(Renderer renderer,
Batch batch,
Lights<?> lights) |
static void |
Shapes.reserveBox(Batch batch,
boolean fill,
Vec3 uvArea,
Lights<?> lights) |
static void |
Shapes.reserveCircle(Batch batch,
int slices,
boolean fill) |
static void |
Shapes.reserveCylinder(Batch batch,
int slices,
boolean fill,
boolean closed) |
static void |
Shapes.reserveLine(Batch batch) |
static void |
Shapes.reserveSphere(Batch batch,
int slices,
int stacks,
boolean fill,
boolean half) |
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com