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); }
public static void Main(string[] args) { Allegro.RunMain(AllegroMain); }
public Color(byte red = 0, byte green = 0, byte blue = 0) { AllegroColor = Allegro.MapRGB(red, green, blue); }