Lugdunum
0.1.0
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