예제 #1
0
파일: mech.c 프로젝트: kendallb/scitech-mgl
static void myinit(void)
{
    char i = 1;

    /* Init animation variables */
    leg = 0;
    shoulder1 = 0;
    shoulder2 = 0;
    shoulder3 = 0;
    shoulder4 = 0;
    lat1 = 20;
    lat2 = 20;
    elbow1 = 0;
    elbow2 = 0;
    pivot = 0;
    tilt = 10;
    ankle1 = 0;
    ankle2 = 0;
    heel1 = 0;
    heel2 = 0;
    hip11 = 0;
    hip12 = 10;
    hip21 = 0;
    hip22 = 10;
    fire = 0;
    solid_part = 1;
    turn = 0;
    turn1 = 0;
    lightturn = 0;
    lightturn1 = 0;
    elevation = 0.0;
    distance = 0.0;
    frame = 3.0;

#ifdef LIGHT
    SetMaterial(mat_specular2, mat_ambient2, mat_diffuse2, mat_shininess2);
#endif
    glEnable(GL_DEPTH_TEST);
    MechTorso(i);
    MechHip(i);
    Shoulder(i);
    RocketPod(i);
    UpperArm(i);
    ForeArm(i);
    UpperLeg(i);
    Foot(i);
    VulcanGun(i);
    Enviro(i);
}
예제 #2
0
파일: mech.c 프로젝트: lain-dono/TinyGL
void
init(void) {
	char i = 1;

#ifdef LIGHT
	SetMaterial(mat_specular2, mat_ambient2, mat_diffuse2, mat_shininess2);
#endif
	glEnable(GL_DEPTH_TEST);
	MechTorso(i);
	MechHip(i);
	Shoulder(i);
	RocketPod(i);
	UpperArm(i);
	ForeArm(i);
	UpperLeg(i);
	Foot(i);
	VulcanGun(i);
	Enviro(i);
}