Project

General

Profile

Previous Up Next

M3scanline
Calculates the rendering of a scene from the camera having '_camera_' as a handler, in a rendering buffer.
Specify the background color '_color_' (nil for transparent).
The function returns the handler of the desired object by the coordinate point (xplot,yplot), nil is none exists.

H3d M3scanline (
S3d _session_
ObjBitmap _bitmap16_
H3d _camera_
I _xplot_
I _yplot_
I _color_
)
Parameters

_session_
3D Session
_bitmap16_
Bitmap coded in 16bits / pixel
_camera_
Camera
_xplot_
Screen information position
_yplot_
Screen information position
_color_
Background and fog color
Return value

The handler of the desired object by the coordinate point (xplot,yplot), or nil is none exists
Remark

The size of the camera rendering must not exceed the size of the bitmap buffer.
The size of the camera rendering is double the half-heights and half-widths of the camera. Use M3setCamera to modify these values.