Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
tga.h File Reference
#include "../../igl_inline.h"
#include "../../opengl2/gl.h"
#include <stdio.h>
#include "tga.cpp"
+ Include dependency graph for tga.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  igl::opengl::gliGenericImage
 
struct  igl::opengl::TgaHeader
 

Namespaces

namespace  igl
 
namespace  igl::opengl
 

Macros

#define TGA_TYPE_MAPPED   1
 
#define TGA_TYPE_COLOR   2
 
#define TGA_TYPE_GRAY   3
 
#define TGA_TYPE_MAPPED_RLE   9
 
#define TGA_TYPE_COLOR_RLE   10
 
#define TGA_TYPE_GRAY_RLE   11
 
#define TGA_DESC_ABITS   0x0f
 
#define TGA_DESC_HORIZONTAL   0x10
 
#define TGA_DESC_VERTICAL   0x20
 
#define TGA_SIGNATURE   "TRUEVISION-XFILE"
 

Functions

IGL_INLINE gliGenericImageigl::opengl::gliReadTGA (FILE *fp, char *name, int hflip, int vflip)
 
IGL_INLINE int igl::opengl::gli_verbose (int new_verbose)
 
IGL_INLINE int igl::opengl::gliVerbose (int newVerbose)
 
IGL_INLINE void igl::opengl::writeTGA (gliGenericImage *image, FILE *fp)
 

Class Documentation

◆ igl::opengl::gliGenericImage

struct igl::opengl::gliGenericImage
Class Members
GLubyte * cmap
GLsizei cmapEntries
GLenum cmapFormat
GLint components
GLenum format
GLsizei height
GLubyte * pixels
GLsizei width

◆ igl::opengl::TgaHeader

struct igl::opengl::TgaHeader
Class Members
unsigned char bpp
unsigned char colorMapIndexHi
unsigned char colorMapIndexLo
unsigned char colorMapLengthHi
unsigned char colorMapLengthLo
unsigned char colorMapSize
unsigned char colorMapType
unsigned char descriptor
unsigned char heightHi
unsigned char heightLo
unsigned char idLength
unsigned char imageType
unsigned char widthHi
unsigned char widthLo
unsigned char xOriginHi
unsigned char xOriginLo
unsigned char yOriginHi
unsigned char yOriginLo

◆ igl::opengl::TgaFooter

struct igl::opengl::TgaFooter
Class Members
unsigned int developerDirectoryOffset
char dot
unsigned int extensionAreaOffset
char null
char signature[16]

Macro Definition Documentation

◆ TGA_DESC_ABITS

#define TGA_DESC_ABITS   0x0f

◆ TGA_DESC_HORIZONTAL

#define TGA_DESC_HORIZONTAL   0x10

◆ TGA_DESC_VERTICAL

#define TGA_DESC_VERTICAL   0x20

◆ TGA_SIGNATURE

#define TGA_SIGNATURE   "TRUEVISION-XFILE"

◆ TGA_TYPE_COLOR

#define TGA_TYPE_COLOR   2

◆ TGA_TYPE_COLOR_RLE

#define TGA_TYPE_COLOR_RLE   10

◆ TGA_TYPE_GRAY

#define TGA_TYPE_GRAY   3

◆ TGA_TYPE_GRAY_RLE

#define TGA_TYPE_GRAY_RLE   11

◆ TGA_TYPE_MAPPED

#define TGA_TYPE_MAPPED   1

◆ TGA_TYPE_MAPPED_RLE

#define TGA_TYPE_MAPPED_RLE   9