Action:
|
Renders the view to a Truevision TARGA format file.
|
|
Filename:
|
rbase/rnd_scm/rndr_scm.cxx
|
|
Syntax:
|
(render:targa [entity-list=all] [filename]
|
|
|
[x-size y-size]
|
|
|
[compress [color]] [view=active])
|
|
Arg Types:
|
entity-list
|
entity | (entity ... )
|
|
filename
|
string
|
|
x-size
|
real
|
|
y-size
|
real
|
|
compress
|
boolean
|
|
color
|
boolean
|
|
view
|
view
|
|
Returns:
|
string
|
|
Description:
|
This extension produces a file containing a rendered image in TARGA format
entity-list. This extension returns the
filename.
|
|
|
entity-list indicates the entities to render to produce the image.
|
|
|
filename specifies the name of the file to be produced.
|
|
|
compress indicates whether to produce compressed (#t) or uncompressed (#f) TARGA data.
|
|
|
color controls color output. The default,
#t, produces color output;
#f produces greyscale output. If two Boolean arguments are specified, the first controls
compress and the second controls
color.
|
|
|
view specifies the view of orientation, clipping, and resolution information is obtained.
|
|
Example:
|
; render:targa
|
|
; Create a solid block.
|
|
(define block1 (solid:block (position 0 0 0)
|
|
|
(position 10 10 10)))
|
|
;; block1
|
|
; Render the block.
|
|
(render block1)
|
|
;; ()
|
|
; Render the block to a file in Targa format.
|
|
(render:targa block1 "entities1.tga" #f #t)
|
|
;; "entities1.tga"
|