(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))