47 #include <sys/types.h>
51 #if !defined(DDS_MAKEFOURCC)
52 # define DDS_MAKEFOURCC(ch0, ch1, ch2, ch3) \
53 (uint(uint8(ch0)) | (uint(uint8(ch1)) << 8) | (uint(uint8(ch2)) << 16) | \
54 (uint(uint8(ch3)) << 24))
95 static const uint D3DFMT_A16B16G16R16 = 36;
100 static const uint D3DFMT_A8P8 = 40;
101 static const uint D3DFMT_P8 = 41;
107 static const uint D3DFMT_A8L8 = 51;
108 static const uint D3DFMT_A4L4 = 52;
114 static const uint D3DFMT_R16F = 111;
115 static const uint D3DFMT_G16R16F = 112;
116 static const uint D3DFMT_A16B16G16R16F = 113;
117 static const uint D3DFMT_R32F = 114;
118 static const uint D3DFMT_G32R32F = 115;
119 static const uint D3DFMT_A32B32G32R32F = 116;
300 #define CASE(format) \
301 case DXGI_FORMAT_##format: \
303 switch (dxgiFormat) {
306 CASE(R32G32B32A32_TYPELESS);
307 CASE(R32G32B32A32_FLOAT);
308 CASE(R32G32B32A32_UINT);
309 CASE(R32G32B32A32_SINT);
311 CASE(R32G32B32_TYPELESS);
312 CASE(R32G32B32_FLOAT);
313 CASE(R32G32B32_UINT);
314 CASE(R32G32B32_SINT);
316 CASE(R16G16B16A16_TYPELESS);
317 CASE(R16G16B16A16_FLOAT);
318 CASE(R16G16B16A16_UNORM);
319 CASE(R16G16B16A16_UINT);
320 CASE(R16G16B16A16_SNORM);
321 CASE(R16G16B16A16_SINT);
323 CASE(R32G32_TYPELESS);
328 CASE(R32G8X24_TYPELESS);
329 CASE(D32_FLOAT_S8X24_UINT);
330 CASE(R32_FLOAT_X8X24_TYPELESS);
331 CASE(X32_TYPELESS_G8X24_UINT);
333 CASE(R10G10B10A2_TYPELESS);
334 CASE(R10G10B10A2_UNORM);
335 CASE(R10G10B10A2_UINT);
337 CASE(R11G11B10_FLOAT);
339 CASE(R8G8B8A8_TYPELESS);
340 CASE(R8G8B8A8_UNORM);
341 CASE(R8G8B8A8_UNORM_SRGB);
343 CASE(R8G8B8A8_SNORM);
346 CASE(R16G16_TYPELESS);
359 CASE(R24G8_TYPELESS);
360 CASE(D24_UNORM_S8_UINT);
361 CASE(R24_UNORM_X8_TYPELESS);
362 CASE(X24_TYPELESS_G8_UINT);
387 CASE(R9G9B9E5_SHAREDEXP);
389 CASE(R8G8_B8G8_UNORM);
390 CASE(G8R8_G8B8_UNORM);
394 CASE(BC1_UNORM_SRGB);
398 CASE(BC2_UNORM_SRGB);
402 CASE(BC3_UNORM_SRGB);
413 CASE(B5G5R5A1_UNORM);
414 CASE(B8G8R8A8_UNORM);
415 CASE(B8G8R8X8_UNORM);
425 switch (resourceDimension) {
481 for (
uint i = 0; i < 11; i++) {
494 struct FormatDescriptor {
503 const FormatDescriptor s_d3dFormats[] = {
526 const uint s_d3dFormatCount =
sizeof(s_d3dFormats) /
sizeof(s_d3dFormats[0]);
532 for (
int i = 0; i < s_d3dFormatCount; i++) {
533 if (s_d3dFormats[i].bitcount == bitcount && s_d3dFormats[i].rmask == rmask &&
534 s_d3dFormats[i].gmask == gmask && s_d3dFormats[i].bmask == bmask &&
535 s_d3dFormats[i].amask == amask) {
536 return s_d3dFormats[i].format;
553 for (
uint i = 0; i < 11; i++) {
559 this->
reserved[10] = (2 << 16) | (1 << 8) | (0);
692 if ((rmask & gmask) || (rmask & bmask) || (rmask & amask) || (gmask & bmask) ||
693 (gmask & amask) || (bmask & amask)) {
694 printf(
"DDS: bad RGBA masks, pixel format not set\n");
698 if (rmask != 0 || gmask != 0 || bmask != 0) {
699 if (gmask == 0 && bmask == 0) {
710 else if (amask != 0) {
716 uint total = rmask | gmask | bmask | amask;
731 if (!(bitcount > 0 && bitcount <= 32)) {
732 printf(
"DDS: bad bit count, pixel format not set\n");
786 void DDSHeader::swapBytes()
789 this->
size = POSH_LittleU32(this->
size);
797 for (
int i = 0; i < 11; i++) {
889 if ((header.
flags & required) != required) {
893 if (header.
pf.
size != 32) {
1017 return header.
depth;
1093 readBlockImage(img);
1097 readLinearImage(img);
1100 readBlockImage(img);
1107 uint header_size = 128;
1115 unsigned char *
data = (
unsigned char *)malloc(
sizeof(*
data) *
size);
1117 stream.
seek(header_size);
1131 void DirectDrawSurface::readLinearImage(
Image *img)
1151 if (byteCount > 4) {
1153 printf(
"DDS: bitcount too large");
1158 for (
uint y = 0;
y < h;
y++) {
1161 mem_read(stream, (
unsigned char *)(&
c), byteCount);
1174 void DirectDrawSurface::readBlockImage(
Image *img)
1180 const uint bw = (
w + 3) / 4;
1181 const uint bh = (h + 3) / 4;
1183 for (
uint by = 0; by < bh; by++) {
1184 for (
uint bx = 0; bx < bw; bx++) {
1191 for (
uint y = 0;
y <
MIN(4U, h - 4 * by);
y++) {
1202 float nx = 2 * (
x / 255.0f) - 1;
1203 float ny = 2 * (
y / 255.0f) - 1;
1205 if (1 - nx * nx -
ny *
ny > 0) {
1208 uint8 z =
CLAMP(
int(255.0f * (nz + 1) / 2.0f), 0, 255);
1254 for (
int i = 0; i < 16; i++) {
1276 for (
int i = 0; i < 16; i++) {
1282 for (
int i = 0; i < 16; i++) {
1290 uint DirectDrawSurface::blockSize()
const
1329 uint DirectDrawSurface::mipmapSize(
uint mipmap)
const
1345 return blockSize() *
w * h;
1351 return pitch * h *
d;
1354 printf(
"DDS: mipmap format not supported\n");
1358 uint DirectDrawSurface::faceSize()
const
1364 size += mipmapSize(m);
1370 uint DirectDrawSurface::offset(
const uint face,
const uint mipmap)
1379 size += face * faceSize();
1383 size += mipmapSize(m);
1391 printf(
"Flags: 0x%.8X\n", header.
flags);
1393 printf(
"\tDDSD_CAPS\n");
1396 printf(
"\tDDSD_PIXELFORMAT\n");
1399 printf(
"\tDDSD_WIDTH\n");
1402 printf(
"\tDDSD_HEIGHT\n");
1405 printf(
"\tDDSD_DEPTH\n");
1408 printf(
"\tDDSD_PITCH\n");
1411 printf(
"\tDDSD_LINEARSIZE\n");
1414 printf(
"\tDDSD_MIPMAPCOUNT\n");
1417 printf(
"Height: %u\n", header.
height);
1418 printf(
"Width: %u\n", header.
width);
1419 printf(
"Depth: %u\n", header.
depth);
1421 printf(
"Pitch: %u\n", header.
pitch);
1424 printf(
"Linear size: %u\n", header.
pitch);
1428 printf(
"Pixel Format:\n");
1429 printf(
"\tFlags: 0x%.8X\n", header.
pf.
flags);
1431 printf(
"\t\tDDPF_RGB\n");
1434 printf(
"\t\tDDPF_LUMINANCE\n");
1437 printf(
"\t\tDDPF_FOURCC\n");
1440 printf(
"\t\tDDPF_ALPHAPIXELS\n");
1443 printf(
"\t\tDDPF_ALPHA\n");
1446 printf(
"\t\tDDPF_PALETTEINDEXED1\n");
1449 printf(
"\t\tDDPF_PALETTEINDEXED2\n");
1452 printf(
"\t\tDDPF_PALETTEINDEXED4\n");
1455 printf(
"\t\tDDPF_PALETTEINDEXED8\n");
1458 printf(
"\t\tDDPF_ALPHAPREMULT\n");
1461 printf(
"\t\tDDPF_NORMAL\n");
1466 printf(
"\tFourCC: '%c%c%c%c' (0x%.8X)\n",
1467 (
int)((header.
pf.
fourcc >> 0) & 0xFF),
1468 (
int)((header.
pf.
fourcc >> 8) & 0xFF),
1469 (
int)((header.
pf.
fourcc >> 16) & 0xFF),
1470 (
int)((header.
pf.
fourcc >> 24) & 0xFF),
1475 printf(
"\tSwizzle: '%c%c%c%c' (0x%.8X)\n",
1483 printf(
"\tBit count: %u\n", header.
pf.
bitcount);
1486 printf(
"\tRed mask: 0x%.8X\n", header.
pf.
rmask);
1487 printf(
"\tGreen mask: 0x%.8X\n", header.
pf.
gmask);
1488 printf(
"\tBlue mask: 0x%.8X\n", header.
pf.
bmask);
1489 printf(
"\tAlpha mask: 0x%.8X\n", header.
pf.
amask);
1492 printf(
"\tCaps 1: 0x%.8X\n", header.
caps.
caps1);
1494 printf(
"\t\tDDSCAPS_COMPLEX\n");
1497 printf(
"\t\tDDSCAPS_TEXTURE\n");
1500 printf(
"\t\tDDSCAPS_MIPMAP\n");
1503 printf(
"\tCaps 2: 0x%.8X\n", header.
caps.
caps2);
1505 printf(
"\t\tDDSCAPS2_VOLUME\n");
1508 printf(
"\t\tDDSCAPS2_CUBEMAP\n");
1510 printf(
"\t\tDDSCAPS2_CUBEMAP_ALL_FACES\n");
1514 printf(
"\t\tDDSCAPS2_CUBEMAP_POSITIVEX\n");
1517 printf(
"\t\tDDSCAPS2_CUBEMAP_NEGATIVEX\n");
1520 printf(
"\t\tDDSCAPS2_CUBEMAP_POSITIVEY\n");
1523 printf(
"\t\tDDSCAPS2_CUBEMAP_NEGATIVEY\n");
1526 printf(
"\t\tDDSCAPS2_CUBEMAP_POSITIVEZ\n");
1529 printf(
"\t\tDDSCAPS2_CUBEMAP_NEGATIVEZ\n");
1534 printf(
"\tCaps 3: 0x%.8X\n", header.
caps.
caps3);
1535 printf(
"\tCaps 4: 0x%.8X\n", header.
caps.
caps4);
1538 printf(
"DX10 Header:\n");
1539 printf(
"\tDXGI Format: %u (%s)\n",
1542 printf(
"\tResource dimension: %u (%s)\n",
1551 int major = (header.
reserved[10] >> 16) & 0xFF;
1552 int minor = (header.
reserved[10] >> 8) & 0xFF;
1553 int revision = header.
reserved[10] & 0xFF;
1555 printf(
"Version:\n");
1556 printf(
"\tNVIDIA Texture Tools %d.%d.%d\n", major, minor, revision);
1560 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 Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position 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.
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
static const pxr::TfToken rgba("rgba", pxr::TfToken::Immortal)
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)