Skip to content

Commit

Permalink
remove doc tabs, lowercase arg names
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Dec 11, 2024
1 parent bd358e3 commit d3bb3df
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions flixel/system/frontEnds/BitmapFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,24 @@ class BitmapFrontEnd

/**
* Loads a bitmap from a file, clones it if necessary and caches it.
* @param Graphic Optional FlxGraphics object to create FlxGraphic from.
* @param Unique Ensures that the bitmap data uses a new slot in the cache.
* @param Key Force the cache to use a specific Key to index the bitmap.
* @return The FlxGraphic we just created.
* @param graphic Optional FlxGraphics object to create FlxGraphic from.
* @param unique Ensures that the bitmap data uses a new slot in the cache.
* @param key Force the cache to use a specific Key to index the bitmap.
* @return The FlxGraphic we just created.
*/
public function add(Graphic:FlxGraphicAsset, Unique:Bool = false, ?Key:String):FlxGraphic
public function add(graphic:FlxGraphicAsset, unique = false, ?key:String):FlxGraphic
{
if ((Graphic is FlxGraphic))
if ((graphic is FlxGraphic))
{
return FlxGraphic.fromGraphic(cast Graphic, Unique, Key);
return FlxGraphic.fromGraphic(cast graphic, unique, key);
}
else if ((Graphic is BitmapData))
else if ((graphic is BitmapData))
{
return FlxGraphic.fromBitmapData(cast Graphic, Unique, Key);
return FlxGraphic.fromBitmapData(cast graphic, unique, key);
}

// String case
return FlxGraphic.fromAssetKey(Std.string(Graphic), Unique, Key);
return FlxGraphic.fromAssetKey(Std.string(graphic), unique, key);
}

/**
Expand Down

0 comments on commit d3bb3df

Please sign in to comment.