def ensure_courierfile_loaded(): #e rename to reflect binding too """ Load font-texture if we edited the params for that in this function, or didn't load it yet; bind it for drawing """ tex_filename = courierfile ## "xxx.png" # the charset "courierfile" tex_data = (tex_filename,) if vv.tex_name == 0 or vv.tex_data != tex_data: vv.have_mipmaps, vv.tex_name = load_image_into_new_texture_name( tex_filename, vv.tex_name) vv.tex_data = tex_data else: pass # assume those vars are fine from last time setup_to_draw_texture_name(vv.have_mipmaps, vv.tex_name) return
def ensure_courierfile_loaded(): #e rename to reflect binding too """ Load font-texture if we edited the params for that in this function, or didn't load it yet; bind it for drawing Anything that calls this should eventually call glpane.kluge_reset_texture_mode_to_work_around_renderText_bug(), but only after all drawing using the texture is done. """ tex_filename = courierfile ## "xxx.png" # the charset "courierfile" tex_data = (tex_filename, ) if vv.tex_name == 0 or vv.tex_data != tex_data: vv.have_mipmaps, vv.tex_name = load_image_into_new_texture_name( tex_filename, vv.tex_name) vv.tex_data = tex_data else: pass # assume those vars are fine from last time setup_to_draw_texture_name(vv.have_mipmaps, vv.tex_name) return
def ensure_courierfile_loaded(): #e rename to reflect binding too """ Load font-texture if we edited the params for that in this function, or didn't load it yet; bind it for drawing Anything that calls this should eventually call glpane.kluge_reset_texture_mode_to_work_around_renderText_bug(), but only after all drawing using the texture is done. """ tex_filename = courierfile ## "xxx.png" # the charset "courierfile" tex_data = (tex_filename,) if vv.tex_name == 0 or vv.tex_data != tex_data: vv.have_mipmaps, vv.tex_name = load_image_into_new_texture_name( tex_filename, vv.tex_name) vv.tex_data = tex_data else: pass # assume those vars are fine from last time setup_to_draw_texture_name(vv.have_mipmaps, vv.tex_name) return