![]() |
MDL Type Checking Example
Cornell University Program of Computer Graphics |
![]() |
||||
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); ... } | ||||||
|