Oolite 1.91.0.7645-241119-222d325
|
import "OOPixMap.h"
Go to the source code of this file.
Functions | |
OOPixMap | OOScalePixMap (OOPixMap srcPixMap, OOPixMapDimension dstWidth, OOPixMapDimension dstHeight, BOOL leaveSpaceForMipMaps) |
BOOL | OOGenerateMipMaps (void *textureBytes, OOPixMapDimension width, OOPixMapDimension height, OOPixMapFormat format) |
BOOL OOGenerateMipMaps | ( | void * | textureBytes, |
OOPixMapDimension | width, | ||
OOPixMapDimension | height, | ||
OOPixMapFormat | format ) |
Definition at line 343 of file OOTextureScaling.m.
References EXPECT_NOT, GenerateMipMaps1(), GenerateMipMaps2(), GenerateMipMaps4(), kOOLogParameterError, kOOPixMapGrayscale, kOOPixMapGrayscaleAlpha, kOOPixMapInvalidFormat, kOOPixMapRGBA, OOLog, OOPixMapFormatName(), and OORoundUpToPowerOf2_PixMap.
OOPixMap OOScalePixMap | ( | OOPixMap | srcPixMap, |
OOPixMapDimension | dstWidth, | ||
OOPixMapDimension | dstHeight, | ||
BOOL | leaveSpaceForMipMaps ) |
Definition at line 245 of file OOTextureScaling.m.
References DUMP_SCALE_DUMP, DUMP_SCALE_PREPARE, EnsureCorrectDataSize(), EXPECT_NOT, FAIL, OOPixMap::format, OOPixMap::height, kOONullPixMap, OOAllocatePixMap(), OOIsValidPixMap(), OOLogGenericParameterError, OOMakePixMap(), OOPixMapBytesPerPixel(), OOPixMap::pixels, OOPixMap::rowBytes, SqueezeHorizontally(), SqueezeVertically(), StretchHorizontally(), StretchVertically(), and OOPixMap::width.
Referenced by OOCombinedEmissionMapGenerator::anisotropy, and OOConvertCubeMapToLatLong().