OgrePixelFormat.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef _PixelFormat_H__
#define _PixelFormat_H__
#include "OgrePrerequisites.h"
#include "OgreCommon.h"
#include "OgreHeaderPrefix.h"
namespace Ogre {
enum PixelFormat
{
PF_UNKNOWN = 0,
PF_L8 = 1,
PF_BYTE_L = PF_L8,
PF_L16 = 2,
PF_SHORT_L = PF_L16,
PF_A8 = 3,
PF_BYTE_A = PF_A8,
PF_A4L4 = 4,
PF_BYTE_LA = 5,
PF_R5G6B5 = 6,
PF_B5G6R5 = 7,
PF_R3G3B2 = 31,
PF_A4R4G4B4 = 8,
PF_A1R5G5B5 = 9,
PF_R8G8B8 = 10,
PF_B8G8R8 = 11,
PF_A8R8G8B8 = 12,
PF_A8B8G8R8 = 13,
PF_B8G8R8A8 = 14,
PF_R8G8B8A8 = 28,
PF_X8R8G8B8 = 26,
PF_X8B8G8R8 = 27,
#if OGRE_ENDIAN == OGRE_ENDIAN_BIG
PF_BYTE_RGB = PF_R8G8B8,
PF_BYTE_BGR = PF_B8G8R8,
PF_BYTE_BGRA = PF_B8G8R8A8,
PF_BYTE_RGBA = PF_R8G8B8A8,
#else
PF_BYTE_RGB = PF_B8G8R8,
PF_BYTE_BGR = PF_R8G8B8,
PF_BYTE_BGRA = PF_A8R8G8B8,
PF_BYTE_RGBA = PF_A8B8G8R8,
#endif
PF_A2R10G10B10 = 15,
PF_A2B10G10R10 = 16,
PF_DXT1 = 17,
PF_DXT2 = 18,
PF_DXT3 = 19,
PF_DXT4 = 20,
PF_DXT5 = 21,
PF_FLOAT16_R = 32,
PF_FLOAT16_RGB = 22,
PF_FLOAT16_RGBA = 23,
// 32-bit pixel format, 32 bits (float) for red
PF_FLOAT32_R = 33,
PF_FLOAT32_RGB = 24,
PF_FLOAT32_RGBA = 25,
PF_FLOAT16_GR = 35,
PF_FLOAT32_GR = 36,
PF_DEPTH = 29,
PF_SHORT_RGBA = 30,
PF_SHORT_GR = 34,
PF_SHORT_RGB = 37,
PF_PVRTC_RGB2 = 38,
PF_PVRTC_RGBA2 = 39,
PF_PVRTC_RGB4 = 40,
PF_PVRTC_RGBA4 = 41,
PF_PVRTC2_2BPP = 42,
PF_PVRTC2_4BPP = 43,
PF_R11G11B10_FLOAT = 44,
PF_R8_UINT = 45,
PF_R8G8_UINT = 46,
PF_R8G8B8_UINT = 47,
PF_R8G8B8A8_UINT = 48,
PF_R16_UINT = 49,
PF_R16G16_UINT = 50,
PF_R16G16B16_UINT = 51,
PF_R16G16B16A16_UINT = 52,
PF_R32_UINT = 53,
PF_R32G32_UINT = 54,
PF_R32G32B32_UINT = 55,
PF_R32G32B32A32_UINT = 56,
PF_R8_SINT = 57,
PF_R8G8_SINT = 58,
PF_R8G8B8_SINT = 59,
PF_R8G8B8A8_SINT = 60,
PF_R16_SINT = 61,
PF_R16G16_SINT = 62,
PF_R16G16B16_SINT = 63,
PF_R16G16B16A16_SINT = 64,
PF_R32_SINT = 65,
PF_R32G32_SINT = 66,
PF_R32G32B32_SINT = 67,
PF_R32G32B32A32_SINT = 68,
PF_R9G9B9E5_SHAREDEXP = 69,
PF_BC4_UNORM = 70,
PF_BC4_SNORM = 71,
PF_BC5_UNORM = 72,
PF_BC5_SNORM = 73,
PF_BC6H_UF16 = 74,
PF_BC6H_SF16 = 75,
PF_BC7_UNORM = 76,
PF_BC7_UNORM_SRGB = 77,
PF_R8 = 78,
PF_RG8 = 79,
PF_R8_SNORM = 80,
PF_R8G8_SNORM = 81,
PF_R8G8B8_SNORM = 82,
PF_R8G8B8A8_SNORM = 83,
PF_R16_SNORM = 84,
PF_R16G16_SNORM = 85,
PF_R16G16B16_SNORM = 86,
PF_R16G16B16A16_SNORM = 87,
PF_ETC1_RGB8 = 88,
PF_ETC2_RGB8 = 89,
PF_ETC2_RGBA8 = 90,
PF_ETC2_RGB8A1 = 91,
PF_ATC_RGB = 92,
PF_ATC_RGBA_EXPLICIT_ALPHA = 93,
PF_ATC_RGBA_INTERPOLATED_ALPHA = 94,
// Number of pixel formats currently defined
PF_COUNT = 95
};
typedef vector<PixelFormat>::type PixelFormatList;
enum PixelFormatFlags {
PFF_HASALPHA = 0x00000001,
PFF_COMPRESSED = 0x00000002,
PFF_FLOAT = 0x00000004,
PFF_DEPTH = 0x00000008,
PFF_NATIVEENDIAN = 0x00000010,
PFF_LUMINANCE = 0x00000020,
PFF_INTEGER = 0x00000040
};
enum PixelComponentType
{
PCT_BYTE = 0,
PCT_SHORT = 1,
PCT_FLOAT16 = 2,
PCT_FLOAT32 = 3,
PCT_SINT = 4,
PCT_UINT = 5,
PCT_COUNT = 6
};
class _OgreExport PixelBox: public Box, public ImageAlloc {
public:
PixelBox() {}
~PixelBox() {}
PixelBox(const Box &extents, PixelFormat pixelFormat, void *pixelData=0):
Box(extents), data(pixelData), format(pixelFormat)
{
setConsecutive();
}
PixelBox(uint32 width, uint32 height, uint32 depth, PixelFormat pixelFormat, void *pixelData=0):
Box(0, 0, 0, width, height, depth),
data(pixelData), format(pixelFormat)
{
setConsecutive();
}
void *data;
PixelFormat format;
size_t rowPitch;
size_t slicePitch;
void setConsecutive()
{
rowPitch = getWidth();
slicePitch = getWidth()*getHeight();
}
size_t getRowSkip() const { return rowPitch - getWidth(); }
size_t getSliceSkip() const { return slicePitch - (getHeight() * rowPitch); }
bool isConsecutive() const
{
return rowPitch == getWidth() && slicePitch == getWidth()*getHeight();
}
size_t getConsecutiveSize() const;
PixelBox getSubVolume(const Box &def) const;
void* getTopLeftFrontPixelPtr() const;
ColourValue getColourAt(size_t x, size_t y, size_t z);
void setColourAt(ColourValue const &cv, size_t x, size_t y, size_t z);
};
class _OgreExport PixelUtil {
public:
static size_t getNumElemBytes( PixelFormat format );
static size_t getNumElemBits( PixelFormat format );
static size_t getMemorySize(uint32 width, uint32 height, uint32 depth, PixelFormat format);
static unsigned int getFlags( PixelFormat format );
static bool hasAlpha(PixelFormat format);
static bool isFloatingPoint(PixelFormat format);
static bool isInteger(PixelFormat format);
static bool isCompressed(PixelFormat format);
static bool isDepth(PixelFormat format);
static bool isNativeEndian(PixelFormat format);
static bool isLuminance(PixelFormat format);
static bool isValidExtent(size_t width, size_t height, size_t depth, PixelFormat format);
static void getBitDepths(PixelFormat format, int rgba[4]);
static void getBitMasks(PixelFormat format, uint64 rgba[4]);
static void getBitShifts(PixelFormat format, unsigned char rgba[4]);
static String getFormatName(PixelFormat srcformat);
static bool isAccessible(PixelFormat srcformat);
static PixelComponentType getComponentType(PixelFormat fmt);
static size_t getComponentCount(PixelFormat fmt);
static PixelFormat getFormatFromName(const String& name, bool accessibleOnly = false, bool caseSensitive = false);
static String getBNFExpressionOfPixelFormats(bool accessibleOnly = false);
static PixelFormat getFormatForBitDepths(PixelFormat fmt, ushort integerBits, ushort floatBits);
static void packColour(const ColourValue &colour, const PixelFormat pf, void* dest);
static void packColour(const uint8 r, const uint8 g, const uint8 b, const uint8 a, const PixelFormat pf, void* dest);
static void packColour(const float r, const float g, const float b, const float a, const PixelFormat pf, void* dest);
static void unpackColour(ColourValue *colour, PixelFormat pf, const void* src);
static void unpackColour(uint8 *r, uint8 *g, uint8 *b, uint8 *a, PixelFormat pf, const void* src);
static void unpackColour(float *r, float *g, float *b, float *a, PixelFormat pf, const void* src);
static void bulkPixelConversion(void *src, PixelFormat srcFormat, void *dst, PixelFormat dstFormat, unsigned int count);
static void bulkPixelConversion(const PixelBox &src, const PixelBox &dst);
static void bulkPixelVerticalFlip(const PixelBox &box);
};
}
#include "OgreHeaderSuffix.h"
#endif
Ogre::PF_R8G8B8_UINT
24-bit pixel format, 8 bits red (unsigned int), 8 bits blue (unsigned int), 8 bits green (unsigned in...
Definition: OgrePixelFormat.h:164
Ogre::PF_BYTE_A
Definition: OgrePixelFormat.h:55
Ogre::PF_ATC_RGBA_INTERPOLATED_ALPHA
ATC (AMD_compressed_ATC_texture)
Definition: OgrePixelFormat.h:258
Ogre::PF_RG8
16-bit pixel format, 8 bits red, 8 bits green.
Definition: OgrePixelFormat.h:228
Ogre::PF_FLOAT16_RGBA
64-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue...
Definition: OgrePixelFormat.h:126
Ogre::PCT_BYTE
Definition: OgrePixelFormat.h:290
Ogre::PF_DXT1
DDS (DirectDraw Surface) DXT1 format.
Definition: OgrePixelFormat.h:112
Ogre::PixelBox::getRowSkip
size_t getRowSkip() const
Get the number of elements between one past the rightmost pixel of one row and the leftmost pixel of ...
Definition: OgrePixelFormat.h:365
Ogre::PixelBox::slicePitch
size_t slicePitch
Number of elements between the top left pixel of one (depth) slice and the top left pixel of the next...
Definition: OgrePixelFormat.h:351
Ogre::PF_BYTE_RGBA
4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha ...
Definition: OgrePixelFormat.h:105
Ogre::PF_ATC_RGB
ATC (AMD_compressed_ATC_texture)
Definition: OgrePixelFormat.h:254
Ogre::PF_A8R8G8B8
32-bit pixel format, 8 bits for alpha, red, green and blue.
Definition: OgrePixelFormat.h:75
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::PF_R16_SNORM
16-bit pixel format, 16 bits red (signed normalised int).
Definition: OgrePixelFormat.h:238
Ogre::PixelBox::format
PixelFormat format
The pixel format.
Definition: OgrePixelFormat.h:340
Ogre::PF_R8_UINT
8-bit pixel format, 8 bits red (unsigned int).
Definition: OgrePixelFormat.h:160
Ogre::PF_ETC2_RGB8A1
ETC2 (Ericsson Texture Compression)
Definition: OgrePixelFormat.h:252
Ogre::PF_DXT4
DDS (DirectDraw Surface) DXT4 format.
Definition: OgrePixelFormat.h:118
Ogre::PixelBox::getSliceSkip
size_t getSliceSkip() const
Get the number of elements between one past the right bottom pixel of one slice and the left top pixe...
Definition: OgrePixelFormat.h:370
Ogre::PF_UNKNOWN
Unknown pixel format.
Definition: OgrePixelFormat.h:46
Ogre::PCT_FLOAT16
Short per component (16 bit fixed 0.0..1.0))
Definition: OgrePixelFormat.h:292
Ogre::PF_R8G8_UINT
16-bit pixel format, 8 bits red (unsigned int), 8 bits blue (unsigned int).
Definition: OgrePixelFormat.h:162
Ogre::PixelBox::rowPitch
size_t rowPitch
Number of elements between the leftmost pixel of one row and the left pixel of the next...
Definition: OgrePixelFormat.h:345
Ogre::PF_A2B10G10R10
32-bit pixel format, 10 bits for blue, green and red, 2 bits for alpha.
Definition: OgrePixelFormat.h:110
Ogre::PF_R16G16_UINT
32-bit pixel format, 16 bits red (unsigned int), 16 bits blue (unsigned int).
Definition: OgrePixelFormat.h:170
Ogre::PF_R3G3B2
8-bit pixel format, 2 bits blue, 3 bits green, 3 bits red.
Definition: OgrePixelFormat.h:65
Ogre::PF_R32G32_UINT
64-bit pixel format, 32 bits red (unsigned int), 32 bits blue (unsigned int).
Definition: OgrePixelFormat.h:178
Ogre::uint64
unsigned long long uint64
Definition: OgrePlatform.h:370
Ogre::PixelFormatFlags
PixelFormatFlags
Flags defining some on/off properties of pixel formats.
Definition: OgrePixelFormat.h:267
Ogre::PixelFormatList
vector< PixelFormat >::type PixelFormatList
Definition: OgrePixelFormat.h:262
Ogre::PF_ETC1_RGB8
ETC1 (Ericsson Texture Compression)
Definition: OgrePixelFormat.h:246
Ogre::PF_R16G16B16_UINT
48-bit pixel format, 16 bits red (unsigned int), 16 bits blue (unsigned int), 16 bits green (unsigned...
Definition: OgrePixelFormat.h:172
Ogre::PF_DXT2
DDS (DirectDraw Surface) DXT2 format.
Definition: OgrePixelFormat.h:114
Ogre::PF_R16G16B16A16_UINT
64-bit pixel format, 16 bits red (unsigned int), 16 bits blue (unsigned int), 16 bits green (unsigned...
Definition: OgrePixelFormat.h:174
Ogre::PF_R5G6B5
16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue.
Definition: OgrePixelFormat.h:61
Ogre::PixelBox::setConsecutive
void setConsecutive()
Set the rowPitch and slicePitch so that the buffer is laid out consecutive in memory.
Definition: OgrePixelFormat.h:356
Ogre::ColourValue
Class representing colour.
Definition: OgreColourValue.h:57
Ogre::PF_R32G32B32A32_UINT
128-bit pixel format, 32 bits red (unsigned int), 32 bits blue (unsigned int), 32 bits green (unsigne...
Definition: OgrePixelFormat.h:182
Ogre::PF_X8R8G8B8
32-bit pixel format, 8 bits for red, 8 bits for green, 8 bits for blue like PF_A8R8G8B8, but alpha will get discarded
Definition: OgrePixelFormat.h:84
Ogre::PCT_SINT
32 bit float per component
Definition: OgrePixelFormat.h:294
Ogre::PCT_COUNT
Unsigned integer per component.
Definition: OgrePixelFormat.h:296
Ogre::PF_R8_SNORM
8-bit pixel format, 8 bits red (signed normalised int).
Definition: OgrePixelFormat.h:230
Ogre::PFF_INTEGER
This is an integer format.
Definition: OgrePixelFormat.h:284
Ogre::PixelFormat
PixelFormat
The pixel format used for images, textures, and render surfaces.
Definition: OgrePixelFormat.h:43
Ogre::PF_R8G8B8A8_UINT
32-bit pixel format, 8 bits red (unsigned int), 8 bits blue (unsigned int), 8 bits green (unsigned in...
Definition: OgrePixelFormat.h:166
Ogre::PF_R8G8_SNORM
16-bit pixel format, 8 bits red (signed normalised int), 8 bits blue (signed normalised int)...
Definition: OgrePixelFormat.h:232
Ogre::PF_R16G16B16A16_SINT
64-bit pixel format, 16 bits red (signed int), 16 bits blue (signed int), 16 bits green (signed int)...
Definition: OgrePixelFormat.h:198
Ogre::PF_PVRTC_RGB2
PVRTC (PowerVR) RGB 2 bpp.
Definition: OgrePixelFormat.h:146
Ogre::PixelBox::~PixelBox
~PixelBox()
Definition: OgrePixelFormat.h:308
Ogre::PF_ATC_RGBA_EXPLICIT_ALPHA
ATC (AMD_compressed_ATC_texture)
Definition: OgrePixelFormat.h:256
Ogre::PF_BC4_SNORM
DDS (DirectDraw Surface) BC4 format (signed normalised)
Definition: OgrePixelFormat.h:212
Ogre::PF_BC5_SNORM
DDS (DirectDraw Surface) BC5 format (signed normalised)
Definition: OgrePixelFormat.h:216
Ogre::PF_R16G16B16A16_SNORM
64-bit pixel format, 16 bits red (signed normalised int), 16 bits blue (signed normalised int)...
Definition: OgrePixelFormat.h:244
Ogre::PF_L8
8-bit pixel format, all bits luminance.
Definition: OgrePixelFormat.h:48
Ogre::Box
Structure used to define a box in a 3-D integer space.
Definition: OgreCommon.h:659
Ogre::PF_R32G32B32_SINT
96-bit pixel format, 32 bits red (signed int), 32 bits blue (signed int), 32 bits green (signed int)...
Definition: OgrePixelFormat.h:204
Ogre::PF_R9G9B9E5_SHAREDEXP
32-bit pixel format, 9 bits for blue, green, red plus a 5 bit exponent.
Definition: OgrePixelFormat.h:208
Ogre::PF_FLOAT32_GR
64-bit, 2-channel floating point pixel format, 32-bit green, 32-bit red
Definition: OgrePixelFormat.h:136
OgreCommon.h
Ogre::PF_PVRTC_RGB4
PVRTC (PowerVR) RGB 4 bpp.
Definition: OgrePixelFormat.h:150
Ogre::PF_COUNT
Definition: OgrePixelFormat.h:260
Ogre::PF_R8
8-bit pixel format, all bits red.
Definition: OgrePixelFormat.h:226
OgrePrerequisites.h
Ogre::PF_L16
16-bit pixel format, all bits luminance.
Definition: OgrePixelFormat.h:51
Ogre::PF_DXT5
DDS (DirectDraw Surface) DXT5 format.
Definition: OgrePixelFormat.h:120
Ogre::PF_BYTE_L
Definition: OgrePixelFormat.h:49
Ogre::PF_BC4_UNORM
DDS (DirectDraw Surface) BC4 format (unsigned normalised)
Definition: OgrePixelFormat.h:210
Ogre::PF_X8B8G8R8
32-bit pixel format, 8 bits for blue, 8 bits for green, 8 bits for red like PF_A8B8G8R8, but alpha will get discarded
Definition: OgrePixelFormat.h:87
Ogre::PixelComponentType
PixelComponentType
Pixel component format.
Definition: OgrePixelFormat.h:288
Ogre::PFF_HASALPHA
This format has an alpha channel.
Definition: OgrePixelFormat.h:269
Ogre::PF_R16G16B16_SINT
48-bit pixel format, 16 bits red (signed int), 16 bits blue (signed int), 16 bits green (signed int)...
Definition: OgrePixelFormat.h:196
Ogre::uint8
unsigned char uint8
Definition: OgrePlatform.h:361
Ogre::PF_FLOAT32_R
Definition: OgrePixelFormat.h:128
Ogre::PixelBox::PixelBox
PixelBox(uint32 width, uint32 height, uint32 depth, PixelFormat pixelFormat, void *pixelData=0)
Constructor providing width, height and depth.
Definition: OgrePixelFormat.h:330
Ogre::PF_R32_UINT
32-bit pixel format, 32 bits red (unsigned int).
Definition: OgrePixelFormat.h:176
Ogre::PF_B8G8R8A8
32-bit pixel format, 8 bits for blue, green, red and alpha.
Definition: OgrePixelFormat.h:79
Ogre::PF_BYTE_BGR
3 byte pixel format, 1 byte for blue, 1 byte for green, 1 byte for red
Definition: OgrePixelFormat.h:101
Ogre::PFF_COMPRESSED
This format is compressed.
Definition: OgrePixelFormat.h:272
Ogre::PF_R8G8B8A8
32-bit pixel format, 8 bits for red, green, blue and alpha.
Definition: OgrePixelFormat.h:81
Ogre::PF_PVRTC2_2BPP
PVRTC (PowerVR) Version 2, 2 bpp.
Definition: OgrePixelFormat.h:154
Ogre::PF_SHORT_RGBA
64-bit pixel format, 16 bits for red, green, blue and alpha
Definition: OgrePixelFormat.h:140
Ogre::PFF_DEPTH
This is a depth format (for depth textures)
Definition: OgrePixelFormat.h:276
Ogre::PF_BC7_UNORM_SRGB
DDS (DirectDraw Surface) BC7 format (unsigned normalised sRGB)
Definition: OgrePixelFormat.h:224
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::PF_R32G32_SINT
64-bit pixel format, 32 bits red (signed int), 32 bits blue (signed int).
Definition: OgrePixelFormat.h:202
Ogre::PF_R16G16B16_SNORM
48-bit pixel format, 16 bits red (signed normalised int), 16 bits blue (signed normalised int)...
Definition: OgrePixelFormat.h:242
Ogre::PF_BYTE_RGB
3 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue
Definition: OgrePixelFormat.h:99
Ogre::PFF_LUMINANCE
This is an intensity format instead of a RGB one.
Definition: OgrePixelFormat.h:282
Ogre::PF_R8G8B8
24-bit pixel format, 8 bits for red, green and blue.
Definition: OgrePixelFormat.h:71
Ogre::PCT_FLOAT32
16 bit float per component
Definition: OgrePixelFormat.h:293
Ogre::PF_R32_SINT
32-bit pixel format, 32 bits red (signed int).
Definition: OgrePixelFormat.h:200
Ogre::PF_ETC2_RGB8
ETC2 (Ericsson Texture Compression)
Definition: OgrePixelFormat.h:248
Ogre::PF_FLOAT32_RGB
96-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue ...
Definition: OgrePixelFormat.h:130
OgreHeaderSuffix.h
Ogre::PF_A1R5G5B5
16-bit pixel format, 5 bits for blue, green, red and 1 for alpha.
Definition: OgrePixelFormat.h:69
Ogre::PF_A4R4G4B4
16-bit pixel format, 4 bits for alpha, red, green and blue.
Definition: OgrePixelFormat.h:67
Ogre::PF_B5G6R5
16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue.
Definition: OgrePixelFormat.h:63
Ogre::PixelUtil
Some utility functions for packing and unpacking pixel data.
Definition: OgrePixelFormat.h:417
Ogre::uint32
unsigned int uint32
Definition: OgrePlatform.h:359
Ogre::PCT_UINT
Signed integer per component.
Definition: OgrePixelFormat.h:295
Ogre::PF_R16_SINT
16-bit pixel format, 16 bits red (signed int).
Definition: OgrePixelFormat.h:192
Ogre::PFF_NATIVEENDIAN
Format is in native endian.
Definition: OgrePixelFormat.h:279
Ogre::PF_PVRTC_RGBA4
PVRTC (PowerVR) RGBA 4 bpp.
Definition: OgrePixelFormat.h:152
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::PixelBox::PixelBox
PixelBox()
Parameter constructor for setting the members manually.
Definition: OgrePixelFormat.h:307
Ogre::PF_FLOAT16_GR
32-bit, 2-channel s10e5 floating point pixel format, 16-bit green, 16-bit red
Definition: OgrePixelFormat.h:134
Ogre::PF_DXT3
DDS (DirectDraw Surface) DXT3 format.
Definition: OgrePixelFormat.h:116
Ogre::PF_R32G32B32_UINT
96-bit pixel format, 32 bits red (unsigned int), 32 bits blue (unsigned int), 32 bits green (unsigned...
Definition: OgrePixelFormat.h:180
Ogre::PF_BYTE_LA
2 byte pixel format, 1 byte luminance, 1 byte alpha
Definition: OgrePixelFormat.h:59
Ogre::vector
Definition: OgrePrerequisites.h:491
OgreHeaderPrefix.h
Ogre::PF_R11G11B10_FLOAT
32-bit pixel format, 11 bits (float) for red, 11 bits (float) for green, 10 bits (float) for blue ...
Definition: OgrePixelFormat.h:158
Ogre::PF_R8G8B8_SNORM
24-bit pixel format, 8 bits red (signed normalised int), 8 bits blue (signed normalised int)...
Definition: OgrePixelFormat.h:234
Ogre::PF_A4L4
8-bit pixel format, 4 bits alpha, 4 bits luminance.
Definition: OgrePixelFormat.h:57
Ogre::PF_BC5_UNORM
DDS (DirectDraw Surface) BC5 format (unsigned normalised)
Definition: OgrePixelFormat.h:214
Ogre::PF_BC6H_SF16
DDS (DirectDraw Surface) BC6H format (signed 16 bit float)
Definition: OgrePixelFormat.h:220
Ogre::PF_DEPTH
Depth texture format.
Definition: OgrePixelFormat.h:138
Ogre::PF_A8
8-bit pixel format, all bits alpha.
Definition: OgrePixelFormat.h:54
Ogre::PF_FLOAT16_R
16-bit pixel format, 16 bits (float) for red
Definition: OgrePixelFormat.h:122
Ogre::PF_BC7_UNORM
DDS (DirectDraw Surface) BC7 format (unsigned normalised)
Definition: OgrePixelFormat.h:222
Ogre::PFF_FLOAT
This is a floating point format.
Definition: OgrePixelFormat.h:274
Ogre::PF_ETC2_RGBA8
ETC2 (Ericsson Texture Compression)
Definition: OgrePixelFormat.h:250
Ogre::PixelBox
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
Definition: OgrePixelFormat.h:304
Ogre::ushort
unsigned short ushort
Definition: OgrePrerequisites.h:113
Ogre::PixelBox::data
void * data
The data pointer.
Definition: OgrePixelFormat.h:338
Ogre::PF_SHORT_GR
32-bit pixel format, 16-bit green, 16-bit red
Definition: OgrePixelFormat.h:142
Ogre::PF_R32G32B32A32_SINT
128-bit pixel format, 32 bits red (signed int), 32 bits blue (signed int), 32 bits green (signed int)...
Definition: OgrePixelFormat.h:206
Ogre::PixelBox::isConsecutive
bool isConsecutive() const
Return whether this buffer is laid out consecutive in memory (ie the pitches are equal to the dimensi...
Definition: OgrePixelFormat.h:375
Ogre::PF_FLOAT16_RGB
48-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue ...
Definition: OgrePixelFormat.h:124
Ogre::PF_PVRTC2_4BPP
PVRTC (PowerVR) Version 2, 4 bpp.
Definition: OgrePixelFormat.h:156
Ogre::PF_BYTE_BGRA
4 byte pixel format, 1 byte for blue, 1 byte for green, 1 byte for red and one byte for alpha ...
Definition: OgrePixelFormat.h:103
Ogre::PixelBox::PixelBox
PixelBox(const Box &extents, PixelFormat pixelFormat, void *pixelData=0)
Constructor providing extents in the form of a Box object.
Definition: OgrePixelFormat.h:316
Ogre::PF_A8B8G8R8
32-bit pixel format, 8 bits for blue, green, red and alpha.
Definition: OgrePixelFormat.h:77
Ogre::PF_PVRTC_RGBA2
PVRTC (PowerVR) RGBA 2 bpp.
Definition: OgrePixelFormat.h:148
Ogre::PF_R16G16_SINT
32-bit pixel format, 16 bits red (signed int), 16 bits blue (signed int).
Definition: OgrePixelFormat.h:194
Ogre::PF_SHORT_L
Definition: OgrePixelFormat.h:52
Ogre::PF_R8G8_SINT
16-bit pixel format, 8 bits red (signed int), 8 bits blue (signed int).
Definition: OgrePixelFormat.h:186
Ogre::PCT_SHORT
Byte per component (8 bit fixed 0.0..1.0)
Definition: OgrePixelFormat.h:291
Ogre::PF_BC6H_UF16
DDS (DirectDraw Surface) BC6H format (unsigned 16 bit float)
Definition: OgrePixelFormat.h:218
Ogre::PF_R8_SINT
8-bit pixel format, 8 bits red (signed int).
Definition: OgrePixelFormat.h:184
Ogre::PF_SHORT_RGB
48-bit pixel format, 16 bits for red, green and blue
Definition: OgrePixelFormat.h:144
Ogre::PF_A2R10G10B10
32-bit pixel format, 2 bits for alpha, 10 bits for red, green and blue.
Definition: OgrePixelFormat.h:108
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58
Ogre::PF_B8G8R8
24-bit pixel format, 8 bits for blue, green and red.
Definition: OgrePixelFormat.h:73
Ogre::PF_R16_UINT
16-bit pixel format, 16 bits red (unsigned int).
Definition: OgrePixelFormat.h:168
Ogre::PF_R8G8B8A8_SINT
32-bit pixel format, 8 bits red (signed int), 8 bits blue (signed int), 8 bits green (signed int)...
Definition: OgrePixelFormat.h:190
Ogre::PF_R16G16_SNORM
32-bit pixel format, 16 bits red (signed normalised int), 16 bits blue (signed normalised int)...
Definition: OgrePixelFormat.h:240
Ogre::PF_FLOAT32_RGBA
128-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue...
Definition: OgrePixelFormat.h:132
Ogre::PF_R8G8B8A8_SNORM
32-bit pixel format, 8 bits red (signed normalised int), 8 bits blue (signed normalised int)...
Definition: OgrePixelFormat.h:236
Ogre::PF_R8G8B8_SINT
24-bit pixel format, 8 bits red (signed int), 8 bits blue (signed int), 8 bits green (signed int)...
Definition: OgrePixelFormat.h:188

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.