Configuration reference
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
All properties belong to com.irurueta.android.gl.cube.CubeTextureView. Every setter requests a new frame.
"Needs surface" means that the property can only be set once the OpenGL surface exists (see
Waiting for the surface); otherwise IllegalStateException is thrown.
Properties
| Property | Type | Default | Needs surface | Description |
|---|---|---|---|---|
|
|
|
No |
Notified when the OpenGL surface is created or resized. |
|
|
|
No |
Length of the cube edges. Must not be negative. |
|
|
|
No |
Position of the cube center in world coordinates. |
|
|
Identity |
No |
Orientation of the cube. |
|
|
|
No |
Color used to clear the scene. |
|
|
|
No |
Diffuse lighting color. Only used when normals are available. |
|
|
|
Yes |
Near clipping plane. |
|
|
|
Yes |
Far clipping plane. |
|
|
Default camera for the surface size |
Yes |
Camera used to render the scene (y axis upwards). |
|
|
- |
Yes |
Intrinsic parameters of |
|
|
- |
Yes |
Center of |
|
|
- |
Yes |
Rotation of |
|
|
|
Yes |
Display orientation used to compute the view camera. |
|
|
|
Yes |
Camera expressed in Android view coordinates (y axis downwards). Requires a known orientation. |
|
- |
- |
Yes |
Individual parameters of |
Methods
| Method | Description |
|---|---|
|
Sets both clipping planes. Needs surface. |
|
Sets both clipping planes and the camera at once. Needs surface. May throw |
|
Inherited from |
Constants
Defined in the companion object of com.irurueta.android.gl.cube.CubeRenderer:
| Constant | Value | Description |
|---|---|---|
|
|
Default cube size. |
|
|
Default z coordinate of the cube center. |
|
|
Default near clipping plane. |
|
|
Default far clipping plane. |
|
|
Default clear color. |