示例#1
0
PIGMENT *Create_Pigment ()
{
    PIGMENT *New;

    New = new PIGMENT;

    Init_TPat_Fields(New);

    New->colour.Clear();
    New->Quick_Colour.Invalidate();

    return (New);
}
示例#2
0
文件: pigment.cpp 项目: Nyoho/povray
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);
}
示例#3
0
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);
}
示例#4
0
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);
}
示例#5
0
文件: normal.cpp 项目: gumpu/povray
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);
}
示例#6
0
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);
}