Example #1
0
exports.get_canvas_texture_context = function(id) {
    var canvas_context = m_textures.get_canvas_context(id);
    if (canvas_context)
        return canvas_context;
    else
        m_print.error("Canvas texture with ID \"" + id + "\" not found!");
}
Example #2
0
exports.get_canvas_texture_context = function(id, data_id) {
    m_print.error_deprecated("get_canvas_texture_context", "get_canvas_ctx");
    if (!data_id)
        data_id = 0;
    var canvas_context = m_textures.get_canvas_context(id, data_id);
    if (canvas_context)
        return canvas_context;
    else
        m_print.error("Canvas texture with ID \"" + id + "\" not found!");
}