Luanti 5.16.0-dev
Loading...
Searching...
No Matches
plain.h File Reference
#include "core.h"
#include "pipeline.h"
Include dependency graph for plain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Draw3D
 Implements a pipeline step that renders the 3D scene. More...
class  DrawWield
class  DrawHUD
 Implements a pipeline step that renders the game HUD. More...
class  MapPostFxStep
class  RenderShadowMapStep
class  UpscaleStep
 UpscaleStep step performs rescaling of the image in the source texture 0 to the size of the target. More...

Functions

std::unique_ptr< RenderStepcreate3DStage (Client *client, v2f scale)
RenderStepaddUpscaling (RenderPipeline *pipeline, RenderStep *previousStep, v2f downscale_factor, Client *client)
void populatePlainPipeline (RenderPipeline *pipeline, Client *client)
video::ECOLOR_FORMAT selectColorFormat (video::IVideoDriver *driver)
video::ECOLOR_FORMAT selectDepthFormat (video::IVideoDriver *driver)

Function Documentation

◆ addUpscaling()

RenderStep * addUpscaling ( RenderPipeline * pipeline,
RenderStep * previousStep,
v2f downscale_factor,
Client * client )

References RenderPipeline::addStep(), RenderPipeline::createOwned(), g_settings, selectColorFormat(), selectDepthFormat(), RenderStep::setRenderSource(), RenderStep::setRenderTarget(), and TextureBuffer::setTexture().

Referenced by populatePlainPipeline().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create3DStage()

std::unique_ptr< RenderStep > create3DStage ( Client * client,
v2f scale )

References addPostProcessing(), RenderPipeline::addStep(), g_settings, RenderPipeline::getOutput(), and RenderPipeline::own().

Referenced by populateAnaglyphPipeline(), populatePlainPipeline(), and populateSideBySidePipeline().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ populatePlainPipeline()

void populatePlainPipeline ( RenderPipeline * pipeline,
Client * client )

References RenderPipeline::addStep(), addUpscaling(), create3DStage(), RenderPipeline::createOwned(), getDownscaleFactor(), RenderPipeline::own(), and MapPostFxStep::setRenderTarget().

Referenced by createPipeline().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectColorFormat()

video::ECOLOR_FORMAT selectColorFormat ( video::IVideoDriver * driver)

References g_settings.

Referenced by addPostProcessing(), addUpscaling(), and populateSideBySidePipeline().

Here is the caller graph for this function:

◆ selectDepthFormat()

video::ECOLOR_FORMAT selectDepthFormat ( video::IVideoDriver * driver)

Referenced by addPostProcessing(), addUpscaling(), and populateSideBySidePipeline().

Here is the caller graph for this function: