Dynamic Image loading

Monkey Targets Forums/HTML5/Dynamic Image loading

frank(Posted 2013) [#1]
Because LoadSurface in HTML5 has this ;

if( ty.indexOf( "image/" )!=0 ) return null;

you cannot dynamically load images; it turns out to be an annoying restriction. One Glfw does not have; is it strictly needed? Any way around it?


frank(Posted 2013) [#2]
I now add the meta info like this;


function AddMeta(name, type, width, height) {
META_DATA += "\n["+name+"];type="+type+";width="+width+";height="+height+";"
}

which works. I'll check for doubles later.