Loading [MathJax]/extensions/tex2jax.js
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
Image.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
SDL/TSdlResourceBase.h
"
4
#include "
Math/TVector3.h
"
5
#include "
Core/Texture/TTexture.h
"
6
#include "
Math/Color/Spectrum.h
"
7
#include "
SDL/sdl_interface.h
"
8
#include "
Math/TArithmeticArray.h
"
9
10
#include <Common/config.h>
11
#include <Common/primitive_type.h>
12
13
#include <memory>
14
15
namespace
ph
{
class
CookingContext; }
16
17
namespace
ph
18
{
19
20
class
Image
:
public
TSdlResourceBase
<ESdlTypeCategory::Ref_Image>
21
{
22
public
:
23
using
ArrayType
=
math::TArithmeticArray<float64, PH_NUMERIC_IMAGE_MAX_ELEMENTS>
;
24
25
inline
static
constexpr
auto
ARRAY_SIZE
=
ArrayType::NUM_ELEMENTS
;
26
27
public
:
33
virtual
std::shared_ptr<TTexture<Image::ArrayType>>
genNumericTexture
(
34
const
CookingContext
& ctx) = 0;
35
41
virtual
std::shared_ptr<TTexture<math::Spectrum>>
genColorTexture
(
42
const
CookingContext
& ctx) = 0;
43
44
public
:
45
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<Image>
)
46
{
47
ClassType clazz(
"image"
);
48
clazz.docName(
"Image"
);
49
clazz.description(
"A block of data."
);
50
return
clazz;
51
}
45
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<Image>
) {
…
}
52
};
20
class
Image
:
public
TSdlResourceBase
<ESdlTypeCategory::Ref_Image> {
…
};
53
54
}
// end namespace ph
Spectrum.h
TArithmeticArray.h
TSdlResourceBase.h
TTexture.h
TVector3.h
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::Image
Definition
Image.h:21
ph::Image::genNumericTexture
virtual std::shared_ptr< TTexture< Image::ArrayType > > genNumericTexture(const CookingContext &ctx)=0
ph::Image::genColorTexture
virtual std::shared_ptr< TTexture< math::Spectrum > > genColorTexture(const CookingContext &ctx)=0
ph::Image::ARRAY_SIZE
static constexpr auto ARRAY_SIZE
Definition
Image.h:25
ph::Image::PH_DEFINE_SDL_CLASS
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< Image >)
Definition
Image.h:45
ph::TSdlOwnerClass
SDL binding type for a canonical SDL resource class.
Definition
TSdlOwnerClass.h:23
ph::TSdlResourceBase
A convenient ISdlResource with core requirements implemented. This class is similar to SdlResourceBas...
Definition
TSdlResourceBase.h:16
ph::math::TArithmeticArrayBase< TArithmeticArray< T, N >, T, N >::NUM_ELEMENTS
static constexpr auto NUM_ELEMENTS
Definition
TArithmeticArrayBase.h:36
ph::math::TArithmeticArray
Definition
TArithmeticArray.h:13
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
sdl_interface.h
Source
Actor
Image
Image.h
Generated by
1.11.0