resize   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/bullet.xtm

Implementation

(bind-func resize
  (lambda (width:float height:float)
    ;; resize viewport
    (h3dSetNodeParamI _cam H3DCamera_ViewportXI 0)
    (h3dSetNodeParamI _cam H3DCamera_ViewportYI 0)
    (h3dSetNodeParamI _cam H3DCamera_ViewportWidthI (ftoi32 width))
    (h3dSetNodeParamI _cam H3DCamera_ViewportHeightI (ftoi32 height))
    ;; set virtual cam params
    (h3dSetupCameraView _cam 20.0 (/ width height) 0.1 1000.0)
    1))


Back to Index

Similar Entries

  • ocv_resize    xtlang
  • ocv_resize    xtlang
  • ocv_resize    scheme
  • ocv_resize1    xtlang
  • ocv_resize2    xtlang
  • resize    xtlang