示例#1
0
/**
 * Setup frame buffer, background color, foreground color.
 */
void init_video(void) {
  FrameBufferInfo *p_framebuffer;
  p_framebuffer = init_framebuffer(1024, 768, 16);
  set_graphics_address(p_framebuffer);
  set_fore_colour(COLOR_WHITE);
  set_back_colour(COLOR_BLACK);
}
示例#2
0
void TDC::set_back_colour(float r, float g, float b)
{
   set_back_colour(RGBF(r,g,b));
}