Oolite 1.91.0.7644-241112-7f5034b
|
import "OOCocoa.h"
import "TextureStore.h"
import "OOMaths.h"
import "Universe.h"
import "MyOpenGLView.h"
import "OOCollectionExtractors.h"
import "OOTextureGenerator.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_DUMP ( 0 && OOLITE_DEBUG) |
#define | PROC_TEXTURE_SIZE 512 |
Functions | |
static FloatRGB | FloatRGBFromDictColor (NSDictionary *dictionary, NSString *key) |
static FloatRGB | Blend (float fraction, FloatRGB a, FloatRGB b) |
static FloatRGB | PlanetTextureColor (float q, float impress, float bias, FloatRGB seaColor, FloatRGB paleSeaColor, FloatRGB landColor, FloatRGB paleLandColor) |
static void | fillSquareImageDataWithCloudTexture (unsigned char *imageBuffer, int width, OOColor *cloudcolor, float impress, float bias) |
static void | fillSquareImageWithPlanetTex (unsigned char *imageBuffer, int width, float impress, float bias, FloatRGB seaColor, FloatRGB paleSeaColor, FloatRGB landColor, FloatRGB paleLandColor) |
void | fillRanNoiseBuffer () |
static void | addNoise (float *buffer, int p, int n, float scale) |
static float | q_factor (float *accbuffer, int x, int y, int width, BOOL polar_y_smooth, float polar_y_value, BOOL polar_x_smooth, float polar_x_value, float impress, float bias) |
Variables | |
static NSString *const | kOOLogPlanetTextureGen = @"texture.planet.generate" |
static RANROTSeed | sNoiseSeed |
static float | ranNoiseBuffer [128 *128] |
#define DEBUG_DUMP ( 0 && OOLITE_DEBUG) |
Definition at line 40 of file TextureStore.m.
#define PROC_TEXTURE_SIZE 512 |
Definition at line 112 of file TextureStore.m.
Definition at line 191 of file TextureStore.m.
References ranNoiseBuffer, x, and y.
Referenced by fillSquareImageDataWithCloudTexture(), and TextureStore::getCloudTextureNameFor:color:impress:intoData:width:height:.
Definition at line 64 of file TextureStore.m.
References FloatRGB::b, FloatRGB::g, and FloatRGB::r.
Referenced by PlanetTextureColor().
void fillRanNoiseBuffer | ( | ) |
Definition at line 181 of file TextureStore.m.
References randf(), ranNoiseBuffer, RANROTGetFullSeed(), and sNoiseSeed.
|
static |
Definition at line 247 of file TextureStore.m.
References addNoise(), OOColor::alphaComponent, OOColor::blueComponent, OOColor::greenComponent, OOLog, q_factor(), OOColor::redComponent, x, and y.
|
static |
Definition at line 293 of file TextureStore.m.
|
static |
Definition at line 49 of file TextureStore.m.
References OOColor::blueComponent, OOColor::colorWithDescription:, OOColor::greenComponent, nil, OOLog, and OOColor::redComponent.
|
static |
Definition at line 75 of file TextureStore.m.
References Blend().
Referenced by TextureStore::getCloudTextureNameFor:color:impress:intoData:width:height:.
|
static |
Definition at line 217 of file TextureStore.m.
Referenced by fillSquareImageDataWithCloudTexture(), and TextureStore::getCloudTextureNameFor:color:impress:intoData:width:height:.
|
static |
Definition at line 43 of file TextureStore.m.
|
static |
Definition at line 179 of file TextureStore.m.
Referenced by addNoise(), and fillRanNoiseBuffer().
|
static |
Definition at line 178 of file TextureStore.m.
Referenced by fillRanNoiseBuffer(), and TextureStore::getCloudTextureNameFor:color:impress:intoData:width:height:.