Added ya2d_createTexture function.