Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

:NEW

source files: [xc]cmr.[ch]

SYNTAX

(SEND CLASS-CAMERA :NEW
    [ :LOCATION '(<x> <y> <z>) ] 
    [ :TARGET   '(<x> <y> <z>) ] 
    [ :UP       '(<x> <y> <z>) ] 
    [ { :RADIANS <angleofview> | :DEGREES  } ]
    [ :DIAMETER <clippingdepth> ]
    [ :VIEWPORT-SPOT-ROW  <fix:row>  ]
    [ :VIEWPORT-SPOT-COL  <fix:col>  ] 
    [ :VIEWPORT-SIZE-ROWS <fix:rows> ]
    [ :VIEWPORT-SIZE-COLS <fix:cols> ]
    [ :VIEWPORT-SPOT-X    <flo:x>    ]
    [ :VIEWPORT-SPOT-Y    <flo:y>    ] 
    [ :VIEWPORT-SIZE-X    <flo:x>    ]
    [ :VIEWPORT-SIZE-Y    <flo:y>    ]
    [ :LEFT <flo> :RIGHT  <flo>      ]
    [ :TOP  <flo> :BOTTOM <flo>      ]
    [ :NEAR <flo> :FAR    <flo>      ]

DESCRIPTION

Creates a new camera. Default viewing and perspective transforms are created. The options :LOCATION through :DIAMETER above get passed to the viewing matrix.

The :VIEWPORT-* options specify the lower-left corner and size-in-pixels of the viewport to render the scene in, relative to the graphics window. The origin is at lower-left. See ;GET ;SET for details.


Go to the first, previous, next, last section, table of contents.