Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Defines | Enumerations | Functions

/home/master/UCL/VisualizationLibrary/src/vlCore/plugins/ioDDS.cpp File Reference

#include "ioDDS.hpp"
#include <vlCore/LoadWriterManager.hpp>
#include <vlCore/VisualizationLibrary.hpp>
#include <vlCore/FileSystem.hpp>
#include <vlCore/VirtualFile.hpp>
#include <vlCore/Image.hpp>
#include <vlCore/ImageTools.hpp>

Go to the source code of this file.

Defines

#define IS_BGRA8(pf)
#define IS_BGRX8(pf)
#define IS_BGR8(pf)
#define IS_GRAY8(pf)
#define IS_GRAY8_ALPHA8(pf)
#define IS_PALETTE8(pf)   isFourCC("P8 ", pf.dwFourCC)
#define IS_DXT1(pf)   isFourCC("DXT1", pf.dwFourCC)
#define IS_DXT3(pf)   isFourCC("DXT3", pf.dwFourCC)
#define IS_DXT5(pf)   isFourCC("DXT5", pf.dwFourCC)

Enumerations

enum  

Functions

 VL_COMPILE_TIME_CHECK (sizeof(DDSURFACEDESC2)==124)

Define Documentation

#define IS_BGRA8 (   pf )
Value:
((pf.dwFlags & DDPF_RGB) && \
     (pf.dwFlags & DDPF_ALPHAPIXELS) && \
     (pf.dwRGBBitCount == 32))

Definition at line 131 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_BGRX8 (   pf )
Value:
((pf.dwFlags & DDPF_RGB) && \
     !(pf.dwFlags & DDPF_ALPHAPIXELS) && \
     (pf.dwRGBBitCount == 32))

Definition at line 136 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_BGR8 (   pf )
Value:
((pf.dwFlags & DDPF_RGB) && \
    !(pf.dwFlags & DDPF_ALPHAPIXELS) && \
     (pf.dwRGBBitCount == 24))

Definition at line 141 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_GRAY8 (   pf )
Value:
((((pf.dwFlags & DDPF_LUMINANCE) || (pf.dwFlags & DDPF_ALPHA) ) && \
    (pf.dwRGBBitCount == 8) && !(pf.dwFlags & DDPF_ALPHAPIXELS) ) || \
     isFourCC("G8  ", pf.dwFourCC ) )

Definition at line 146 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_GRAY8_ALPHA8 (   pf )
Value:
(((pf.dwFlags & DDPF_LUMINANCE) && \
    (pf.dwRGBBitCount == 16) && (pf.dwFlags & DDPF_ALPHAPIXELS)) || \
     isFourCC("AG8 ", pf.dwFourCC ) )

Definition at line 151 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_PALETTE8 (   pf )    isFourCC("P8 ", pf.dwFourCC)

Definition at line 156 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_DXT1 (   pf )    isFourCC("DXT1", pf.dwFourCC)

Definition at line 158 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_DXT3 (   pf )    isFourCC("DXT3", pf.dwFourCC)

Definition at line 160 of file ioDDS.cpp.

Referenced by vl::loadDDS().

#define IS_DXT5 (   pf )    isFourCC("DXT5", pf.dwFourCC)

Definition at line 162 of file ioDDS.cpp.

Referenced by vl::loadDDS().


Enumeration Type Documentation

anonymous enum

Definition at line 200 of file ioDDS.cpp.


Function Documentation

VL_COMPILE_TIME_CHECK ( sizeof(DDSURFACEDESC2)  = =124 )

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:04.
Permission is granted to use this page to write and publish articles regarding Visualization Library.