Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

new BaseTexture(source:String, ..) should be Element #51

Closed
bartvanheukelom opened this issue Jun 4, 2015 · 1 comment
Closed

new BaseTexture(source:String, ..) should be Element #51

bartvanheukelom opened this issue Jun 4, 2015 · 1 comment

Comments

@bartvanheukelom
Copy link

The mapping of the BaseTexture constructor is wrong. source is declared a String but it should be js.html.Element so it can take an Image or a Canvas. Or define 2 overloads, if that's possible.

 /**
  * @param source {Image|Canvas} the source object of the texture.
  */
 function new(source:String, ?scaleMode:Int, ?resolution:Float);
@adireddy

This comment was marked as spam.

@adireddy adireddy closed this as completed Jun 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants