Photon Engine
2.0.0-beta
A physically based renderer.
Toggle main menu visibility
Home
Components
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
k
m
p
r
s
t
u
x
y
z
Typedefs
a
b
c
d
e
f
h
i
k
l
m
p
q
r
s
t
v
Enumerations
e
Enumerator
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Related Symbols
Files
File List
File Members
All
b
c
f
i
k
m
p
s
Functions
Typedefs
Macros
▼
Photon Engine
Home
Components
►
Engine
►
Engine Directories
Bibliography
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
Documentation
►
Include
▼
Source
▼
Actor
►
Basic
►
Dome
►
Geometry
▼
Image
►
BinaryMixedImage.cpp
►
BinaryMixedImage.h
►
BlackBodyRadiationImage.cpp
►
BlackBodyRadiationImage.h
►
CheckerboardImage.cpp
►
CheckerboardImage.h
►
ConstantImage.cpp
►
ConstantImage.h
GradientImage.cpp
►
GradientImage.h
Image.cpp
►
Image.h
►
MathImage.cpp
►
MathImage.h
►
RasterFileImage.cpp
►
RasterFileImage.h
RasterImageBase.cpp
►
RasterImageBase.h
►
sdl_image_enums.h
►
SwizzledImage.cpp
►
SwizzledImage.h
►
Light
►
Material
►
ModelParser
►
MotionSource
►
SDLExtension
►
Actor.cpp
►
Actor.h
►
ADome.cpp
►
ADome.h
AMaskedModel.cpp
►
AMaskedModel.h
►
AModel.cpp
►
AModel.h
APhantomModel.cpp
►
APhantomModel.h
►
ATransformedInstance.cpp
►
ATransformedInstance.h
ModelBuilder.cpp
ModelBuilder.h
ModelLoader.cpp
ModelLoader.h
PhysicalActor.cpp
►
PhysicalActor.h
StandaloneSdlResource.h
►
Api
►
Common
►
Core
►
DataIO
►
EngineEnv
►
Frame
►
Math
►
SDL
►
Utility
►
World
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
Loading...
Searching...
No Matches
BinaryMixedImage.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Actor/Image/Image.h
"
4
5
#include <memory>
6
#include <utility>
7
8
namespace
ph
9
{
10
11
class
BinaryMixedImage
:
public
Image
12
{
13
public
:
14
BinaryMixedImage
();
15
16
std::shared_ptr<TTexture<Image::ArrayType>>
genNumericTexture
(
17
const
CookingContext
& ctx)
override
= 0;
18
19
std::shared_ptr<TTexture<math::Spectrum>>
genColorTexture
(
20
const
CookingContext
& ctx)
override
= 0;
21
22
void
setImageA
(
const
std::weak_ptr<Image>& imageA);
23
void
setImageB
(
const
std::weak_ptr<Image>& imageB);
24
25
protected
:
26
auto
checkoutImages
() const ->
std
::pair<
std
::shared_ptr<
Image
>,
std
::shared_ptr<
Image
>>;
27
28
private:
29
std
::weak_ptr<
Image
> m_imageA;
30
std
::weak_ptr<
Image
> m_imageB;
31
};
11
class
BinaryMixedImage
:
public
Image
{
…
};
32
33
// In-header Implementations:
34
35
inline
void
BinaryMixedImage
::
setImageA
(const
std
::weak_ptr<
Image
>& imageA)
36
{
37
m_imageA = imageA;
38
}
35
inline
void
BinaryMixedImage
::
setImageA
(const
std
::weak_ptr<
Image
>& imageA) {
…
}
39
40
inline
void
BinaryMixedImage::setImageB
(
const
std::weak_ptr<Image>& imageB)
41
{
42
m_imageB = imageB;
43
}
40
inline
void
BinaryMixedImage::setImageB
(
const
std::weak_ptr<Image>& imageB) {
…
}
44
45
}
// end namespace ph
Image.h
ph::BinaryMixedImage
Definition
BinaryMixedImage.h:12
ph::BinaryMixedImage::setImageB
void setImageB(const std::weak_ptr< Image > &imageB)
Definition
BinaryMixedImage.h:40
ph::BinaryMixedImage::BinaryMixedImage
BinaryMixedImage()
Definition
BinaryMixedImage.cpp:10
ph::BinaryMixedImage::genColorTexture
std::shared_ptr< TTexture< math::Spectrum > > genColorTexture(const CookingContext &ctx) override=0
ph::BinaryMixedImage::setImageA
void setImageA(const std::weak_ptr< Image > &imageA)
Definition
BinaryMixedImage.h:35
ph::BinaryMixedImage::checkoutImages
auto checkoutImages() const -> std::pair< std::shared_ptr< Image >, std::shared_ptr< Image > >
Definition
BinaryMixedImage.cpp:18
ph::BinaryMixedImage::genNumericTexture
std::shared_ptr< TTexture< Image::ArrayType > > genNumericTexture(const CookingContext &ctx) override=0
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::Image
Definition
Image.h:21
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
std
Definition
TAABB2D.h:96
Source
Actor
Image
BinaryMixedImage.h
Generated by
1.11.0