2 implementations of resize:
#1
/digego/extempore/tree/v0.8.9/examples/contrib/horde3d_knight.xtm ·
#2
/digego/extempore/tree/v0.8.9/examples/contrib/bullet.xtm
(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))