fill_direction_vector   xtlang


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

Implementation

;; where v1 and v2 can be v3 or v4
;; but v3 MUST be v4
(bind-func fill_direction_vector
  (lambda (v1:float* v2:float* v3:float*)
    (let ((tmp:float* (salloc 4)))
      (vsub v1 v2 3 tmp)
      (vnorm tmp 3 v3)
      (pset! v3 3 0.0) ;; direction vectors get w = 0.0
      void)))


Back to Index

Similar Entries

  • Vfill    xtlang
  • fill_buffer_with_file    xtlang
  • fill_direction_vector    xtlang
  • fill_identity_matrix    xtlang
  • fill_identity_matrix    xtlang
  • fill_orthographic_matrix    xtlang
  • fill_orthographic_matrix    xtlang
  • fill_pos_scale_matrix    xtlang
  • fill_projection_matrix    xtlang
  • fill_projection_matrix    xtlang
  • fill_projection_matrix    xtlang
  • fill_view_matrix    xtlang
  • fill_view_matrix    xtlang
  • fill_view_matrix_dir    xtlang
  • fill_view_matrix_dir    xtlang
  • godot_variant_new_vector2    xtlang
  • godot_variant_new_vector3    xtlang
  • godot_vector2_new    xtlang
  • godot_vector2_pvar    xtlang
  • godot_vector2_set_x    xtlang
  • godot_vector2_set_y    xtlang
  • godot_vector2_var    xtlang
  • godot_vector3_new    xtlang
  • godot_vector3_pvar    xtlang
  • godot_vector3_var    xtlang
  • impc:ir:compiler:make-vector    scheme
  • impc:ir:compiler:vector-ref    scheme
  • impc:ir:compiler:vector-set    scheme
  • impc:ir:compiler:vector-shuffle    scheme
  • impc:ir:get-type-from-pretty-vector    scheme
  • impc:ir:get-vector-type-from-str    scheme
  • impc:ir:vector?    scheme
  • impc:ti:afill!    scheme
  • impc:ti:make-vector-check    scheme
  • impc:ti:pfill!    scheme
  • impc:ti:tfill!    scheme
  • impc:ti:vector-ref-check    scheme
  • impc:ti:vector-set-check    scheme
  • impc:ti:vector-shuffle-check    scheme
  • impc:ti:vfill!    scheme
  • list->vector    scheme
  • make-vector-with-proc    scheme
  • match-vector    scheme
  • string-fill!    scheme
  • t:vector?    scheme
  • vector->list    scheme
  • vector-equal?    scheme
  • vector-fill!    scheme
  • vector-test2    xtlang
  • vector_gfx:XTMRENDERCB    xtlang
  • vector_test    xtlang
  • vector_test_a    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_arc_fill    xtlang
  • xtm_draw_bezier_fill    xtlang
  • xtm_draw_bezier_fill    xtlang
  • xtm_draw_bezier_fill    xtlang
  • xtm_draw_bezier_fill    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_circle_fill    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_ellipse_fill    xtlang
  • xtm_draw_quad_fill    xtlang
  • xtm_draw_quad_fill    xtlang
  • xtm_draw_quad_fill    xtlang
  • xtm_draw_quad_fill    xtlang
  • xtm_draw_rect_fill    xtlang
  • xtm_draw_rect_fill    xtlang
  • xtm_draw_rect_fill    xtlang
  • xtm_draw_rect_fill    xtlang
  • xtm_draw_rounded_rect_fill    xtlang
  • xtm_draw_rounded_rect_fill    xtlang
  • xtm_draw_rounded_rect_fill    xtlang
  • xtm_draw_rounded_rect_fill    xtlang
  • xtm_draw_rounded_rect_varying_fill    xtlang
  • xtm_draw_rounded_rect_varying_fill    xtlang
  • xtm_draw_rounded_rect_varying_fill    xtlang
  • xtm_draw_rounded_rect_varying_fill    xtlang
  • xtm_draw_tri_fill    xtlang
  • xtm_draw_tri_fill    xtlang
  • xtm_draw_tri_fill    xtlang
  • xtm_draw_tri_fill    xtlang
  • xtm_fill    xtlang
  • xtm_fill    xtlang
  • xtm_fill_path    xtlang
  • xtm_fill_path_keep    xtlang
  • xtm_paint_set_fill    xtlang