Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::TwinVisualsTexAtlasRenderTask Struct Reference
Inheritance diagram for Cogs::Core::TwinVisualsTexAtlasRenderTask:
Cogs::Core::RenderTask

Public Member Functions

 TwinVisualsTexAtlasRenderTask (RenderTaskContext *renderTaskContext, TexAtlasSystem *texAtlasSystem, TwinVisualsSystem *twinVisualsSystem, const RenderTaskDefinition &renderTaskDefinition, const PipelineOptions &pipelineOptions)
 
Cogs::ResourceStatus checkReady (RenderTaskContext *renderTaskContext) override
 Check if the task is ready to be applied, e.g.
 
void apply (RenderTaskContext *renderTaskContext) override
 
void cleanup (RenderTaskContext *renderTaskContext) override
 
- Public Member Functions inherited from Cogs::Core::RenderTask
virtual void initialize (RenderTaskContext *)
 
virtual void cleanup (RenderTaskContext *)
 
virtual void apply (RenderTaskContext *)=0
 
virtual Cogs::ResourceStatus checkReady (RenderTaskContext *)
 Check if the task is ready to be applied, e.g.
 
bool isStatic () const
 

Public Attributes

TexAtlasSystemtexAtlasSystem = nullptr
 
TwinVisualsSystemtwinVisualsSystem = nullptr
 
CachedEffecteffect = nullptr
 
GlobalBinding globalBinding {}
 
BufferHandle constants = BufferHandle::NoHandle
 
bool clearColor = true
 
bool viewportFromTarget = false
 
DepthStencilStateHandle depthStencilStateHandle = DepthStencilStateHandle::NoHandle
 
BlendMode blendMode = BlendMode::None
 
bool firstRun = true
 
bool inputSrgb = false
 
bool lumaInAlpha = false
 
bool outputSrgb = true
 
TexAtlasState state {}
 
Cogs::ResourceStatus effectStatus = Cogs::ResourceStatus::Pending
 
- Public Attributes inherited from Cogs::Core::RenderTask
RenderTaskResources input
 
RenderTaskResources output
 
std::string name
 
std::vector< std::string > dependencies
 
PipelineOptions options
 
RenderTaskFlags::ERenderTaskFlags flags = RenderTaskFlags::None
 
bool allowSelfDependency = false
 
size_t frameMod = 0
 
size_t frameOffset = 0
 
std::function< void(void)> deleter
 

Detailed Description

Definition at line 48 of file TwinVisualsTexAtlasRenderTask.h.

Constructor & Destructor Documentation

◆ TwinVisualsTexAtlasRenderTask()

Cogs::Core::TwinVisualsTexAtlasRenderTask::TwinVisualsTexAtlasRenderTask ( RenderTaskContext renderTaskContext,
TexAtlasSystem texAtlasSystem,
TwinVisualsSystem twinVisualsSystem,
const RenderTaskDefinition renderTaskDefinition,
const PipelineOptions &  pipelineOptions 
)

Definition at line 333 of file TwinVisualsTexAtlasRenderTask.cpp.

Member Function Documentation

◆ apply()

void Cogs::Core::TwinVisualsTexAtlasRenderTask::apply ( RenderTaskContext renderTaskContext)
overridevirtual

Implements Cogs::Core::RenderTask.

Definition at line 474 of file TwinVisualsTexAtlasRenderTask.cpp.

◆ checkReady()

Cogs::ResourceStatus Cogs::Core::TwinVisualsTexAtlasRenderTask::checkReady ( RenderTaskContext )
overridevirtual

Check if the task is ready to be applied, e.g.

that any effects it depends on have finished loading.

This is called unconditionally for every task, every frame, regardless of the readiness of other tasks - so that any pending loads triggered here get a chance to start as early as possible, instead of being serialized behind other tasks becoming ready first.

Returns
Cogs::ResourceStatus::Ready if apply() should be called this frame, Pending if the task should be retried next frame, or Error if the task has permanently failed.

