Ejemplo n.º 1
0
bool GlesBox::update(std::function<bool(GBConfig&)> draw, GBConfig& conf) {
  draw_begin(conf);
  draw(conf);
  draw_end(conf);

  return true;
}
Ejemplo n.º 2
0
void ConsoleHandler::draw_all()
{
	Ego::Core::Console *console = egolib_console_top;

    if (!console)
    {
        return;
    }
	draw_begin();
    console->draw();
	draw_end();
}
Ejemplo n.º 3
0
static void	blue_screen_fb(const char* message)
{
  draw_begin ();
  draw_clear (CONS_BLUE);

  draw_text ("K -- FATAL ERROR", GRAPHIC_WIDTH / 2 - 8 * 8, 60, CONS_BLUE, CONS_WHITE);

  draw_text (message, GRAPHIC_WIDTH / 2 - (strlen (message) / 2) * 8, 90,
	     CONS_WHITE, CONS_BLUE);

  draw_text ("If this problem repeats,", GRAPHIC_WIDTH / 2 - 12 * 8, 120,
	     CONS_WHITE, CONS_BLUE);
  draw_text ("Please contact [email protected]", GRAPHIC_WIDTH / 2 - 15 * 8, 130,
	     CONS_WHITE, CONS_BLUE);

  draw_end ();

  while (1)
    continue;
}
Ejemplo n.º 4
0
int main(void)
{
    while( !ready() ) wait(1.0);

    const STRING *gstr = "I don't wanna die";
    draw_textmode( "Courier", 1, 25.0, 100.0 );
    draw_begin();

    while( !key_esc )
    {
        draw_text(gstr, 10, 10, COLOR_SOFT_PURPLE);
        draw_text(gstr, 10, 35, COLOR_LIME);
        draw_text(gstr, 10, 60, COLOR_CHERRY);
        draw_text(gstr, 10, 85, COLOR_INDIGO);
        draw_text(gstr, 10, 110, COLOR_CRIMSON);
        draw_text(gstr, 10, 135, COLOR_YELLOW);
        draw_text(gstr, 10, 160, COLOR_LAVENDER_ROSE);
        draw_text(gstr, 10, 185, COLOR_BITTER_LEMON);
        draw_text(gstr, 10, 210, COLOR_PEACH_ORANGE);
        draw_text(gstr, 10, 235, COLOR_PALE_LILAC);
        draw_text(gstr, 10, 260, COLOR_TEAL);
        draw_text(gstr, 10, 285, COLOR_ORCHID);
        draw_text(gstr, 10, 310, COLOR_APPLE_GREEN);
        draw_text(gstr, 10, 335, COLOR_ARCTIC_LIME);
        draw_text(gstr, 10, 360, COLOR_AQUAMARINE);
        draw_text(gstr, 10, 385, COLOR_BLEU_DE_FRANCE);
        draw_text(gstr, 10, 410, COLOR_SCARLET);
        draw_text(gstr, 10, 435, COLOR_SAND);
        draw_text(gstr, 10, 460, COLOR_PEACH);
        draw_text(gstr, 10, 485, COLOR_PEAR);
        draw_text(gstr, 10, 510, COLOR_PEARL);
        wait(1.0);
    }

    RETURN (0);
}
Ejemplo n.º 5
0
/* Debute une sequence de traces. Le dessin effectue sera affiche lors
   de l'appel de FinDessin() */
void DebutDessin() {
   draw_begin(fenetreCourante);
}