Oolite
Loading...
Searching...
No Matches
OOTextureGenerator Class Reference

#include <OOTextureGenerator.h>

Inheritance diagram for OOTextureGenerator:
Collaboration diagram for OOTextureGenerator:

Instance Methods

(uint32_t) - textureOptions
(GLfloat) - anisotropy
(GLfloat) - lodBias
(NSString *) - cacheKey
(BOOL) - enqueue
Instance Methods inherited from OOTextureLoader
(BOOL) - isReady
(BOOL) - getResult:format:originalWidth:originalHeight:
(id) - initWithPath:options:
(NSString *) - path
(void) - loadTexture
(void) - dealloc [implementation]
(NSString *) - descriptionComponents [implementation]
(NSString *) - shortDescriptionComponents [implementation]
(void) - performAsyncTask [implementation]
(void) - generateMipMapsForCubeMap [implementation]
(void) - applySettings [implementation]
(void) - getDesiredWidth:andHeight: [implementation]
(void) - completeAsyncTask [implementation]

Additional Inherited Members

Class Methods inherited from OOTextureLoader
(id) + loaderWithPath:options:
(id) + loaderWithTextureSpecifier:extraOptions:folder:
(void) + setUp [implementation]
Protected Attributes inherited from OOTextureLoader
NSString * _path
OOTextureFlags _options
uint8_t _generateMipMaps: 1
uint8_t _scaleAsNormalMap: 1
uint8_t _avoidShrinking: 1
uint8_t _noScalingWhatsoever: 1
uint8_t _extractChannel: 1
uint8_t _allowCubeMap: 1
uint8_t _isCubeMap: 1
uint8_t _ready: 1
uint8_t _extractChannelIndex
OOTextureDataFormat _format
void * _data
uint32_t _width
uint32_t _height
uint32_t _originalWidth
uint32_t _originalHeight
uint32_t _shrinkThreshold
uint32_t _maxSize
size_t _rowBytes

Detailed Description

Definition at line 42 of file OOTextureGenerator.h.

Method Documentation

◆ anisotropy

- (GLfloat) anisotropy

Reimplemented in OOCombinedEmissionMapGenerator.

Definition at line 38 of file OOTextureGenerator.m.

39{
41}
#define kOOTextureDefaultAnisotropy
Definition OOTexture.h:97

References anisotropy, and kOOTextureDefaultAnisotropy.

Referenced by anisotropy, and OOTexture::textureWithGenerator:enqueue:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cacheKey

- (NSString *) cacheKey

Reimplemented from OOTextureLoader.

Reimplemented in OOCombinedEmissionMapGenerator.

Definition at line 48 of file OOTextureGenerator.m.

49{
50 return nil;
51}
return nil

References cacheKey, and nil.

Referenced by cacheKey, and OOTexture::textureWithGenerator:enqueue:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enqueue

- (BOOL) enqueue

Definition at line 53 of file OOTextureGenerator.m.

54{
55 return [[OOAsyncWorkManager sharedAsyncWorkManager] addTask:self priority:kOOAsyncPriorityMedium];
56}
BOOL addTask:priority:(id< OOAsyncWorkTask > task,[priority] OOAsyncWorkPriority priority)
OOAsyncWorkManager * sharedAsyncWorkManager()

References OOAsyncWorkManager::addTask:priority:, enqueue, and OOAsyncWorkManager::sharedAsyncWorkManager.

Referenced by enqueue.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lodBias

- (GLfloat) lodBias

Reimplemented in OOCombinedEmissionMapGenerator.

Definition at line 43 of file OOTextureGenerator.m.

44{
46}
#define kOOTextureDefaultLODBias
Definition OOTexture.h:98

References kOOTextureDefaultLODBias, and lodBias.

Referenced by lodBias, and OOTexture::textureWithGenerator:enqueue:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ textureOptions

- (uint32_t) textureOptions

Reimplemented in OOCombinedEmissionMapGenerator, and OOPixMapTextureLoader.

Definition at line 33 of file OOTextureGenerator.m.

34{
36}
@ kOOTextureDefaultOptions
Definition OOTexture.h:76

References kOOTextureDefaultOptions, and textureOptions.

Referenced by textureOptions, and OOTexture::textureWithGenerator:enqueue:.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: