nodesnim/nodes3d/geometry_instance

    Dark Mode
Search:
Group by:

Types

GeometryInstanceObj = object of Node3DObj
  geometry*: GeometryType
  sides*, rings*: int
  color*: ColorRef
  radius*: float
GeometryInstanceRef = ref GeometryInstanceObj

Procs

proc GeometryInstance(name: string = "GeometryInstance";
                      geometry: GeometryType = GEOMETRY_CUBE): GeometryInstanceRef {...}{.
    raises: [], tags: [].}

Creates a new GeometryInstance object.

Arguments:

  • name is a node name.

Example:

var node = GeometryInstance("GeometryInstance")

Methods

method draw(self: GeometryInstanceRef; w, h: GLfloat) {...}{.raises: [GLerror],
    tags: [].}
This method uses in the window.nim.