gui_init   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/gui.xtm

Implementation

(bind-func gui_init
  (lambda (width height)
    ;; (if (not (null? EXTEMPORE_GUI))
    ;;     (begin
    ;;       (println "Extempore GUI is already initialised, and cannot be re-initialised.")
    ;;       EXTEMPORE_GUI))
    (let ((ww:i32* (alloc))
          (wh:i32* (alloc))
          (fbw:i32* (alloc))
          (fbh:i32* (alloc))
          (window null)
          (vg null))
      ;; set up GLFW
      (glfwSetErrorCallback (convert (get_native_fptr glfw_error_callback)))
      (glfwInit)
      (set! window (glfw_init_and_create_interaction_window width height))
      (glfwSetWindowSizeCallback window (convert (get_native_fptr gui_window_size_callback)))
      ;; (glfwSetInputMode window GLFW_STICKY_KEYS 1)
      ;; (glfwSetInputMode window GLFW_STICKY_MOUSE_BUTTONS 1)
      ;; set up nanovg
      (set! vg (nvg_create_context))
      (glfwGetWindowSize window ww wh)
      (glfwGetFramebufferSize window fbw fbh)
      ;; create the new GUI data type
      (set! EXTEMPORE_GUI
            (GUI_h
             window
             vg
             null
             (convert (pref ww 0) float)
             (convert (pref wh 0) float)
             (/ (convert (pref fbw 0) float) (convert (pref ww 0) float)))))))


Back to Index

Similar Entries

  • GUI_context    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • GUI_height    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • GUI_pixel_ratio    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • GUI_root    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • GUI_set_root    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • GUI_width    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • GUI_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • apr_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/apr.xtm
  • cef_init_app    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cef_init_base    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cef_init_browser    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cef_init_client    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • cl:reduce-init    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • glew_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/glew.xtm
  • glfw_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_interaction_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_interaction_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_interaction_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_fullscreen_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_interaction_compatibility_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_interaction_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_init_and_create_window    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • gui_add_widget    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_add_widget    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_click_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_draw_circle    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_draw_rect    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_draw_text_in_bounds    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_enter_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_inorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_preorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_next_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_parent    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_widget_with_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_inbounds_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_keypress_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_keyrelease_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_leave_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_left_click_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_mouse_x    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_mouse_y    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_render    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_render_loop    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_render_subtree    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_reset    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_right_click_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_set_default_theme    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_set_monokai_color_theme    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_set_monokai_opensans_theme    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_shutdown    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_validate    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_window_size_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • guint64_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint64_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint64_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint_alloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint_halloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • guint_zalloc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • h3d_init    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/horde3d_knight.xtm
  • h3d_init    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/bullet.xtm
  • impc:compiler:print-no-redefinitions-error    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:initialize-closure-with-new-zone    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • init-gst    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • init-osc-vars    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • init-psys    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/particles.xtm
  • init-slides    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/slideshow.xtm
  • init_bodies    xtlang    /digego/extempore/tree/v0.8.9/examples/core/nbody_lang_shootout.xtm
  • init_burners    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • init_draw_quad    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • init_env_map    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender6.xtm
  • init_gl    xtlang    /digego/extempore/tree/v0.8.9/examples/external/going-native.xtm
  • init_globals    xtlang    /digego/extempore/tree/v0.8.9/examples/core/fasta_lang_shootout.xtm
  • init_lv2_amp    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/lv2.xtm
  • init_sample_data    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • init_sample_data    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • init_sky    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender6.xtm
  • init_vao    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • init_vg    xtlang    /digego/extempore/tree/v0.8.9/examples/external/going-native.xtm
  • initalize    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/hidapi.xtm
  • initialize_walkers    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/random-walk.xtm
  • lilv_init_world    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/lilv.xtm
  • node_reply_socket_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet-node.xtm
  • nvg_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/nanovg.xtm
  • pa_initialize    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • pm_initialize    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • pm_initialize    unknown    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • scheduler_init    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • some_gl_init    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • sys:compile-init-ll    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • sys:compile-init-ll-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • world_init    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • xtm_envmap_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_dof_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_light_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_quad_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_simple_bone_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_simple_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_skybox_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_skybox_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm