(make-vertex3d '(-10 0 -10) '(0 0 1) '(255 0 255 0) '(0 0))))
(define material (make-material #:wireframe #f #:lighting #f))
-(reset-box3d! box (vertex3d-position (car vertices)))
+(reset-box3d! box (get-position (car vertices)))
(for-each
(lambda (vertex)
- (box3d-add-internal-point! box (vertex3d-position vertex)))
+ (add-internal-point! box (get-position vertex)))
(cdr vertices))
(define (custom-render)
add-camera-scene-node!
add-camera-scene-node-fps!
add-file-archive!
+ add-internal-point!
add-octree-scene-node!
add-static-text!
begin-scene
get-gui-environment
get-mesh
get-name
+ get-position
get-scene-manager
get-texture
get-video-driver
(define-class <box3d> (<irrlicht-base>)
(irr-class #:init-value "aabbox3d"))
+(define-method (add-internal-point! (box3d <box3d>) point)
+ (let ((addInternalPoint (get-irrlicht-proc "aabbox3d_addInternalPoint")))
+ (addInternalPoint box3d point)))
+
(define (make-box3d)
(let ((aabbox3d_make (get-irrlicht-proc "aabbox3d_make")))
(make <box3d> #:irr-pointer (aabbox3d_make))))
(let ((reset (get-irrlicht-proc "aabbox3d_reset")))
(reset box3d init-value)))
-(export <box3d> make-box3d reset-box3d!)
+(export <box3d> add-internal-point! make-box3d reset-box3d!)
(define-class <vertex3d> (<irrlicht-base>)
(irr-class #:init-value "S3DVertex"))
+(define-method (get-position (vertex3d <vertex3d>))
+ (let ((S3DVertex_Pos (get-irrlicht-proc "S3DVertex_Pos")))
+ (S3DVertex_Pos vertex3d)))
+
(define (make-vertex3d position normal color tcoords)
(let ((S3DVertex_make (get-irrlicht-proc "S3DVertex_make")))
(make <vertex3d>
#:irr-pointer
(S3DVertex_make position normal color tcoords))))
-(export <vertex3d> make-vertex3d)
+(export <vertex3d> get-position make-vertex3d)
;; SMaterial