public void addFloor(StageSection section, string textureName, int i, int j) { StagePanel panel = getPanel(section, StageLocation.Floor); Texture2D texture = lhg.Assets.loadTexture(textureName); Rectangle3D textureExtents = getTextureExtents(panel, texture, i, j, 0); SimpleSprite3D sprite = new SimpleSprite3D(lhg, texture, textureExtents); panel.addSprite(sprite); }
public void addSprite(SimpleSprite3D sprite) { sprites.Add(sprite); }