Unravel Engine C++ Reference
Loading...
Searching...
No Matches
render_view.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
frame_buffer.h
"
4
#include <
base/basetypes.hpp
>
5
#include <
base/hash.hpp
>
6
#include <functional>
7
#include <hpp/string_view.hpp>
8
#include <map>
9
10
namespace
gfx
11
{
12
13
14
class
render_view
15
{
16
public
:
17
auto
fbo_get_or_emplace
(
const
hpp::string_view&
id
) ->
frame_buffer::ptr
&;
18
auto
fbo_get
(
const
hpp::string_view&
id
)
const
->
const
frame_buffer::ptr
&;
19
auto
fbo_safe_get
(
const
hpp::string_view&
id
)
const
->
const
frame_buffer::ptr
&;
20
21
auto
tex_get_or_emplace
(
const
hpp::string_view&
id
) ->
texture::ptr
&;
22
auto
tex_get
(
const
hpp::string_view&
id
)
const
->
const
texture::ptr
&;
23
auto
tex_safe_get
(
const
hpp::string_view&
id
)
const
->
const
texture::ptr
&;
24
25
private
:
26
std::map<std::string, texture::ptr, std::less<>> textures_;
27
std::map<std::string, frame_buffer::ptr, std::less<>> fbos_;
28
};
29
30
}
// namespace gfx
gfx::handle_impl< frame_buffer, frame_buffer_handle >::ptr
std::shared_ptr< frame_buffer > ptr
Definition
handle_impl.h:13
gfx::render_view
Definition
render_view.h:15
gfx::render_view::fbo_safe_get
auto fbo_safe_get(const hpp::string_view &id) const -> const frame_buffer::ptr &
Definition
render_view.cpp:57
gfx::render_view::fbo_get_or_emplace
auto fbo_get_or_emplace(const hpp::string_view &id) -> frame_buffer::ptr &
Definition
render_view.cpp:39
gfx::render_view::fbo_get
auto fbo_get(const hpp::string_view &id) const -> const frame_buffer::ptr &
Definition
render_view.cpp:50
gfx::render_view::tex_get
auto tex_get(const hpp::string_view &id) const -> const texture::ptr &
Definition
render_view.cpp:18
gfx::render_view::tex_safe_get
auto tex_safe_get(const hpp::string_view &id) const -> const texture::ptr &
Definition
render_view.cpp:26
gfx::render_view::tex_get_or_emplace
auto tex_get_or_emplace(const hpp::string_view &id) -> texture::ptr &
Definition
render_view.cpp:7
basetypes.hpp
frame_buffer.h
hash.hpp
gfx
Definition
debugdraw.cpp:7
UnravelEngine
UnravelEngine
engine
core
graphics
render_view.h
Generated by
1.12.0