NAME

hwStrip - create a triangular strip of vertices

INHERITS FROM

PROPERTIES

Data *F The data array, with 3 to 11 floats per vertex
OptFlags 1I Optimization flags; see hw for more details

DEFAULTS

Data NULL
OptFlags hwDefaultOptFlags

DESCRIPTION

The hwStrip class takes an array of vertices and displays them as a triangular strip. The Data pointer is an array of hwFloat values; the number of values must be equal to n*FPV, where FPV is the number of hwFloats present per vertex as described by the hwVertex man page, and n is an arbitrary integer.

C EXAMPLE

    /* Draw a two-sided square using the hwStrip primitive */
    hwObject
        strip;
    hwFloat
        data[] = {
            0,0,0,      1,0,0,
            0,1,0,      1,1,0
        };

    strip = hwStrip->create( hwStrip );
    strip->modify( strip, hwStrData, HW_MAKE_TYPE(HW_TYPE_FLOAT,3*4), data );
    HW_MODIFY_1B( strip, hwStrTwoSided, HW_TRUE );
    strip->draw( strip );
    strip->destroy( strip );

OBJECT FILE EXAMPLE

    # A two-sided square using an hwStrip
    hwStrip strip {
        TwoSided = True
        Data = {0,0,0,  1,0,0,    0,1,0,  1,1,0}
    }

SEE ALSO

hw, hwSurface, hwOrient, hwVertex