translate_matrix   xtlang


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

Implementation

(bind-func translate_matrix
  (lambda (mat:float* x y z)
    (let ((mat2:float* (salloc 32))
          (mat3 (pref-ptr mat2 16)))
      (pfill! mat2
              1.0 0.0 0.0 0.0
              0.0 1.0 0.0 0.0
              0.0 0.0 1.0 0.0
              x   y   z   1.0)
      ;;(mmulf mat2 4 4 mat 4 4 mat3)
      (mmul4 mat2 mat mat3)
      (memcpy (cast mat i8*) (cast mat3 i8*) (* 16 4))
      void)))


Back to Index

Similar Entries

  • ai_matrix4_to_float    xtlang
  • analogue_get_mod_matrix    xtlang
  • analogue_set_mod_matrix    xtlang
  • cerberus_get_mod_matrix    xtlang
  • cerberus_matrix_cc    xtlang
  • cerberus_set_mod_matrix    xtlang
  • cpTransformTranslate    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
  • get_mod_matrix    xtlang
  • invert_matrix    xtlang
  • matrix_cc    xtlang
  • reset_view_matrix    xtlang
  • rotate_matrix    xtlang
  • rotate_matrix    xtlang
  • scale_matrix    xtlang
  • scale_matrix    xtlang
  • set_mod_matrix    xtlang
  • shader_update_uvwmatrix    xtlang
  • translate_matrix    xtlang
  • xtm_path_translate    xtlang
  • xtm_path_translated    xtlang
  • xtm_vgimage_translate    xtlang
  • xtm_vgimage_translated    xtlang