Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## make-texture-info

Arguments: &key width height bits-per-pixel x-device-units-per-m y-device-units-per-m colors invert-p

Makes a texture-info structure, which is used along with a texture to draw a pixmap using copy-pixels-to-stream and so on.

The texture-info functionality remains largely for backward compatibility, and it is now recommended that pixmap objects be used instead since they encapsulate the separate texture, texture-info, mask-texture, and pixmap-handle objects.

A texture-info is a structure with fields (corresponding to the arguments):

- width: an integer number of pixels.
- height: an integer number of pixels.
- bits-per-pixel: either 1,4,8, or 24
- x-device-units-per-m: an integer specifying the horizontal resolution. `nil` means match stream.
- y-device-units-per-m: an integer specifying the vertical resolution. `nil` means match stream.
- colors: either a palette, or vector of rgb colors (see make-rgb), :rgb for 24 bit or `nil`, which means use palette of target stream.
- invert-p: a boolean; if true, inverted.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version