Lugdunum
0.1.0
Main Page
+
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
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class 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
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
Typedefs
Enumerations
+
Related Functions
:
b
c
d
g
l
p
s
w
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
+
Macros
d
f
l
n
s
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
lug
Graphics
Builder
Material.cpp
Go to the documentation of this file.
1
#include <
lug/Graphics/Builder/Material.hpp
>
2
3
#include <
lug/Graphics/Renderer.hpp
>
4
5
namespace
lug
{
6
namespace
Graphics {
7
namespace
Builder {
8
9
Material::Material
(
Renderer
& renderer) : _renderer(renderer) {}
10
11
Resource::SharedPtr<Render::Material>
Material::build
() {
12
switch
(
_renderer
.
getType
()) {
13
case
Renderer::Type::Vulkan
:
14
return
lug::Graphics::Vulkan::Builder::Material::build
(*
this
);
15
}
16
17
return
nullptr
;
18
}
19
20
}
// Builder
21
}
// Graphics
22
}
// lug
Renderer.hpp
lug::Graphics::Resource::SharedPtr
Dummy class for a shared pointer.
Definition:
Resource.hpp:66
lug::Graphics::Builder::Material::build
Resource::SharedPtr< Render::Material > build()
Definition:
Material.cpp:11
lug::Graphics::Builder::Material::Material
Material(Renderer &renderer)
Definition:
Material.cpp:9
lug::Graphics::Vulkan::Builder::Material::build
Resource::SharedPtr< lug::Graphics::Render::Material > build(const ::lug::Graphics::Builder::Material &builder)
Definition:
Material.cpp:14
Material.hpp
lug::Graphics::Renderer
Definition:
Renderer.hpp:18
lug
Definition:
Application.hpp:11
lug::Graphics::Builder::Material::_renderer
Renderer & _renderer
Definition:
Material.hpp:51
lug::Graphics::Renderer::getType
Type getType() const
Definition:
Renderer.inl:5
lug::Graphics::Renderer::Type::Vulkan
Generated by
1.8.13