Visualization Library 2.0.0

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Enumerations | Functions
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.

Macros

#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)
 

Macro Definition Documentation

◆ IS_BGR8

#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().

◆ IS_BGRA8

#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().

◆ IS_BGRX8

#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().

◆ IS_DXT1

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

Definition at line 158 of file ioDDS.cpp.

Referenced by vl::loadDDS().

◆ IS_DXT3

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

Definition at line 160 of file ioDDS.cpp.

Referenced by vl::loadDDS().

◆ IS_DXT5

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

Definition at line 162 of file ioDDS.cpp.

Referenced by vl::loadDDS().

◆ IS_GRAY8

#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().

◆ IS_GRAY8_ALPHA8

#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().

◆ IS_PALETTE8

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

Definition at line 156 of file ioDDS.cpp.

Referenced by vl::loadDDS().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 200 of file ioDDS.cpp.

Function Documentation

◆ VL_COMPILE_TIME_CHECK()

VL_COMPILE_TIME_CHECK ( sizeof(DDSURFACEDESC2)  = =124)