Skip to main content.

Public Enumerations

Enums for image and file type identification

ImgFormat

Definition

    enum ImgFormat
    {
    • FORMAT_NONE = 0,
    • FORMAT_RGB,
    • FORMAT_BGR,
    • FORMAT_RGBA
    • FORMAT_BGRA,
    • FORMAT_ABGR,
    • FORMAT_DXT1,
    • FORMAT_DXT2
    • FORMAT_DXT3,
    • FORMAT_DXT4,
    • FORMAT_DXT5,
    • FORMAT_3DC,
    • FORMAT_R32G32B32A32F
    • FORMAT_R16G16B16A16F
    • FORMAT_G16R16F
    • FORMAT_G32R32F
    • FORMAT_R16F
    • FORMAT_R32F
    • FORMAT_R5G6B5
    • FORMAT_X1R5G5B5
    • FORMAT_A1R5G5B5
    • FORMAT_L8
    • FORMAT_A8L8
    • FORMAT_L16
    • FORMAT_A8
    • FORMAT_G16R16
    • FORMAT_V8U8
    • FORMAT_V16U16
    • FORMAT_Q8W8V8U8
    • FORMAT_RGBA16
    • FORMAT_RGB16
    • FORMAT_A16
    • FORMAT_A16L16
    }

Other Details / Notes

  • Used to identify the type of image represented by an Image struct
  • Details on formats can be found here

FileTypes

Definition

  • const int TYPE_BMP = 1;
  • const int TYPE_JPG = 2;
  • const int TYPE_TGA = 3;
  • const int TYPE_PNG = 4;
  • const int TYPE_DDS = 5;
  •  

Other Details / Notes

  • Used to tell the loader which file type you want to use. Also used internally in the registering of loaders on start up.
  • Changed from an enum to constants to allow for the registering of extra types at runtime.

Copyright © 2004, Rob Jones