|
| static void | addObjectToScene (Scene &scene, int materialIndex, int vertexCount, const float *positions, const float *normals, const float *texCoords, int indexCount, const unsigned int *indices, const Transformation &transformation=Transformation(), const Animation &animation=Animation()) |
| | Adds geometry as an object to a scene. More...
|
| |
| static void | addObjectToScene (Scene &scene, int materialIndex, const QVector< float > &positions, const QVector< float > &normals, const QVector< float > &texCoords, const QVector< unsigned int > &indices, const Transformation &transformation=Transformation(), const Animation &animation=Animation()) |
| | Adds a geometry as an object to a scene. Convenient alternative to the above function; it does the same. More...
|
| |
| static void | addQuadToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40) |
| | Adds a quad object to a scene. The initial quad has the corners (-1, -1, 0), (+1, -1, 0), (+1, +1, 0), (-1, +1, 0). The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addCubeToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40) |
| | Adds a cube object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addDiskToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), float innerRadius=0.2f, int slices=40) |
| | Adds a disk object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addSphereToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40, int stacks=20) |
| | Adds a sphere object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addCylinderToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40) |
| | Adds a cylinder object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addConeToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), int slices=40, int stacks=20) |
| | Adds a cone object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addTorusToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation(), float innerRadius=0.4f, int sides=40, int rings=40) |
| | Adds a torus object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addArmadilloToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation()) |
| | Adds an Stanford Armadillo object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates. More...
|
| |
| static void | addBuddhaToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation()) |
| | Adds a Stanford Happy Buddha object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates. More...
|
| |
| static void | addBunnyToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation()) |
| | Adds a Stanford Bunny object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
| static void | addDragonToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation()) |
| | Adds a Stanford Dragon object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. Note that unlike most other objects provided in this class, this one does not have texture coordinates. More...
|
| |
| static void | addTeapotToScene (Scene &scene, int materialIndex, const Transformation &transformation, const Animation &animation=Animation()) |
| | Adds a teapot object to a scene. The initial geometry is centered on the origin and fills [-1,+1]^3. The transformation is applied to this geometry. The shape material is given by materialIndex, which indexes a material in the global list of materials in scene. More...
|
| |
Generates basic objects to populate a scene.