Ejemplo n.º 1
0
static void reset_silent_img() {
	if (!base_image || !silent_img.data)
		return;
	memcpy((void*)silent_img.data, base_image, base_image_size);
	strncpy(rendermessage, lastheader, 512);
	render_objs((u8*)silent_img.data, NULL, 's', FB_SPLASH_IO_ORIG_USER, 0);
	rendermessage[0] = '\0';
}
Ejemplo n.º 2
0
void render_display(void)
{
	glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);

	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();
	glTranslatef(0.0,0.0,-WORLD_SIZE*0.95);
#if 0
	gluLookAt(      0.0, 0.0, -WORLD_SIZE*.95, /* Eye */
			0.0, 0.0, 0.0, /* Horizon */
			0.0, 1.0, 0.0);    /* Up */
#endif
	glRotated(tilt,0.0, 0.1, 0.0);
	glRotated(yaw,0.0, 0.0, 1.0);
	glRotated(pitch,1.0, 0.0, 0.0);

	/* Render world */
	render_world();

	/* Draw samples here */
	render_objs();

	glutSwapBuffers();
}