public static void LoadModels() { BodyTexture = StaticRenderer.LoadTexture(GameResources.body_img); BodyDeadTexture = StaticRenderer.LoadTexture(GameResources.bodydead_img); SledTexture = StaticRenderer.LoadTexture(GameResources.sled_img); BrokenSledTexture = StaticRenderer.LoadTexture(GameResources.brokensled_img); ArmTexture = StaticRenderer.LoadTexture(GameResources.arm_img); LegTexture = StaticRenderer.LoadTexture(GameResources.leg_img); }
public static void LoadModels(Bitmap body_img, Bitmap bodydead_img, Bitmap sled_img, Bitmap brokensled_img, Bitmap arm_img, Bitmap leg_img) { BodyTexture = StaticRenderer.LoadTexture(body_img); BodyDeadTexture = StaticRenderer.LoadTexture(bodydead_img); SledTexture = StaticRenderer.LoadTexture(sled_img); BrokenSledTexture = StaticRenderer.LoadTexture(brokensled_img); ArmTexture = StaticRenderer.LoadTexture(arm_img); LegTexture = StaticRenderer.LoadTexture(leg_img); }
public static void LoadModels(string folder) { if (folder.Equals("*default*")) { LoadModels(); return; } string riderLocation = Program.UserDirectory + "\\Riders\\" + folder + "\\"; BodyTexture = StaticRenderer.LoadTexture(new Bitmap(riderLocation + "body.png")); BodyDeadTexture = StaticRenderer.LoadTexture(new Bitmap(riderLocation + "bodydead.png")); SledTexture = StaticRenderer.LoadTexture(new Bitmap(riderLocation + "sled.png")); BrokenSledTexture = StaticRenderer.LoadTexture(new Bitmap(riderLocation + "brokensled.png")); ArmTexture = StaticRenderer.LoadTexture(new Bitmap(riderLocation + "arm.png")); LegTexture = StaticRenderer.LoadTexture(new Bitmap(riderLocation + "leg.png")); }