Oolite 1.91.0.7645-241119-222d325
|
Go to the source code of this file.
Functions | |
BOOL | OOIsValidPixMap (OOPixMap pixMap) |
OOPixMap | OOMakePixMap (void *pixels, OOPixMapDimension width, OOPixMapDimension height, OOPixMapFormat format, size_t rowBytes, size_t bufferSize) |
OOPixMap | OOAllocatePixMap (OOPixMapDimension width, OOPixMapDimension height, OOPixMapFormat format, size_t rowBytes, size_t bufferSize) |
void | OOFreePixMap (OOPixMap *ioPixMap) |
OOPixMap | OODuplicatePixMap (OOPixMap srcPixMap, size_t desiredSize) |
BOOL | OOResizePixMap (OOPixMap *ioPixMap, size_t desiredSize) |
BOOL | OOExpandPixMap (OOPixMap *ioPixMap, size_t desiredSize) |
void | OODumpPixMap (OOPixMap pixMap, NSString *name) |
BOOL | OOIsValidPixMapFormat (OOPixMapFormat format) |
unsigned short | OOPixMapBytesPerPixelForFormat (OOPixMapFormat format) |
NSString * | OOPixMapFormatName (OOPixMapFormat format) |
BOOL | OOPixMapFormatHasAlpha (OOPixMapFormat format) |
Variables | |
const OOPixMap | kOONullPixMap |
OOPixMap OOAllocatePixMap | ( | OOPixMapDimension | width, |
OOPixMapDimension | height, | ||
OOPixMapFormat | format, | ||
size_t | rowBytes, | ||
size_t | bufferSize ) |
Definition at line 73 of file OOPixMap.m.
References OOPixMap::bufferSize, EXPECT_NOT, kOONullPixMap, OOIsValidPixMap(), OOMakePixMap(), and OOPixMap::pixels.
Referenced by OOConvertCubeMapToLatLong(), OODuplicatePixMap(), OOPixMapToRGBA(), and OOScalePixMap().
void OODumpPixMap | ( | OOPixMap | pixMap, |
NSString * | name ) |
Definition at line 145 of file OOPixMap.m.
References MyOpenGLView::dumpGrayAlphaToFileNamed:bytes:width:height:rowBytes:, MyOpenGLView::dumpGrayToFileNamed:bytes:width:height:rowBytes:, MyOpenGLView::dumpRGBAToRGBFileNamed:andGrayFileNamed:bytes:width:height:rowBytes:, OOPixMap::format, kOOPixMapGrayscale, kOOPixMapGrayscaleAlpha, kOOPixMapInvalidFormat, kOOPixMapRGBA, and OOIsValidPixMap().
Definition at line 95 of file OOPixMap.m.
References EXPECT_NOT, OOPixMap::format, kOONullPixMap, OOAllocatePixMap(), OOIsValidPixMap(), OOMinimumPixMapBufferSize(), OOPixMap::pixels, OOPixMap::rowBytes, and OOPixMap::width.
Referenced by OOPixMapTextureLoader::dealloc.
BOOL OOExpandPixMap | ( | OOPixMap * | ioPixMap, |
size_t | desiredSize ) |
Definition at line 130 of file OOPixMap.m.
References EXPECT_NOT, OOIsValidPixMap(), and OOResizePixMap().
void OOFreePixMap | ( | OOPixMap * | ioPixMap | ) |
Definition at line 86 of file OOPixMap.m.
References EXPECT_NOT, kOONullPixMap, and OOPixMap::pixels.
BOOL OOIsValidPixMap | ( | OOPixMap | pixMap | ) |
Definition at line 42 of file OOPixMap.m.
References OOPixMap::bufferSize, OOPixMap::format, OOPixMap::height, OOIsValidPixMapFormat(), OOPixMapBytesPerPixelForFormat(), OOPixMap::pixels, OOPixMap::rowBytes, and OOPixMap::width.
Referenced by OOCombinedEmissionMapGenerator::anisotropy, OOPixMapTextureLoader::dealloc, EnsureCorrectDataSize(), OOAllocatePixMap(), OOConvertCubeMapToLatLong(), OODumpPixMap(), OODuplicatePixMap(), OOExpandPixMap(), OOExtractPixMapChannel(), OOMakePixMap(), OOPixMapAddPixMap(), OOPixMapModulatePixMap(), OOPixMapModulateUniform(), OOPixMapToRGBA(), OOResizePixMap(), OOScalePixMap(), SqueezeHorizontally1(), SqueezeHorizontally2(), SqueezeHorizontally4(), SqueezeVertically1(), SqueezeVertically2(), SqueezeVertically4(), StretchHorizontally1(), StretchHorizontally2(), and StretchHorizontally4().
BOOL OOIsValidPixMapFormat | ( | OOPixMapFormat | format | ) |
Definition at line 186 of file OOPixMap.m.
References kOOPixMapGrayscale, kOOPixMapGrayscaleAlpha, kOOPixMapInvalidFormat, and kOOPixMapRGBA.
Referenced by OOIsValidPixMap().
OOPixMap OOMakePixMap | ( | void * | pixels, |
OOPixMapDimension | width, | ||
OOPixMapDimension | height, | ||
OOPixMapFormat | format, | ||
size_t | rowBytes, | ||
size_t | bufferSize ) |
Definition at line 53 of file OOPixMap.m.
References kOONullPixMap, OOIsValidPixMap(), and OOPixMapBytesPerPixelForFormat().
Referenced by OOAllocatePixMap(), and OOScalePixMap().
unsigned short OOPixMapBytesPerPixelForFormat | ( | OOPixMapFormat | format | ) |
Definition at line 202 of file OOPixMap.m.
References kOOPixMapGrayscale, kOOPixMapGrayscaleAlpha, kOOPixMapInvalidFormat, and kOOPixMapRGBA.
Referenced by OOIsValidPixMap(), OOMakePixMap(), and OOPixMapBytesPerPixel().
BOOL OOPixMapFormatHasAlpha | ( | OOPixMapFormat | format | ) |
Definition at line 232 of file OOPixMap.m.
References kOOPixMapGrayscale, kOOPixMapGrayscaleAlpha, kOOPixMapInvalidFormat, and kOOPixMapRGBA.
NSString * OOPixMapFormatName | ( | OOPixMapFormat | format | ) |
Definition at line 217 of file OOPixMap.m.
References kOOPixMapGrayscale, kOOPixMapGrayscaleAlpha, kOOPixMapInvalidFormat, and kOOPixMapRGBA.
Referenced by OOGenerateMipMaps().
BOOL OOResizePixMap | ( | OOPixMap * | ioPixMap, |
size_t | desiredSize ) |
Definition at line 110 of file OOPixMap.m.
References OOPixMap::bufferSize, EXPECT_NOT, OOIsValidPixMap(), OOMinimumPixMapBufferSize(), and OOPixMap::pixels.
Referenced by OOCompactPixMap(), and OOExpandPixMap().
const OOPixMap kOONullPixMap |
Definition at line 31 of file OOPixMap.m.
Referenced by OOAllocatePixMap(), OOConvertCubeMapToLatLong(), OODuplicatePixMap(), OOFreePixMap(), OOMakePixMap(), and OOScalePixMap().