Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-tga Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 04:05:40 2022 GMT+0.
Next: Systems, Previous: The cl-tga Reference Manual, Up: The cl-tga Reference Manual [Contents][Index]
Cl-tga was written to facilitate loading .tga files into OpenGL programs. It's a very simple library, and, at the moment, only supports non-RLE encoded forms of the files, though it shouldn't be hard to fix that.
Cl-tga does not re-order the color bytes from the file body. tga files are econded in bgr byte-order, and so loading code using cl-opengl should specify the :bgr or :bgra data format in order to not have wonky looking textures, eg.:
(gl:tex-image-2d :texture-2d 0 :rgba
(tga:image-width image) (tga:image-height image)
0
(ecase (tga:image-channels image)
(3 :bgr)
(4 :bgra))
:unsigned-byte (tga:image-data image))
Takes a filespec and returns a cl-tga::tga instance that contains the file data
All of these functions take only a cl-tga::tga instance and return properties of it:
height: height of the image
width: width of the image
channels: 3 for rgb, 4 for rgba
bpp: bytes per pixel, will be (member 16 24 32)
data: The raw image data encoded as a (vector (unsigned-byte 8)) in bgr(a) color order
Next: Files, Previous: Introduction, Up: The cl-tga Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Describe cl-tga here
Matt Novenstern <fisxoj@gmail.com>
MIT
Next: Packages, Previous: Systems, Up: The cl-tga Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: cl-tga/package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
cl-tga (system).
Next: cl-tga/cl-tga.lisp, Previous: cl-tga/cl-tga.asd, Up: Lisp [Contents][Index]
cl-tga (system).
Previous: cl-tga/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
cl-tga (system).
Next: Definitions, Previous: Files, Up: The cl-tga Reference Manual [Contents][Index]
Packages are listed by definition order.
tga
common-lisp.
Next: Indexes, Previous: Packages, Up: The cl-tga Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Generic functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
Previous: Ordinary functions, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Internals, Up: Internals [Contents][Index]
Next: Classes, Previous: Special variables, Up: Internals [Contents][Index]
Previous: Ordinary functions, Up: Internals [Contents][Index]
common-lisp.
fixnum
0
fixnum
0
fixnum
0
fixnum
0
fixnum
0
fixnum
0
fixnum
0
0
Previous: Definitions, Up: The cl-tga Reference Manual [Contents][Index]
Jump to: | (
F G I M R S |
---|
Jump to: | (
F G I M R S |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | +
B C H I L S W |
---|
Jump to: | +
B C H I L S W |
---|
Jump to: | C F P S T |
---|
Jump to: | C F P S T |
---|