Wizcorp / phonegap-plugin-wizCanvas

WizCanvas allows a developer to create a ultra-performant native canvas component. The view is based on the Ejecta framework and has WebGL support.
MIT License
43 stars 13 forks source link

Construct2 + wizCanvas #41

Open TheWyrm opened 9 years ago

TheWyrm commented 9 years ago

Hi there,

I use a non-programming development environment called Constuct2 (https://www.scirra.com/construct2). Which allows exporting multiple wrappers such as PhoneGap. At present there is a bit of a performance hole for iOS7 and earlier and I was wondering if WizCanvas could help bridge the gap. So I have used the IntelXDK and have easily managed to import your plugin into a Cordova project. Therefore, would it be possible to get some help\instructions on what to do next?

I am willing to provide an example project and any more information that is required. I am also perfectly happy to accept that the kind of conversion that would be required is difficult in which case I would drop this line of inquiry. If successful I would write a tutorial for the rest of the C2 community who I am sure would be very appreciative.

aogilvie commented 9 years ago

@TheWyrm Hi there,

Therefore, would it be possible to get some help\instructions on what to do next?

What do you want to do next? Seems like you have it integrated in the Cordova project so just build it?

I'd love to see a tutorial for C2 and wizCanvas!!

TheWyrm commented 9 years ago

Well I have just imported the wizCanvas plugin. Is that all I have to do to to integrate it? I mean should it just work? or do have to initiate it or write code to use it? If it does just work then that would be amazing.

TheWyrm commented 9 years ago

@aogilvie Sorry just realized I should have added the at username for you to get notified that I have responded.

TheWyrm commented 9 years ago

Also managed to close it... I am such a noob! :)

TheWyrm commented 9 years ago

@aogilvie So my response was "Well I have just imported the wizCanvas plugin. Is that all I have to do to to integrate it? I mean should it just work? or do have to initiate it or write code to use it? If it does just work then that would be amazing."

aogilvie commented 9 years ago

@TheWyrm So take a look at the API and examples. Basically, WizCanvas is a new view (different from Phonegap/Cordova's view). You create using; wizCanvas.create(String viewName, JSONObject options, Function success, Function fail);

You can pass your JavaScript into the view inside the options var options = { src: "myFile.js"}

Be sure to check the example project. Your file should be inside /www folder. (In this example /www/myFile.js)

If you don't pass width or height, the view will be fullscreen automatically.

greaterking commented 9 years ago

Are you able to access native cordova api's within the canvas like "navigator.connection.type" ??

pburstein commented 8 years ago

Hi, I'm trying to use wizCanvas but I cannot find any code example. Could anyone please point me to one? Thanks!