Oolite 1.91.0.7644-241112-7f5034b
|
import "OOMaths.h"
Go to the source code of this file.
Classes | |
struct | OOPixMap |
Macros | |
#define | OORoundUpToPowerOf2_PixMap OORoundUpToPowerOf2_32 |
Typedefs | |
typedef uint_fast32_t | OOPixMapDimension |
typedef struct OOPixMap | OOPixMap |
Enumerations | |
enum | OOPixMapFormat { kOOPixMapInvalidFormat = 0 , kOOPixMapGrayscale = 1 , kOOPixMapGrayscaleAlpha = 2 , kOOPixMapRGBA = 4 } |
Variables | |
const OOPixMap | kOONullPixMap |
#define OORoundUpToPowerOf2_PixMap OORoundUpToPowerOf2_32 |
Definition at line 35 of file OOPixMap.h.
Referenced by OOGenerateMipMaps().
typedef struct OOPixMap OOPixMap |
typedef uint_fast32_t OOPixMapDimension |
Definition at line 33 of file OOPixMap.h.
enum OOPixMapFormat |
Enumerator | |
---|---|
kOOPixMapInvalidFormat | |
kOOPixMapGrayscale | |
kOOPixMapGrayscaleAlpha | |
kOOPixMapRGBA |
Definition at line 38 of file OOPixMap.h.
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().
Definition at line 103 of file OOPixMap.h.
References OOMinimumPixMapBufferSize(), and OOResizePixMap().
Referenced by OOExtractPixMapChannel().
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.
Definition at line 60 of file OOPixMap.h.
References OOPixMap::pixels.
Referenced by OOPixMapToRGBA().
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().
Definition at line 62 of file OOPixMap.h.
References OOPixMap::height, and OOPixMap::rowBytes.
Referenced by OOCompactPixMap(), OODuplicatePixMap(), and OOResizePixMap().
Definition at line 132 of file OOPixMap.h.
References OOPixMap::format, and OOPixMapBytesPerPixelForFormat().
Referenced by ModulateUniform_4(), OOScalePixMap(), SqueezeHorizontally1(), SqueezeHorizontally2(), SqueezeHorizontally4(), SqueezeVertically1(), SqueezeVertically2(), SqueezeVertically4(), StretchHorizontally1(), StretchHorizontally2(), StretchHorizontally4(), StretchVerticallyN_x1(), StretchVerticallyN_x4(), ToRGBA_1(), and ToRGBA_2().
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().
|
extern |
Definition at line 31 of file OOPixMap.m.
Referenced by OOAllocatePixMap(), OOConvertCubeMapToLatLong(), OODuplicatePixMap(), OOFreePixMap(), OOMakePixMap(), and OOScalePixMap().