Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version