8#ifndef IGL_OPENGL_TGA_H
9#define IGL_OPENGL_TGA_H
10#include "../../igl_inline.h"
12#include "../../opengl2/gl.h"
45#define TGA_TYPE_MAPPED 1
46#define TGA_TYPE_COLOR 2
47#define TGA_TYPE_GRAY 3
48#define TGA_TYPE_MAPPED_RLE 9
49#define TGA_TYPE_COLOR_RLE 10
50#define TGA_TYPE_GRAY_RLE 11
75#define TGA_DESC_ABITS 0x0f
76#define TGA_DESC_HORIZONTAL 0x10
77#define TGA_DESC_VERTICAL 0x20
85#define TGA_SIGNATURE "TRUEVISION-XFILE"
102#ifndef IGL_STATIC_LIBRARY
#define IGL_INLINE
Definition igl_inline.h:15
void writeTGA(gliGenericImage *image, FILE *fp)
int gli_verbose(int new_verbose)
gliGenericImage * gliReadTGA(FILE *fp, char *name, int hflip, int vflip)
int gliVerbose(int newVerbose)
GLenum cmapFormat
Definition tga.h:33
GLubyte * cmap
Definition tga.h:34
GLsizei height
Definition tga.h:28
GLsizei width
Definition tga.h:27
GLsizei cmapEntries
Definition tga.h:32
GLubyte * pixels
Definition tga.h:36
GLint components
Definition tga.h:29
GLenum format
Definition tga.h:30