- Main Page
- Data Structures
- Files

- File List
- Globals

# E:/DevIL/src-ILUT/include/ilut_states.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Utility Toolkit Sources
    00004 // Copyright (C) 2000-2002 by Denton Woods
    00005 // Last modified: 05/28/2001 <--Y2K Compliant! =]
    00006 //
    00007 // Filename: src-ILUT/include/ilut_states.h
    00008 //
    00009 // Description: State machine
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012
    00013 #ifndef STATES_H
    00014 #define STATES_H
    00015
    00016 #include "ilut_internal.h"
    00017
    00018
    00019 ILboolean ilutAble(ILenum Mode, ILboolean Flag);
    00020
    00021
    00022 #define ILUT_ATTRIB_STACK_MAX 32
    00023
    00024 ILuint ilutCurrentPos = 0;  // Which position on the stack
    00025
    00026 //
    00027 // Various states
    00028 //
    00029
    00030 typedef struct ILUT_STATES
    00031 {
    00032
    00033         // ILUT states
    00034         ILboolean       ilutUsePalettes;
    00035         ILboolean       ilutOglConv;
    00036         ILboolean       ilutForceIntegerFormat;
    00037         ILenum          ilutDXTCFormat;
    00038
    00039         // GL states
    00040         ILboolean       ilutUseS3TC;
    00041         ILboolean       ilutGenS3TC;
    00042         ILboolean       ilutAutodetectTextureTarget;
    00043         ILint           MaxTexW;
    00044         ILint           MaxTexH;
    00045         ILint           MaxTexD;
    00046
    00047         // D3D states
    00048         ILuint          D3DMipLevels;
    00049         ILenum          D3DPool;
    00050         ILint           D3DAlphaKeyColor; // 0x00rrggbb format , -1 for none
    00051
    00052 } ILUT_STATES;
    00053
    00054 ILUT_STATES ilutStates[ILUT_ATTRIB_STACK_MAX];
    00055
    00056
    00057 #endif//STATES_H