Reimplemented from Cogs::Core::RenderTask.

Definition at line 402 of file TwinVisualsTexAtlasRenderTask.cpp.

References Cogs::Core::Renderer::getBackgroundColor(), Cogs::ComponentModel::Component::getComponent(), and Cogs::Core::TransformSystem::getOrigin().

◆ cleanup()

void Cogs::Core::TwinVisualsTexAtlasRenderTask::cleanup ( RenderTaskContext renderTaskContext)
overridevirtual

Reimplemented from Cogs::Core::RenderTask.

Definition at line 575 of file TwinVisualsTexAtlasRenderTask.cpp.

Member Data Documentation

◆ blendMode

BlendMode Cogs::Core::TwinVisualsTexAtlasRenderTask::blendMode = BlendMode::None

Definition at line 71 of file TwinVisualsTexAtlasRenderTask.h.

◆ clearColor

bool Cogs::Core::TwinVisualsTexAtlasRenderTask::clearColor = true

Definition at line 68 of file TwinVisualsTexAtlasRenderTask.h.

◆ constants

BufferHandle Cogs::Core::TwinVisualsTexAtlasRenderTask::constants = BufferHandle::NoHandle

Definition at line 66 of file TwinVisualsTexAtlasRenderTask.h.

◆ depthStencilStateHandle

DepthStencilStateHandle Cogs::Core::TwinVisualsTexAtlasRenderTask::depthStencilStateHandle = DepthStencilStateHandle::NoHandle

Definition at line 70 of file TwinVisualsTexAtlasRenderTask.h.

◆ effect

CachedEffect* Cogs::Core::TwinVisualsTexAtlasRenderTask::effect = nullptr

Definition at line 63 of file TwinVisualsTexAtlasRenderTask.h.

◆ effectStatus

Cogs::ResourceStatus Cogs::Core::TwinVisualsTexAtlasRenderTask::effectStatus = Cogs::ResourceStatus::Pending

Definition at line 79 of file TwinVisualsTexAtlasRenderTask.h.

◆ firstRun

bool Cogs::Core::TwinVisualsTexAtlasRenderTask::firstRun = true

Definition at line 73 of file TwinVisualsTexAtlasRenderTask.h.

◆ globalBinding

GlobalBinding Cogs::Core::TwinVisualsTexAtlasRenderTask::globalBinding {}

Definition at line 65 of file TwinVisualsTexAtlasRenderTask.h.

◆ inputSrgb

bool Cogs::Core::TwinVisualsTexAtlasRenderTask::inputSrgb = false

Definition at line 74 of file TwinVisualsTexAtlasRenderTask.h.

◆ lumaInAlpha

bool Cogs::Core::TwinVisualsTexAtlasRenderTask::lumaInAlpha = false

Definition at line 75 of file TwinVisualsTexAtlasRenderTask.h.

◆ outputSrgb

bool Cogs::Core::TwinVisualsTexAtlasRenderTask::outputSrgb = true

Definition at line 76 of file TwinVisualsTexAtlasRenderTask.h.

◆ state

TexAtlasState Cogs::Core::TwinVisualsTexAtlasRenderTask::state {}

Definition at line 78 of file TwinVisualsTexAtlasRenderTask.h.

◆ texAtlasSystem

TexAtlasSystem* Cogs::Core::TwinVisualsTexAtlasRenderTask::texAtlasSystem = nullptr

Definition at line 61 of file TwinVisualsTexAtlasRenderTask.h.

◆ twinVisualsSystem

TwinVisualsSystem* Cogs::Core::TwinVisualsTexAtlasRenderTask::twinVisualsSystem = nullptr

Definition at line 62 of file TwinVisualsTexAtlasRenderTask.h.

◆ viewportFromTarget

bool Cogs::Core::TwinVisualsTexAtlasRenderTask::viewportFromTarget = false

Definition at line 69 of file TwinVisualsTexAtlasRenderTask.h.


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