Previous Up Next

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

H3d MX3render (
S3d _session_
ObjSurface _surface_
H3d _camera_
I _xplot_
I _yplot_
I _color_
)
Parameters

_session_
3D Session
_surface_
Rendering surface
_camera_
Camera
_xplot_
Screen information position
_yplot_
Screen information position
_color_
Background and fog color
Return value

Handler of desired object by coordinate point (xplot,yplot)

Note from Scol 5.x and above about sprites

These rendering functions are now able to detect Sprites. Returned data, when possible, include Mesh, Material and Integer distance between Sprite and Camera (not the z data).