58 #include <sys/types.h>
62 #if !defined(DDS_MAKEFOURCC)
63 # define DDS_MAKEFOURCC(ch0, ch1, ch2, ch3) \
64 (uint(uint8(ch0)) | (uint(uint8(ch1)) << 8) | (uint(uint8(ch2)) << 16) | \
65 (uint(uint8(ch3)) << 24))
106 static const uint D3DFMT_A16B16G16R16 = 36;
111 static const uint D3DFMT_A8P8 = 40;
112 static const uint D3DFMT_P8 = 41;
118 static const uint D3DFMT_A8L8 = 51;
119 static const uint D3DFMT_A4L4 = 52;
125 static const uint D3DFMT_R16F = 111;
126 static const uint D3DFMT_G16R16F = 112;
127 static const uint D3DFMT_A16B16G16R16F = 113;
128 static const uint D3DFMT_R32F = 114;
129 static const uint D3DFMT_G32R32F = 115;
130 static const uint D3DFMT_A32B32G32R32F = 116;
311 #define CASE(format) \
312 case DXGI_FORMAT_##format: \
314 switch (dxgiFormat) {
317 CASE(R32G32B32A32_TYPELESS);
318 CASE(R32G32B32A32_FLOAT);
319 CASE(R32G32B32A32_UINT);
320 CASE(R32G32B32A32_SINT);
322 CASE(R32G32B32_TYPELESS);
323 CASE(R32G32B32_FLOAT);
324 CASE(R32G32B32_UINT);
325 CASE(R32G32B32_SINT);
327 CASE(R16G16B16A16_TYPELESS);
328 CASE(R16G16B16A16_FLOAT);
329 CASE(R16G16B16A16_UNORM);
330 CASE(R16G16B16A16_UINT);
331 CASE(R16G16B16A16_SNORM);
332 CASE(R16G16B16A16_SINT);
334 CASE(R32G32_TYPELESS);
339 CASE(R32G8X24_TYPELESS);
340 CASE(D32_FLOAT_S8X24_UINT);
341 CASE(R32_FLOAT_X8X24_TYPELESS);
342 CASE(X32_TYPELESS_G8X24_UINT);
344 CASE(R10G10B10A2_TYPELESS);
345 CASE(R10G10B10A2_UNORM);
346 CASE(R10G10B10A2_UINT);
348 CASE(R11G11B10_FLOAT);
350 CASE(R8G8B8A8_TYPELESS);
351 CASE(R8G8B8A8_UNORM);
352 CASE(R8G8B8A8_UNORM_SRGB);
354 CASE(R8G8B8A8_SNORM);
357 CASE(R16G16_TYPELESS);
370 CASE(R24G8_TYPELESS);
371 CASE(D24_UNORM_S8_UINT);
372 CASE(R24_UNORM_X8_TYPELESS);
373 CASE(X24_TYPELESS_G8_UINT);
398 CASE(R9G9B9E5_SHAREDEXP);
400 CASE(R8G8_B8G8_UNORM);
401 CASE(G8R8_G8B8_UNORM);
405 CASE(BC1_UNORM_SRGB);
409 CASE(BC2_UNORM_SRGB);
413 CASE(BC3_UNORM_SRGB);
424 CASE(B5G5R5A1_UNORM);
425 CASE(B8G8R8A8_UNORM);
426 CASE(B8G8R8X8_UNORM);
436 switch (resourceDimension) {
492 for (
uint i = 0; i < 11; i++) {
505 struct FormatDescriptor {
514 const FormatDescriptor s_d3dFormats[] = {
537 const uint s_d3dFormatCount =
sizeof(s_d3dFormats) /
sizeof(s_d3dFormats[0]);
543 for (
int i = 0; i < s_d3dFormatCount; i++) {
544 if (s_d3dFormats[i].bitcount == bitcount && s_d3dFormats[i].rmask == rmask &&
545 s_d3dFormats[i].gmask == gmask && s_d3dFormats[i].bmask == bmask &&
546 s_d3dFormats[i].amask == amask) {
547 return s_d3dFormats[i].format;
564 for (
uint i = 0; i < 11; i++) {
570 this->
reserved[10] = (2 << 16) | (1 << 8) | (0);
703 if ((rmask & gmask) || (rmask & bmask) || (rmask & amask) || (gmask & bmask) ||
704 (gmask & amask) || (bmask & amask)) {
705 printf(
"DDS: bad RGBA masks, pixel format not set\n");
709 if (rmask != 0 || gmask != 0 || bmask != 0) {
710 if (gmask == 0 && bmask == 0) {
721 else if (amask != 0) {
727 uint total = rmask | gmask | bmask | amask;
742 if (!(bitcount > 0 && bitcount <= 32)) {
743 printf(
"DDS: bad bit count, pixel format not set\n");
797 void DDSHeader::swapBytes()
800 this->
size = POSH_LittleU32(this->
size);
808 for (
int i = 0; i < 11; i++) {
900 if ((header.
flags & required) != required) {
904 if (header.
pf.
size != 32) {
1004 return header.
width;
1022 return header.
depth;
1098 readBlockImage(img);
1102 readLinearImage(img);
1105 readBlockImage(img);
1114 uint header_size = 128;
1122 unsigned char *
data = (
unsigned char *)malloc(
sizeof(*
data) *
size);
1124 stream.
seek(header_size);
1138 void DirectDrawSurface::readLinearImage(
Image *img)
1158 if (byteCount > 4) {
1160 printf(
"DDS: bitcount too large");
1165 for (
uint y = 0;
y < h;
y++) {
1168 mem_read(stream, (
unsigned char *)(&
c), byteCount);
1181 void DirectDrawSurface::readBlockImage(
Image *img)
1187 const uint bw = (
w + 3) / 4;
1188 const uint bh = (h + 3) / 4;
1190 for (
uint by = 0; by < bh; by++) {
1191 for (
uint bx = 0; bx < bw; bx++) {
1198 for (
uint y = 0;
y <
MIN(4U, h - 4 * by);
y++) {
1209 float nx = 2 * (
x / 255.0f) - 1;
1210 float ny = 2 * (
y / 255.0f) - 1;
1212 if (1 - nx * nx -
ny *
ny > 0) {
1215 uint8 z =
CLAMP(
int(255.0f * (nz + 1) / 2.0f), 0, 255);
1220 void DirectDrawSurface::readBlock(
ColorBlock *rgba)
1261 for (
int i = 0; i < 16; i++) {
1283 for (
int i = 0; i < 16; i++) {
1289 for (
int i = 0; i < 16; i++) {
1297 uint DirectDrawSurface::blockSize()
const
1336 uint DirectDrawSurface::mipmapSize(
uint mipmap)
const
1352 return blockSize() *
w * h;
1358 return pitch * h * d;
1361 printf(
"DDS: mipmap format not supported\n");
1365 uint DirectDrawSurface::faceSize()
const
1371 size += mipmapSize(m);
1377 uint DirectDrawSurface::offset(
const uint face,
const uint mipmap)
1386 size += face * faceSize();
1390 size += mipmapSize(m);
1398 printf(
"Flags: 0x%.8X\n", header.
flags);
1400 printf(
"\tDDSD_CAPS\n");
1403 printf(
"\tDDSD_PIXELFORMAT\n");
1406 printf(
"\tDDSD_WIDTH\n");
1409 printf(
"\tDDSD_HEIGHT\n");
1412 printf(
"\tDDSD_DEPTH\n");
1415 printf(
"\tDDSD_PITCH\n");
1418 printf(
"\tDDSD_LINEARSIZE\n");
1421 printf(
"\tDDSD_MIPMAPCOUNT\n");
1424 printf(
"Height: %u\n", header.
height);
1425 printf(
"Width: %u\n", header.
width);
1426 printf(
"Depth: %u\n", header.
depth);
1428 printf(
"Pitch: %u\n", header.
pitch);
1431 printf(
"Linear size: %u\n", header.
pitch);
1435 printf(
"Pixel Format:\n");
1436 printf(
"\tFlags: 0x%.8X\n", header.
pf.
flags);
1438 printf(
"\t\tDDPF_RGB\n");
1441 printf(
"\t\tDDPF_LUMINANCE\n");
1444 printf(
"\t\tDDPF_FOURCC\n");
1447 printf(
"\t\tDDPF_ALPHAPIXELS\n");
1450 printf(
"\t\tDDPF_ALPHA\n");
1453 printf(
"\t\tDDPF_PALETTEINDEXED1\n");
1456 printf(
"\t\tDDPF_PALETTEINDEXED2\n");
1459 printf(
"\t\tDDPF_PALETTEINDEXED4\n");
1462 printf(
"\t\tDDPF_PALETTEINDEXED8\n");
1465 printf(
"\t\tDDPF_ALPHAPREMULT\n");
1468 printf(
"\t\tDDPF_NORMAL\n");
1473 printf(
"\tFourCC: '%c%c%c%c' (0x%.8X)\n",
1474 (
int)((header.
pf.
fourcc >> 0) & 0xFF),
1475 (
int)((header.
pf.
fourcc >> 8) & 0xFF),
1476 (
int)((header.
pf.
fourcc >> 16) & 0xFF),
1477 (
int)((header.
pf.
fourcc >> 24) & 0xFF),
1482 printf(
"\tSwizzle: '%c%c%c%c' (0x%.8X)\n",
1490 printf(
"\tBit count: %u\n", header.
pf.
bitcount);
1493 printf(
"\tRed mask: 0x%.8X\n", header.
pf.
rmask);
1494 printf(
"\tGreen mask: 0x%.8X\n", header.
pf.
gmask);
1495 printf(
"\tBlue mask: 0x%.8X\n", header.
pf.
bmask);
1496 printf(
"\tAlpha mask: 0x%.8X\n", header.
pf.
amask);
1499 printf(
"\tCaps 1: 0x%.8X\n", header.
caps.
caps1);
1501 printf(
"\t\tDDSCAPS_COMPLEX\n");
1504 printf(
"\t\tDDSCAPS_TEXTURE\n");
1507 printf(
"\t\tDDSCAPS_MIPMAP\n");
1510 printf(
"\tCaps 2: 0x%.8X\n", header.
caps.
caps2);
1512 printf(
"\t\tDDSCAPS2_VOLUME\n");
1515 printf(
"\t\tDDSCAPS2_CUBEMAP\n");
1517 printf(
"\t\tDDSCAPS2_CUBEMAP_ALL_FACES\n");
1521 printf(
"\t\tDDSCAPS2_CUBEMAP_POSITIVEX\n");
1524 printf(
"\t\tDDSCAPS2_CUBEMAP_NEGATIVEX\n");
1527 printf(
"\t\tDDSCAPS2_CUBEMAP_POSITIVEY\n");
1530 printf(
"\t\tDDSCAPS2_CUBEMAP_NEGATIVEY\n");
1533 printf(
"\t\tDDSCAPS2_CUBEMAP_POSITIVEZ\n");
1536 printf(
"\t\tDDSCAPS2_CUBEMAP_NEGATIVEZ\n");
1541 printf(
"\tCaps 3: 0x%.8X\n", header.
caps.
caps3);
1542 printf(
"\tCaps 4: 0x%.8X\n", header.
caps.
caps4);
1545 printf(
"DX10 Header:\n");
1546 printf(
"\tDXGI Format: %u (%s)\n",
1549 printf(
"\tResource dimension: %u (%s)\n",
1558 int major = (header.
reserved[10] >> 16) & 0xFF;
1559 int minor = (header.
reserved[10] >> 8) & 0xFF;
1560 int revision = header.
reserved[10] & 0xFF;
1562 printf(
"Version:\n");
1563 printf(
"\tNVIDIA Texture Tools %d.%d.%d\n", major, minor, revision);
1567 printf(
"User Version: %u\n", header.
reserved[8]);
void BLI_kdtree_nd_() free(KDTree *tree)
uint computePitch(uint w, uint bitsize, uint alignment)
static const uint D3DFMT_L16
void mem_read(Stream &mem, DDSPixelFormat &pf)
static const uint DDSCAPS2_CUBEMAP_POSITIVEX
static const uint DDSCAPS2_VOLUME
static const uint D3DFMT_R5G6B5
static const uint DDPF_PALETTEINDEXED1
static const uint DDSD_LINEARSIZE
static const uint DDSCAPS2_CUBEMAP_POSITIVEY
static const uint FOURCC_UVER
static const uint D3DFMT_R8G8B8
static const uint DDPF_PALETTEINDEXED4
static const uint FOURCC_DX10
static const uint D3DFMT_X8B8G8R8
static const uint FOURCC_DXT2
static const uint DDSD_WIDTH
static const uint DDPF_RGB
static const uint FOURCC_DXT3
static const uint DDPF_PALETTEINDEXED2
static uint findD3D9Format(uint bitcount, uint rmask, uint gmask, uint bmask, uint amask)
static const uint FOURCC_RXGB
static const uint DDPF_SRGB
@ DXGI_FORMAT_B8G8R8A8_UNORM
@ DXGI_FORMAT_R8_TYPELESS
@ DXGI_FORMAT_BC3_UNORM_SRGB
@ DXGI_FORMAT_R8G8_B8G8_UNORM
@ DXGI_FORMAT_R32G32B32_TYPELESS
@ DXGI_FORMAT_BC3_TYPELESS
@ DXGI_FORMAT_R16G16_SNORM
@ DXGI_FORMAT_D32_FLOAT_S8X24_UINT
@ DXGI_FORMAT_R32G32B32A32_SINT
@ DXGI_FORMAT_R32G32B32A32_UINT
@ DXGI_FORMAT_R16G16B16A16_SNORM
@ DXGI_FORMAT_R16G16B16A16_UNORM
@ DXGI_FORMAT_R16G16_UNORM
@ DXGI_FORMAT_BC1_UNORM_SRGB
@ DXGI_FORMAT_R16G16_SINT
@ DXGI_FORMAT_R24_UNORM_X8_TYPELESS
@ DXGI_FORMAT_R8G8B8A8_TYPELESS
@ DXGI_FORMAT_BC2_TYPELESS
@ DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS
@ DXGI_FORMAT_R32G32B32_FLOAT
@ DXGI_FORMAT_R32G32B32_SINT
@ DXGI_FORMAT_R32G32B32A32_TYPELESS
@ DXGI_FORMAT_B8G8R8A8_UNORM_SRGB
@ DXGI_FORMAT_B8G8R8X8_TYPELESS
@ DXGI_FORMAT_B8G8R8A8_TYPELESS
@ DXGI_FORMAT_X24_TYPELESS_G8_UINT
@ DXGI_FORMAT_R16G16B16A16_UINT
@ DXGI_FORMAT_R8G8B8A8_SINT
@ DXGI_FORMAT_D24_UNORM_S8_UINT
@ DXGI_FORMAT_R8G8B8A8_SNORM
@ DXGI_FORMAT_R8G8B8A8_UINT
@ DXGI_FORMAT_R10G10B10A2_TYPELESS
@ DXGI_FORMAT_R32G32_FLOAT
@ DXGI_FORMAT_R10G10B10A2_UNORM
@ DXGI_FORMAT_R9G9B9E5_SHAREDEXP
@ DXGI_FORMAT_R16G16B16A16_TYPELESS
@ DXGI_FORMAT_R16G16B16A16_FLOAT
@ DXGI_FORMAT_BC7_TYPELESS
@ DXGI_FORMAT_R32_TYPELESS
@ DXGI_FORMAT_R32G32_UINT
@ DXGI_FORMAT_R11G11B10_FLOAT
@ DXGI_FORMAT_R8G8B8A8_UNORM
@ DXGI_FORMAT_G8R8_G8B8_UNORM
@ DXGI_FORMAT_R10G10B10A2_UINT
@ DXGI_FORMAT_BC6H_TYPELESS
@ DXGI_FORMAT_BC5_TYPELESS
@ DXGI_FORMAT_R32G32_SINT
@ DXGI_FORMAT_BC2_UNORM_SRGB
@ DXGI_FORMAT_BC4_TYPELESS
@ DXGI_FORMAT_R32G32B32A32_FLOAT
@ DXGI_FORMAT_R24G8_TYPELESS
@ DXGI_FORMAT_R16_TYPELESS
@ DXGI_FORMAT_R32G32B32_UINT
@ DXGI_FORMAT_R16G16_TYPELESS
@ DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
@ DXGI_FORMAT_R16G16_UINT
@ DXGI_FORMAT_R8G8_TYPELESS
@ DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM
@ DXGI_FORMAT_R16G16B16A16_SINT
@ DXGI_FORMAT_BC1_TYPELESS
@ DXGI_FORMAT_BC7_UNORM_SRGB
@ DXGI_FORMAT_R32G32_TYPELESS
@ DXGI_FORMAT_R32G8X24_TYPELESS
@ DXGI_FORMAT_R16G16_FLOAT
@ DXGI_FORMAT_B5G6R5_UNORM
@ DXGI_FORMAT_X32_TYPELESS_G8X24_UINT
@ DXGI_FORMAT_B8G8R8X8_UNORM_SRGB
@ DXGI_FORMAT_B5G5R5A1_UNORM
@ DXGI_FORMAT_B8G8R8X8_UNORM
static const uint DDSD_PIXELFORMAT
static const uint FOURCC_ATI1
static const uint FOURCC_DXT5
static const uint DDSCAPS_COMPLEX
static const uint DDPF_PALETTEINDEXED8
static const uint D3DFMT_X4R4G4B4
static const uint D3DFMT_R3G3B2
static const uint DDSD_DEPTH
static const uint DDSD_MIPMAPCOUNT
#define DDS_MAKEFOURCC(ch0, ch1, ch2, ch3)
static const uint DDSCAPS2_CUBEMAP
static const uint DDPF_NORMAL
static const uint D3DFMT_A8B8G8R8
static const uint D3DFMT_X8R8G8B8
static const uint DDSCAPS2_CUBEMAP_ALL_FACES
static const uint D3DFMT_X1R5G5B5
static const uint D3DFMT_L8
static const uint FOURCC_NVTT
static const uint DDPF_ALPHAPREMULT
static const uint DDSD_HEIGHT
static const uint DDSCAPS2_CUBEMAP_NEGATIVEX
static const char * getD3d10ResourceDimensionString(D3D10_RESOURCE_DIMENSION resourceDimension)
static const uint D3DFMT_A8
static const uint DDPF_ALPHAPIXELS
static Color32 buildNormal(uint8 x, uint8 y)
static const uint D3DFMT_A4R4G4B4
static const uint FOURCC_DXT1
static const uint DDSCAPS_MIPMAP
static const uint D3DFMT_A8R3G3B2
static const uint FOURCC_ATI2
static const uint DDSCAPS2_CUBEMAP_POSITIVEZ
static const uint D3DFMT_A2R10G10B10
static const uint D3DFMT_A8R8G8B8
static const uint FOURCC_DXT4
static const uint DDSCAPS2_CUBEMAP_NEGATIVEZ
static const uint D3DFMT_A1R5G5B5
static const uint DDPF_ALPHA
static const char * getDxgiFormatString(DXGI_FORMAT dxgiFormat)
static const uint DDSD_CAPS
static const uint D3DFMT_G16R16
static const uint DDSCAPS2_CUBEMAP_NEGATIVEY
static const uint FOURCC_DDS
static const uint DDSD_PITCH
static const uint D3DFMT_A2B10G10R10
static const uint DDSCAPS_TEXTURE
@ D3D10_RESOURCE_DIMENSION_TEXTURE1D
@ D3D10_RESOURCE_DIMENSION_UNKNOWN
@ D3D10_RESOURCE_DIMENSION_BUFFER
@ D3D10_RESOURCE_DIMENSION_TEXTURE3D
@ D3D10_RESOURCE_DIMENSION_TEXTURE2D
static const uint DDPF_FOURCC
static const uint DDPF_LUMINANCE
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble z
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble ny
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
Group RGB to Bright Vector Camera CLAMP
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
void mipmap(Image *img, uint f, uint m)
void * readData(uint &size)
bool isTextureCube() const
void setUserVersion(int version)
void setHasAlphaFlag(bool b)
DirectDrawSurface(unsigned char *mem, uint size)
void setNormalFlag(bool b)
void allocate(uint w, uint h)
const Color32 & pixel(uint idx) const
#define pf(_x, _i)
Prefetch 64.
void decodeBlock(ColorBlock *block) const
void decodeBlock(ColorBlock *block) const
void decodeBlock(ColorBlock *block) const
void decodeBlock(ColorBlock *block) const
void decodeBlock(ColorBlock *block) const
Color32 color(uint i) const
unsigned int seek(unsigned int p)