render:XTMRENDERCB   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/external/xtmrender6.xtm

Implementation

;; for models
(bind-func render:XTMRENDERCB
  (lambda (frame shader m v p data)
    (let ((model:XTMModel* (cast data XTMModel*)))
      ;; (rotate_matrix m (* 0.01 (i64tof frame)) 0.0 1.0 0.0)
      (translate_matrix m 0.0 -3.0 0.0)
      (scale_matrix m 2.0 2.0 2.0)
      (xtm_draw_model model shader m v p)
      (fill_identity_matrix m)
      void)))


Back to Index

Similar Entries

  • post:XTMRENDERCB    xtlang
  • post:XTMRENDERCB    xtlang
  • post:XTMRENDERCB    xtlang
  • post:XTMRENDERCB    xtlang
  • postrender:XTMRENDERCB    xtlang
  • prerender:XTMRENDERCB    xtlang
  • prerender:XTMRENDERCB    xtlang
  • prerender:XTMRENDERCB    xtlang
  • prerender:XTMRENDERCB    xtlang
  • prerender:XTMRENDERCB    xtlang
  • render:XTMRENDERCB    xtlang
  • render:XTMRENDERCB    xtlang
  • render:XTMRENDERCB    xtlang
  • render:XTMRENDERCB    xtlang
  • render:XTMRENDERCB    xtlang
  • trans:XTMRENDERCB    xtlang
  • trans:XTMRENDERCB    xtlang
  • vector_gfx:XTMRENDERCB    xtlang