Exemplo n.º 1
0
 public static void InitializeAllegro()
 {
     if (!Allegro.InstallSystem())
     {
         throw new Exception("allegro failz");
     }
     if (!Image.Init())
     {
         throw new Exception("image failz");
     }
     Font.Init();
     if (!Ttf.Init())
     {
         throw new Exception("ttf failz");
     }
     if (!Primitives.Init())
     {
         throw new Exception("primitives failz");
     }
     Display.Create(800, 600);
 }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     Allegro.RunMain(AllegroMain);
 }
Exemplo n.º 3
0
 public Color(byte red = 0, byte green = 0, byte blue = 0)
 {
     AllegroColor = Allegro.MapRGB(red, green, blue);
 }