The main interface for drawing 3D elements. More...
Public Member Functions | |
| integer | Create (integer unloadPolicy) |
| Creates a 3D scene. | |
| void | Delete (integer scene3DIndex) |
| Deletes a 3D scene. | |
| void | SetDrawMode (integer scene3DIndex, DrawMode drawMode) |
| Sets the draw mode of the 3D scene. | |
| void | SetFaceCullMode (integer scene3DIndex, FaceCull cullMode) |
| Sets the face culling mode of the 3D scene. (hardware-renderer only). | |
| void | SetFieldOfView (integer scene3DIndex, matrix fieldOfView) |
| Sets the field of view of the 3D scene. | |
| void | SetFarClippingPlane (integer scene3DIndex, matrix farClippingPlane) |
| Sets the far clipping plane of the 3D scene. | |
| void | SetNearClippingPlane (integer scene3DIndex, matrix farClippingPlane) |
| Sets the near clipping plane of the 3D scene. | |
| void | SetViewMatrix (integer scene3DIndex, matrix viewMatrix) |
| Sets the view matrix of the 3D scene. | |
| void | SetCustomProjectionMatrix (integer scene3DIndex, matrix projMatrix) |
| Sets a custom projection matrix. | |
| void | SetAmbientLighting (integer scene3DIndex, number red, number green, number blue) |
| Sets the ambient lighting of the 3D scene. | |
| void | SetDiffuseLighting (integer scene3DIndex, number red, number green, number blue) |
| Sets the diffuse lighting of the 3D scene. | |
| void | SetSpecularLighting (integer scene3DIndex, number red, number green, number blue) |
| Sets the specular lighting of the 3D scene. | |
| void | SetFogEquation (integer scene3DIndex, FogEquation fogEquation) |
| Sets the fog equation of the 3D scene. | |
| void | SetFogStart (integer scene3DIndex, number start) |
| Sets the near distance used in the linear equation of the 3D scene's fog. | |
| void | SetFogEnd (integer scene3DIndex, number end) |
| Sets the far distance used in the linear equation of the 3D scene's fog. | |
| void | SetFogDensity (integer scene3DIndex, number density) |
| Sets the density used in the exponential equation of the 3D scene's fog. | |
| void | SetFogColor (integer scene3DIndex, number red, number green, number blue) |
| Sets the fog color of the 3D scene. | |
| void | SetFogSmoothness (integer scene3DIndex, number smoothness) |
| Sets the smoothness of the 3D scene's fog. | |
| void | SetPointSize (integer scene3DIndex, decimal pointSize) |
| Sets the point size of the 3D scene. (hardware-renderer only). | |
| void | Clear (integer scene3DIndex) |
| Removes all previously drawn elements out of a 3D scene. | |
The main interface for drawing 3D elements.
| void Scene3D.Clear | ( | integer | scene3DIndex | ) |
Removes all previously drawn elements out of a 3D scene.
| scene3DIndex | The index of the 3D scene. |
| integer Scene3D.Create | ( | integer | unloadPolicy | ) |
Creates a 3D scene.
| unloadPolicy | Whether to delete the 3D scene at the end of the current Scene, or the game end. |
| void Scene3D.Delete | ( | integer | scene3DIndex | ) |
Deletes a 3D scene.
| scene3DIndex | The index of the 3D scene to delete. |
| void Scene3D.SetAmbientLighting | ( | integer | scene3DIndex, |
| number | red, | ||
| number | green, | ||
| number | blue ) |
Sets the ambient lighting of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| red | The red color value, bounded by 0.0 - 1.0. |
| green | The green color value, bounded by 0.0 - 1.0. |
| blue | The blue color value, bounded by 0.0 - 1.0. |
| void Scene3D.SetCustomProjectionMatrix | ( | integer | scene3DIndex, |
| matrix | projMatrix ) |
Sets a custom projection matrix.
| scene3DIndex | The index of the 3D scene. |
| projMatrix | The projection matrix. |
| void Scene3D.SetDiffuseLighting | ( | integer | scene3DIndex, |
| number | red, | ||
| number | green, | ||
| number | blue ) |
Sets the diffuse lighting of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| red | The red color value, bounded by 0.0 - 1.0. |
| green | The green color value, bounded by 0.0 - 1.0. |
| blue | The blue color value, bounded by 0.0 - 1.0. |
| void Scene3D.SetDrawMode | ( | integer | scene3DIndex, |
| DrawMode | drawMode ) |
Sets the draw mode of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| drawMode | The type of drawing to use for the vertices in the 3D scene. |
| void Scene3D.SetFaceCullMode | ( | integer | scene3DIndex, |
| FaceCull | cullMode ) |
Sets the face culling mode of the 3D scene. (hardware-renderer only).
| scene3DIndex | The index of the 3D scene. |
| cullMode | The type of face culling to use for the vertices in the 3D scene. |
| void Scene3D.SetFarClippingPlane | ( | integer | scene3DIndex, |
| matrix | farClippingPlane ) |
Sets the far clipping plane of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| farClippingPlane | The far clipping plane value. |
| void Scene3D.SetFieldOfView | ( | integer | scene3DIndex, |
| matrix | fieldOfView ) |
Sets the field of view of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| fieldOfView | The field of view value. |
| void Scene3D.SetFogColor | ( | integer | scene3DIndex, |
| number | red, | ||
| number | green, | ||
| number | blue ) |
Sets the fog color of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| red | The red color value, bounded by 0.0 - 1.0. |
| green | The green color value, bounded by 0.0 - 1.0. |
| blue | The blue color value, bounded by 0.0 - 1.0. |
| void Scene3D.SetFogDensity | ( | integer | scene3DIndex, |
| number | density ) |
Sets the density used in the exponential equation of the 3D scene's fog.
| scene3DIndex | The index of the 3D scene. |
| density | The fog density. |
| void Scene3D.SetFogEnd | ( | integer | scene3DIndex, |
| number | end ) |
Sets the far distance used in the linear equation of the 3D scene's fog.
| scene3DIndex | The index of the 3D scene. |
| end | The end value. |
| void Scene3D.SetFogEquation | ( | integer | scene3DIndex, |
| FogEquation | fogEquation ) |
Sets the fog equation of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| fogEquation | The fog equation to use. |
| void Scene3D.SetFogSmoothness | ( | integer | scene3DIndex, |
| number | smoothness ) |
Sets the smoothness of the 3D scene's fog.
| scene3DIndex | The index of the 3D scene. |
| smoothness | The smoothness, bounded by 0.0 - 1.0. |
| void Scene3D.SetFogStart | ( | integer | scene3DIndex, |
| number | start ) |
Sets the near distance used in the linear equation of the 3D scene's fog.
| scene3DIndex | The index of the 3D scene. |
| start | The start value. |
| void Scene3D.SetNearClippingPlane | ( | integer | scene3DIndex, |
| matrix | farClippingPlane ) |
Sets the near clipping plane of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| farClippingPlane | The near clipping plane value. |
| void Scene3D.SetPointSize | ( | integer | scene3DIndex, |
| decimal | pointSize ) |
Sets the point size of the 3D scene. (hardware-renderer only).
| scene3DIndex | The index of the 3D scene. |
| pointSize | The point size. |
| void Scene3D.SetSpecularLighting | ( | integer | scene3DIndex, |
| number | red, | ||
| number | green, | ||
| number | blue ) |
Sets the specular lighting of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| red | The red color value, bounded by 0.0 - 1.0. |
| green | The green color value, bounded by 0.0 - 1.0. |
| blue | The blue color value, bounded by 0.0 - 1.0. |
| void Scene3D.SetViewMatrix | ( | integer | scene3DIndex, |
| matrix | viewMatrix ) |
Sets the view matrix of the 3D scene.
| scene3DIndex | The index of the 3D scene. |
| viewMatrix | The view matrix. |