Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOCombinedEmissionMapGenerator.h
Go to the documentation of this file.
1/*
2
3OOCombinedEmissionMapGenerator.h
4
5Generator which renders a single RGB emission map from some combination of
6emission_map, emission, illumination_map, illumination_color and
7emission_and_illumination_map parameters.
8
9
10Copyright (C) 2010-2013 Jens Ayton
11
12Permission is hereby granted, free of charge, to any person obtaining a copy
13of this software and associated documentation files (the "Software"), to deal
14in the Software without restriction, including without limitation the rights
15to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16copies of the Software, and to permit persons to whom the Software is
17furnished to do so, subject to the following conditions:
18
19The above copyright notice and this permission notice shall be included in all
20copies or substantial portions of the Software.
21
22THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28SOFTWARE.
29
30*/
31
32
34
35@class OOColor;
36
37
39{
40@private
41 NSString *_cacheKey;
42
43 NSDictionary *_emissionSpec;
44 NSDictionary *_illuminationSpec;
46
53
55 GLfloat _anisotropy;
56 GLfloat _lodBias;
57
58#ifndef NDEBUG
59 NSString *_emissionDesc;
61 NSString *_diffuseDesc;
62#endif
63}
64
65- (id) initWithEmissionMapSpec:(NSDictionary *)emissionMapSpec
66 emissionColor:(OOColor *)emissionColor
67 diffuseMap:(OOTexture *)diffuseMap
68 diffuseColor:(OOColor *)diffuseColor
69 illuminationMapSpec:(NSDictionary *)illuminationMapSpec
70 illuminationColor:(OOColor *)illuminationColor
71 optionsSpecifier:(NSDictionary *)spec;
72
73- (id) initWithEmissionAndIlluminationMapSpec:(NSDictionary *)emissionAndIlluminationMapSpec
74 diffuseMap:(OOTexture *)diffuseMap
75 diffuseColor:(OOColor *)diffuseColor
76 emissionColor:(OOColor *)emissionColor
77 illuminationColor:(OOColor *)illuminationColor
78 optionsSpecifier:(NSDictionary *)spec;
79
80@end