PIGMENT *Create_Pigment () { PIGMENT *New; New = new PIGMENT; Init_TPat_Fields(New); New->colour.Clear(); New->Quick_Colour.Invalidate(); return (New); }
PIGMENT *Create_Pigment () { PIGMENT *New; New = reinterpret_cast<PIGMENT *>(POV_MALLOC(sizeof (PIGMENT), "pigment")); Init_TPat_Fields(reinterpret_cast<TPATTERN *>(New)); New->colour.clear(); New->Quick_Colour = Colour(-1.0,-1.0,-1.0); New->Blend_Map = NULL; return (New); }
PIGMENT *Create_Pigment () { PIGMENT *New; New = (PIGMENT *)POV_MALLOC(sizeof (PIGMENT), "pigment"); Init_TPat_Fields((TPATTERN *)New); Make_Colour(New->Colour, 0.0,0.0,0.0) ; New->Blend_Map = NULL; return (New); }
PIGMENT *Create_Pigment () { PIGMENT *New; New = (PIGMENT *)POV_MALLOC(sizeof (PIGMENT), "pigment"); Init_TPat_Fields((TPATTERN *)New); New->colour.clear(); New->Quick_Colour = Colour(-1.0,-1.0,-1.0); New->Blend_Map = NULL; return (New); }
TNORMAL *Create_Tnormal () { TNORMAL *New; New = new TNORMAL; Init_TPat_Fields(New); New->Amount = 0.5; /* NK delta */ New->Delta = (float)0.02; /* this is a good starting point for delta */ return (New); }
TNORMAL *Create_Tnormal () { TNORMAL *New; New = (TNORMAL *)POV_MALLOC(sizeof(TNORMAL), "normal"); Init_TPat_Fields((TPATTERN *)New); New->Amount = 0.5; /* NK delta */ New->Delta = (float)0.02; /* this is a good starting point for delta */ return (New); }