Rendu
A lightweight rendering engine for experimentations
Main Page
Modules
Namespaces
Classes
Files
Related Pages
File List
Loading...
Searching...
No Matches
src
engine
renderers
Renderer.hpp
1
#pragma once
2
#include "system/Config.hpp"
3
#include "input/Camera.hpp"
4
#include "resources/Texture.hpp"
5
10
class
Renderer
{
11
12
public
:
13
17
Renderer
(
const
std::string & name);
18
25
virtual
void
draw
(
const
Camera
& camera,
Texture
* dstColor,
Texture
* dstDepth, uint layer = 0);
26
31
virtual
void
resize
(uint width, uint height);
32
36
virtual
void
interface
();
37
39
virtual
~Renderer
() =
default
;
40
42
Renderer
(
const
Renderer
&) =
delete
;
43
47
Renderer
&
operator=
(
const
Renderer
&) =
delete
;
48
50
Renderer
(
Renderer
&&) =
delete
;
51
55
Renderer
&
operator=
(
Renderer
&&) =
delete
;
56
58
Layout
outputColorFormat
()
const
{
return
_colorFormat
; }
59
61
Layout
outputDepthFormat
()
const
{
return
_depthFormat
; }
62
63
protected
:
64
65
std::string
_name
;
66
Layout
_colorFormat
= Layout::NONE;
67
Layout
_depthFormat
= Layout::NONE;
68
};
Camera
This class represents a camera as used in real-time rendering APIs. It provides a view and projection...
Definition:
Camera.hpp:11
Renderer
Base structure of a renderer.
Definition:
Renderer.hpp:10
Renderer::_colorFormat
Layout _colorFormat
The preferred output format for a given renderer.
Definition:
Renderer.hpp:66
Renderer::outputColorFormat
Layout outputColorFormat() const
Definition:
Renderer.hpp:58
Renderer::outputDepthFormat
Layout outputDepthFormat() const
Definition:
Renderer.hpp:61
Renderer::interface
virtual void interface()
Definition:
Renderer.cpp:12
Renderer::_name
std::string _name
Debug name.
Definition:
Renderer.hpp:65
Renderer::resize
virtual void resize(uint width, uint height)
Definition:
Renderer.cpp:17
Renderer::operator=
Renderer & operator=(const Renderer &)=delete
Renderer::Renderer
Renderer(const Renderer &)=delete
Renderer::Renderer
Renderer(Renderer &&)=delete
Renderer::draw
virtual void draw(const Camera &camera, Texture *dstColor, Texture *dstDepth, uint layer=0)
Definition:
Renderer.cpp:7
Renderer::~Renderer
virtual ~Renderer()=default
Renderer::operator=
Renderer & operator=(Renderer &&)=delete
Renderer::_depthFormat
Layout _depthFormat
The preferred output format for a given renderer.
Definition:
Renderer.hpp:67
Texture
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition:
Texture.hpp:12
Layout
Layout
The layout of a texture: components count and type.
Definition:
GPUTypes.hpp:225
Generated by
Doxygen
1.9.5 - Theme by
Simon Rodriguez