nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::PostProcess Class Reference

#include <postprocess.h>

Public Member Functions

 PostProcess ()
 ~PostProcess ()
 PostProcess (const PostProcess &)=delete
PostProcess & operator= (const PostProcess &)=delete
void Begin (const GraphicsSettings &graphics)
void Begin (const GraphicsSettings &graphics, int width, int height)
void End ()
void Draw ()
 Draws the frame to the screen, with bloom if it's on.
void DrawOnto (const RenderTexture2D &into)

Detailed Description

What the world goes through on its way to the screen. The renderer draws it into a frame of our own, a render texture, and the frame goes to the screen from there, so that shaders can work on the whole picture first. The GUI goes on top, as it is.

Definition at line 16 of file postprocess.h.

Constructor & Destructor Documentation

◆ PostProcess() [1/2]

nanommo::PostProcess::PostProcess ( )

Definition at line 155 of file postprocess.cc.

◆ ~PostProcess()

nanommo::PostProcess::~PostProcess ( )

Definition at line 161 of file postprocess.cc.

◆ PostProcess() [2/2]

nanommo::PostProcess::PostProcess ( const PostProcess & )
delete

Member Function Documentation

◆ Begin() [1/2]

void nanommo::PostProcess::Begin ( const GraphicsSettings & graphics)

What's drawn from here goes into the frame, until End, and Draw puts it on the screen as the settings say.

Definition at line 173 of file postprocess.cc.

◆ Begin() [2/2]

void nanommo::PostProcess::Begin ( const GraphicsSettings & graphics,
int width,
int height )

Into a frame of that many pixels, whatever the window's size, as for a film's.

Definition at line 179 of file postprocess.cc.

◆ Draw()

void nanommo::PostProcess::Draw ( )

Draws the frame to the screen, with bloom if it's on.

Definition at line 235 of file postprocess.cc.

◆ DrawOnto()

void nanommo::PostProcess::DrawOnto ( const RenderTexture2D & into)

Draws the frame into the render texture instead, at its size, as for a film's frame. The passes before the last switch to frames of their own, so this one picks the render texture itself.

Definition at line 237 of file postprocess.cc.

◆ End()

void nanommo::PostProcess::End ( )

Definition at line 208 of file postprocess.cc.

◆ operator=()

PostProcess & nanommo::PostProcess::operator= ( const PostProcess & )
delete

The documentation for this class was generated from the following files: