Cornell Box MDL Type Checking Example
Cornell University Program of Computer Graphics
Cornell Seal

Here is some code that adds some type specs of its own:

    // List of custom chunk types for mdlInput
    
    mdlChunkSpec eon_css[] = {
    
       { "bckgrnd" , "C" },
       { "cieclr"  , "ffiif" },
       { "pcwscnst", "CCC" },
    
       { "sphr"    , "sCffff,C" },
    
       { "cnfdnc"  , "C" },
    
       { "bkkp"    , "" },
       { "vrbs"    , "" },
       { "rndmSd"  , "" },
       { "grdMlt"  , "f" },
    
       { "bx"      , "C,ffffff" },
    
       { NULL, NULL }
       };
    
    mdlChunkSpecList eon_csl(eon_css);
    
    ...
    
    int main() {
    
       ...
    
       mdlInput inp(fp, 1, &eon_csl);
    
       ...
    
       }
    

Last updated 10/07/04 PCG www Home