org.rajawali3d.primitives

Package org.rajawali3d.primitives

Types

Cube

open class Cube : Object3D
open class Cube : Object3D

A cube 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.

Cylinder

open class Cylinder : Object3D
open class Cylinder : Object3D

A cylinder 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.

Line3D

open class Line3D : Object3D
open class Line3D : Object3D

The Line3D takes a list of Vector3 points, thickness and a color.

NPrism

open class NPrism : Object3D
open class NPrism : Object3D

Basic primitive allowing for the creation of an n-sided regular polygonal cone, as a frustum or to a point with a specified slant angle or aspect ratio. The cone is created about the positive y axis with the vanishing point at (0, height, 0). NOTE: This still needs a lot of work. Texture coordinates are not correct.

Plane

open class Plane : Object3D
open class Plane : Object3D

A plane 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.

PointShell

open class PointShell : Object3D
open class PointShell : Object3D

PointSprite

open class PointSprite : Plane
open class PointSprite : Plane

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.

ScreenQuad

open class ScreenQuad : Object3D
open class ScreenQuad : Object3D

A screen quad is a plane that covers the whole screen. When used in conjunction with Camera2D you'll get a pixel perfect screen filling plane. This is perfect for things like image slide shows or fragment shader only apps and live wallpapers. When creating solid color plane both createTextureCoordinates and createVertexColorBuffer can be set to false.

Sphere

open class Sphere : Object3D
open class Sphere : Object3D

A sphere 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.

Torus

open class Torus : Object3D
open class Torus : Object3D

A torus primitive (donut shape). The constructor takes two boolean arguments that indicate whether certain buffers should be created or not. Not creating these buffers can reduce memory footprint.