[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.8.7 Cube Mesh Object

Written by Jorrit Tyberghein, jorrit.tyberghein@uz.kuleuven.ac.be.

A cube is a rectangularly shaped object.

Basic Structure

The following SCF class names are used (for CS_LOAD_PLUGIN()):

Objects in this plugin implement the following SCF interfaces (get with SCF_QUERY_INTERFACE()):

Factory State Interface

`iCubeFactoryState' is the SCF interface that you can use to set/get settings for a cube factory. The definition of this interface can be found in `CS/include/imcube.h' and that's also the include file you need to include in your applications to use this plugin. Using this interface you can access the material, blending mode (mixmode), and various settings related to the shape of the cube.

Factory Loader

MATERIAL
Material to use for the polygon.
MIXMODE
Blending mode, one of `ADD', `ALPHA', `COPY', `KEYCOLOR', `MULTIPLY2', `MULTIPLY', or `TRANSPARENT'.
SIZE
Size of the cube in x, y, and z direction.
SHIFT
Shift of the cube in x, y, z direction.

Object State Interface

This plugin has no object state interface.

Object Loader

FACTORY
Name of the factory to use for creation of this instance.

Configuration Parameters

The cube plugin supports the following configuration parameters through `iConfig' in the mesh object type plugin:

sizex
Size of cube in X direction.
sizey
Size of cube in Y direction.
sizez
Size of cube in Z direction.
shiftx
Shift of cube in X direction.
shifty
Shift of cube in Y direction.
shiftz
Shift of cube in Z direction.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated using texi2html