fill_view_matrix_dir   xtlang


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

Implementation

;; this is similar to gl_look_at
;; but returns a suitable VIEW matrix
;;
;; same as fill_view_matrix but
;; instead of a target:position
;; we provide a    dir:vector
(bind-func fill_view_matrix_dir
  (let ((mattt:float* (alloc 16)))
    (lambda (matrix:float* vEye:float* vDir vUp)
      (let ((vz:float* (salloc 3))
            (vy:float* (salloc 3))
            (vx:float* (salloc 3))
            (i 0)
            (mat:float* (salloc 16))
            (mtmp1:float* (salloc 16))
            (vtmp1:float* (salloc 3))
            (vtmp2:float* (salloc 3)))
        (vnorm vDir 3 vz)
        (vnorm vUp 3 vtmp2)
        (vcross vtmp2 vz vtmp1)
        (vnorm vtmp1 3 vx)
        (vcross vz vx vy)
        (pfill! mat
                (pref vx 0) (pref vx 1) (pref vx 2) 0.0
                (pref vy 0) (pref vy 1) (pref vy 2) 0.0
                (pref vz 0) (pref vz 1) (pref vz 2) 0.0
                (pref vEye 0) (pref vEye 1) (pref vEye 2) 1.0)
        (minvf mat 4 matrix)
        void))))


Back to Index

Similar Entries

  • Vfill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Windows-add-libdir-to-PATH    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • ai_matrix4_to_float    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • analogue_get_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • analogue_set_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • cerberus_get_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • cerberus_matrix_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_set_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • fill_buffer_with_file    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • fill_direction_vector    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_direction_vector    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_identity_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_identity_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_orthographic_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_orthographic_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_pos_scale_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_projection_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_projection_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_projection_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_view_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_view_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_view_matrix_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • get_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • gl_set_view    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • impc:ti:afill!    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:pfill!    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:tfill!    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:vfill!    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • invert_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • matrix_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • reset_view_matrix    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/triangle.xtm
  • rotate_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • rotate_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • scale_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • scale_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • set_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • shader_update_uvwmatrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • string-fill!    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • sys_dir_make    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_dir_make_recursive    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_dir_remove    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_g_chdir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_g_get_current_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_g_get_home_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_g_mkdir    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • sys_temp_dir_get    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • translate_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • translate_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • vector-fill!    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • win32_list_dir    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/win32.xtm
  • xtm_camera_view    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_camera_view_centred    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_arc_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_bezier_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_bezier_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_bezier_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_bezier_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_circle_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_ellipse_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_ellipse_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_ellipse_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_ellipse_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_quad_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_quad_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_quad_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_quad_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_varying_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_varying_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_varying_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_rounded_rect_varying_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_tri_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_tri_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_tri_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_draw_tri_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_fill_path    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_fill_path_keep    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_light_view    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_paint_set_fill    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm