Oolite
1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
src
Core
Materials
OOCombinedEmissionMapGenerator.h
Go to the documentation of this file.
1
/*
2
3
OOCombinedEmissionMapGenerator.h
4
5
Generator which renders a single RGB emission map from some combination of
6
emission_map, emission, illumination_map, illumination_color and
7
emission_and_illumination_map parameters.
8
9
10
Copyright (C) 2010-2013 Jens Ayton
11
12
Permission is hereby granted, free of charge, to any person obtaining a copy
13
of this software and associated documentation files (the "Software"), to deal
14
in the Software without restriction, including without limitation the rights
15
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
copies of the Software, and to permit persons to whom the Software is
17
furnished to do so, subject to the following conditions:
18
19
The above copyright notice and this permission notice shall be included in all
20
copies or substantial portions of the Software.
21
22
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
SOFTWARE.
29
30
*/
31
32
33
#import "
OOTextureGenerator.h
"
34
35
@class
OOColor
;
36
37
38
@interface
OOCombinedEmissionMapGenerator
:
OOTextureGenerator
39
{
40
@private
41
NSString *
_cacheKey
;
42
43
NSDictionary *
_emissionSpec
;
44
NSDictionary *
_illuminationSpec
;
45
OOTexture
*
_diffuseMap
;
46
47
OOPixMap
_emissionPx
;
48
OOPixMap
_diffusePx
;
49
OOPixMap
_illuminationPx
;
50
OOColor
*
_emissionColor
;
51
OOColor
*
_illuminationColor
;
52
BOOL
_isCombinedMap
;
53
54
uint32_t
_textureOptions
;
55
GLfloat
_anisotropy
;
56
GLfloat
_lodBias
;
57
58
#ifndef NDEBUG
59
NSString *
_emissionDesc
;
60
NSString *
_illuminationDesc
;
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
OOTextureGenerator.h
OOColor
Definition
OOColor.h:46
OOCombinedEmissionMapGenerator
Definition
OOCombinedEmissionMapGenerator.h:39
OOCombinedEmissionMapGenerator::_illuminationColor
OOColor * _illuminationColor
Definition
OOCombinedEmissionMapGenerator.h:51
OOCombinedEmissionMapGenerator::_cacheKey
NSString * _cacheKey
Definition
OOCombinedEmissionMapGenerator.h:41
OOCombinedEmissionMapGenerator::_emissionDesc
NSString * _emissionDesc
Definition
OOCombinedEmissionMapGenerator.h:59
OOCombinedEmissionMapGenerator::_illuminationDesc
NSString * _illuminationDesc
Definition
OOCombinedEmissionMapGenerator.h:60
OOCombinedEmissionMapGenerator::_lodBias
GLfloat _lodBias
Definition
OOCombinedEmissionMapGenerator.h:56
OOCombinedEmissionMapGenerator::_illuminationSpec
NSDictionary * _illuminationSpec
Definition
OOCombinedEmissionMapGenerator.h:44
OOCombinedEmissionMapGenerator::_isCombinedMap
BOOL _isCombinedMap
Definition
OOCombinedEmissionMapGenerator.h:52
OOCombinedEmissionMapGenerator::_anisotropy
GLfloat _anisotropy
Definition
OOCombinedEmissionMapGenerator.h:55
OOCombinedEmissionMapGenerator::_diffuseMap
OOTexture * _diffuseMap
Definition
OOCombinedEmissionMapGenerator.h:45
OOCombinedEmissionMapGenerator::_illuminationPx
OOPixMap _illuminationPx
Definition
OOCombinedEmissionMapGenerator.h:49
OOCombinedEmissionMapGenerator::_emissionColor
OOColor * _emissionColor
Definition
OOCombinedEmissionMapGenerator.h:50
OOCombinedEmissionMapGenerator::_emissionSpec
NSDictionary * _emissionSpec
Definition
OOCombinedEmissionMapGenerator.h:43
OOCombinedEmissionMapGenerator::_emissionPx
OOPixMap _emissionPx
Definition
OOCombinedEmissionMapGenerator.h:47
OOCombinedEmissionMapGenerator::_textureOptions
uint32_t _textureOptions
Definition
OOCombinedEmissionMapGenerator.h:54
OOCombinedEmissionMapGenerator::_diffusePx
OOPixMap _diffusePx
Definition
OOCombinedEmissionMapGenerator.h:48
OOCombinedEmissionMapGenerator::_diffuseDesc
NSString * _diffuseDesc
Definition
OOCombinedEmissionMapGenerator.h:61
OOTextureGenerator
Definition
OOTextureGenerator.h:46
OOTexture
Definition
OOTexture.h:117
OOPixMap
Definition
OOPixMap.h:48
Generated by
1.12.0