Ah, yea - there is name and display_name - at least in the Ruby API. name is the unique one that should be used to refer to materials. display_name should be used only to display the material name to the UI.
However, it appear that the C API doesn't quite do that. Let me have a chat with the rest of the team.
@marc477 said:
What is the equivalent of SUTextureGetImageData for a SUImageRef? How can I access images pixel data?
Update - SUImageGetData should be equivalent.
http://www.sketchup.com/intl/en/developer/su-api/image_8h.html#aedb99aee21a39619602866fc400766cb
@dan rathbun said:
The HTML5 Canvas element will not work well on PC yet because SketchUp uses the MSIE WebBrowser control for WebDialogs. Microsoft is lagging behind in their IE support of the specification.
You can test by loading the HTML5 Bejeweled game into a WebDialog.
It most likely will not run under XP. But runs fine under Win7 with MSIE v11 installed.
Bejeweled.rb