OPEN_GL_PRINTER1@

Platform

Win32, x64

Purpose

To attach a printer to OpenGL.

Syntax

INTEGER FUNCTION OPEN_GL_PRINTER1@(ID,ATTRIB,WIDTH,HEIGHT)
INTEGER ID,ATTRIB,WIDTH,HEIGHT

Description

This function is similar to OPEN_GL_PRINTER@ but it does not display the Open Printer dialog box. Instead it uses either the default printer or the printer selected in an earlier call to OPEN_GL_PRINTER@.

ID is the user assigned printer identification number.

ATTRIB is a variable that describes the buffering that is required and is a combination of the following flags.

GL_DOUBLE_BIT

GL_STENCIL_BIT

GL_ACCUM_BIT

GL_DEPTH16_BIT

GL_DEPTH32_BIT

These flags may be added together.

When the function returns, WIDTH and HEIGHT provide the width and height of the printer page in pixels.

Note that ID and ATTRIB are input values whilst WIDTH and HEIGHT are output values.

Return value

This function returns 1 for success, otherwise zero.

See also

OPEN_GL_PRINTER@, PRINT_OPENGL_IMAGE@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited