gl_setup   xtlang


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

Implementation

(bind-func gl_setup
  (lambda ()
    (glEnable GL_LIGHTING)
    (glEnable GL_LIGHT0)
    (let ((diffuse:float* (halloc 4))
    (specular:float* (halloc 4))
    (position:float* (halloc 4)))
      (pset! diffuse 0 1.0)
      (pset! diffuse 1 1.0)
      (pset! diffuse 2 1.0)
      (pset! diffuse 3 1.0)
      (pset! specular 0 1.0)
      (pset! specular 2 1.0)
      (pset! specular 3 1.0)
      (pset! specular 4 1.0)
      (pset! position 0 100.0)
      (pset! position 1 100.0)
      (pset! position 2 100.0)
      (pset! position 3 0.0)


Back to Index

Similar Entries

  • Rectangle    xtlang
  • Rectangle    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • ai_load_ogl_texture    xtlang
  • ai_load_ogl_texture_from_buffer    xtlang
  • bind-gl-proc    macro
  • bind-glew    macro
  • cpvforangle    xtlang
  • cpvtoangle    xtlang
  • create_triangle_shader    xtlang
  • create_triangle_shader    xtlang
  • curl_setup    xtlang
  • forced-gl-getprocaddress    scheme
  • forced-gl-getprocaddress    scheme
  • ghttp_perform_request_with_setup_fn    xtlang
  • gl-draw    xtlang
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    xtlang
  • gl-loop    xtlang
  • gl-loop    xtlang
  • gl-loop    scheme
  • gl-loop    scheme
  • gl-loop    scheme
  • glCube    xtlang
  • gl_cp    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw    xtlang
  • gl_draw_arrows    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_loop    xtlang
  • gl_draw_particles    xtlang
  • gl_load_image    xtlang
  • gl_load_image_rect    xtlang
  • gl_load_movie_textures    xtlang
  • gl_load_movie_textures    xtlang
  • gl_load_tex    xtlang
  • gl_load_tex_bgr    xtlang
  • gl_load_tex_ext    xtlang
  • gl_load_tex_ext_bgr    xtlang
  • gl_load_tex_rect    xtlang
  • gl_look_at    xtlang
  • gl_print_driver_info    xtlang
  • gl_print_driver_info    xtlang
  • gl_print_driver_info    xtlang
  • gl_print_error    xtlang
  • gl_print_error    xtlang
  • gl_print_error    xtlang
  • gl_print_error    xtlang
  • gl_print_error_no_msg    xtlang
  • gl_print_error_with_msg    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_render    xtlang
  • gl_set_proc_address    xtlang
  • gl_set_view    xtlang
  • gl_tex_height    xtlang
  • gl_tex_height_rect    xtlang
  • gl_tex_width    xtlang
  • gl_tex_width_rect    xtlang
  • glctx    scheme
  • glctx    scheme
  • glctx    scheme
  • glctx    scheme
  • glew-name-from-gl-name    scheme
  • glew_init    xtlang
  • glfw_char_callback:GLFWcharfun    xtlang
  • glfw_create_fullscreen_interaction_window    xtlang
  • glfw_create_fullscreen_interaction_window    xtlang
  • glfw_create_fullscreen_window    xtlang
  • glfw_create_fullscreen_window    xtlang
  • glfw_create_interaction_window    xtlang
  • glfw_create_window    xtlang
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang
  • glfw_destroy_window    xtlang
  • glfw_error_callback:GLFWerrorfun    xtlang
  • glfw_get_framebuffer_height    xtlang
  • glfw_get_framebuffer_width    xtlang
  • glfw_get_pixel_ratio    xtlang
  • glfw_get_window_height    xtlang
  • glfw_get_window_width    xtlang
  • glfw_init    xtlang
  • glfw_init_and_create_compatibility_window    xtlang
  • glfw_init_and_create_fullscreen_compatibility_window    xtlang
  • glfw_init_and_create_fullscreen_interaction_compatibility_window    xtlang
  • glfw_init_and_create_fullscreen_interaction_window    xtlang
  • glfw_init_and_create_fullscreen_interaction_window    xtlang
  • glfw_init_and_create_fullscreen_window    xtlang
  • glfw_init_and_create_fullscreen_window    xtlang
  • glfw_init_and_create_interaction_compatibility_window    xtlang
  • glfw_init_and_create_interaction_window    xtlang
  • glfw_init_and_create_window    xtlang
  • glfw_key_callback:GLFWkeyfun    xtlang
  • glfw_make_context_current    xtlang
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang
  • glfw_poll_events    xtlang
  • glfw_print_primary_monitor_details    xtlang
  • glfw_print_version_string    xtlang
  • glfw_print_video_mode_details    xtlang
  • glfw_set_compatibility_profile    xtlang
  • glfw_set_core_profile    xtlang
  • glfw_swap_buffers    xtlang
  • glfw_terminate    xtlang
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang
  • glfw_window_position_callback:GLFWwindowposfun    xtlang
  • glfw_window_should_close    xtlang
  • glib-main-loop    scheme
  • glib-main-loop    scheme
  • glib_main_loop    xtlang
  • global_transform2d    xtlang
  • global_var_test1    xtlang
  • global_var_test1b    xtlang
  • glong_alloc    xtlang
  • glong_halloc    xtlang
  • glong_zalloc    xtlang
  • glwrapper-arg-list-symbols    scheme
  • glwrapper-arg-list-symbols    scheme
  • godot_global_get_singleton    xtlang
  • impc:aot:insert-ext-globalvar-binding-details    scheme
  • impc:aot:insert-gl-proc-binding-details    scheme
  • impc:aot:insert-globalvar-binding-details    scheme
  • impc:ir:genericfunc-type-setup    scheme
  • impc:ir:make-arglist-str    scheme
  • impc:ti:get-global-var-types    scheme
  • impc:ti:get-globalvar-docstring    scheme
  • impc:ti:get-globalvar-type    scheme
  • impc:ti:gl-proc-alist-index    scheme
  • impc:ti:globalvar-exists?    scheme
  • impc:ti:print-globalvar-cache    scheme
  • impc:ti:register-new-globalvar    scheme
  • impc:ti:remove-single-element-lists    scheme
  • impc:ti:reset-globalvar-cache    scheme
  • impc:ti:set-globalvar-docstring    scheme
  • init_gl    xtlang
  • init_globals    xtlang
  • move_triangle    xtlang
  • my-gl-loop    xtlang
  • ocv_rectangle    xtlang
  • opengl-loop    scheme
  • opengl-loop    scheme
  • opengl-loop    scheme
  • opengl-loop    scheme
  • opengl-test    scheme
  • opengl-test    scheme
  • opengl-test    scheme
  • opengl-test    xtlang
  • shader_setup_convolution_filter    xtlang
  • some_gl_init    xtlang
  • texture_setup    xtlang
  • world_texture_setup    xtlang
  • xtm-setup-and-start-gl-loop    scheme
  • xtm_light_angle    xtlang
  • xtmdoc-globalvar-handler    scheme