fill_projection_matrix   xtlang


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

Implementation

(bind-func fill_projection_matrix
  (lambda (mat:float* fovy aspect near far)
    (let ((a (* fovy (/ PIf 180.0))) ;; convert deg to rad
          (c (/ (cos (* a 0.5)) (sin (* a 0.5)))))
      (pfill! mat
              (/ c aspect) 0.0 0.0 0.0
              0.0 c 0.0 0.0
              0.0 0.0 (* -1.0 (/ (+ far near) (- far near))) -1.0
              0.0 0.0 (* -1.0 (/ (* 2.0 far near) (- far near))) 0.0)
      void)))


Back to Index

Similar Entries

  • Vfill    xtlang
  • 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
  • fill_buffer_with_file    xtlang
  • fill_direction_vector    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_view_matrix    xtlang
  • fill_view_matrix    xtlang
  • fill_view_matrix_dir    xtlang
  • fill_view_matrix_dir    xtlang
  • get_mod_matrix    xtlang
  • impc:ti:afill!    scheme
  • impc:ti:pfill!    scheme
  • impc:ti:tfill!    scheme
  • impc:ti:vfill!    scheme
  • 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_projection_texture    xtlang
  • shader_update_uvwmatrix    xtlang
  • string-fill!    scheme
  • translate_matrix    xtlang
  • translate_matrix    xtlang
  • vector-fill!    scheme
  • 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
  • xtm_projection_texture_load    xtlang