Action:
|
Prints the pixel format used for the GL view.
|
|
Filename:
|
gl/gl_scm/gl_scm.cxx
|
|
Syntax:
|
(gl:get-pixel-format [view])
|
|
Arg Types:
|
view
|
view
|
|
Returns:
|
view
|
|
Description:
|
The pixel format can be used to determine if hardware acceleration is being used.
|
|
Limitations:
|
Supported on NT platforms only.
|
|
Example:
|
; gl:get-pixel-format
|
|
; Print the pixel format.
|
|
(define GL (view:gl))
|
|
; Create a cylinder.
|
|
(define cyl1
|
|
|
(solid:cylinder (position 10 -15 0)
|
|
|
(position 20 10 10) 22))
|
|
;; cyl1
|
|
; Output the cylinder to printer.
|
|
(gl:get-pixel-format GL)
|
|
;; GL view is using PixelFormat 4
|
|
;; "gl_context"
|