org.rajawali3d.primitives / RectangularPrism

RectangularPrism

open class RectangularPrism : Object3D
open class RectangularPrism : Object3D

A rectangular prism primitive. The constructor takes two boolean arguments that indicate whether certain buffers should be created or not. Not creating these buffers can reduce memory footprint.

When creating solid color prism both createTextureCoordinates and createVertexColorBuffer can be set to false.

When creating a textured cube createTextureCoordinates should be set to true and createVertexColorBuffer should be set to false.

When creating a cube without a texture but with different colors per texture createTextureCoordinates should be set to false and createVertexColorBuffer should be set to true.

Author
dennis.ippel