Castor3D 0.12.0
Multiplatform 3D engine
Public Types | Public Member Functions | List of all members
castor3d::GpuFunctorEvent Class Reference

#include <GpuFunctorEvent.hpp>

Inheritance diagram for castor3d::GpuFunctorEvent:
Inheritance graph
[legend]
Collaboration diagram for castor3d::GpuFunctorEvent:
Collaboration graph
[legend]

Public Types

using Functor = std::function< void(RenderDevice const &, QueueData const &) >
 

Public Member Functions

 GpuFunctorEvent (EventType type, Functor functor)
 Constructor. More...
 
- Public Member Functions inherited from castor3d::GpuFrameEvent
C3D_API GpuFrameEvent (GpuFrameEvent const &rhs)
 
C3D_API GpuFrameEvent (GpuFrameEvent &&rhs)
 
C3D_API GpuFrameEventoperator= (GpuFrameEvent const &rhs)
 
C3D_API GpuFrameEventoperator= (GpuFrameEvent &&rhs)
 
C3D_API GpuFrameEvent (EventType type)
 Constructor. More...
 
virtual C3D_API ~GpuFrameEvent ()=default
 Destructor. More...
 
void apply (RenderDevice const &device, QueueData const &queueData)
 Applies the event. More...
 
EventType getType () const
 
void skip ()
 Sets the event to be skipped. More...
 

Member Typedef Documentation

◆ Functor

using castor3d::GpuFunctorEvent::Functor = std::function< void( RenderDevice const &, QueueData const & ) >

Constructor & Destructor Documentation

◆ GpuFunctorEvent()

castor3d::GpuFunctorEvent::GpuFunctorEvent ( EventType  type,
Functor  functor 
)
inline

Constructor.

Parameters
[in]typeThe event type
[in]functorThe functor to execute

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