[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

fudge Subroutine

Purpose

Specifies pixel values that are added to a window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void fudge(Int32 xfudge, Int32 yfudge)

FORTRAN Syntax

SUBROUTINE FUDGE(xfudge, yfudge)
INTEGER*4 xfudge, yfudge

Description

The fudge subroutine specifies pixel values that are added to the dimensions of a window when it is sized. Typically, this subroutine is used to create interior window borders. Call the fudge subroutine before calling the winopen subroutine.

The fudge subroutine is useful in conjunction with the stepunit and keepaspect subroutines. With the stepunit subroutine, the window size for integers m and n is:

width = xunit * m + xfudge
height = yunit * n + yfudge

With the keepaspect subroutine the window size is (width, height), where:

(width - xfudge) * yaspect = (height - yfudge) * xaspect
Note: This subroutine cannot be used to add to a display list.

Parameters

xfudge Specifies the number of pixels added in the x direction.
yfudge Specifies the number of pixels added in the y direction.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Obtaining the size of the window with the getsize subroutine.

Removing the border from a window with the noborder subroutine.

Specifying a window size change in discrete steps with the stepunit subroutine.

Creating a window with the winopen subroutine.

Creating and Managing Windows.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]