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

#include <CpuFunctorEvent.hpp>

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

Public Types

using Functor = std::function< void() >
 

Public Member Functions

 CpuFunctorEvent (EventType type, Functor functor)
 Constructor. More...
 
- Public Member Functions inherited from castor3d::CpuFrameEvent
C3D_API CpuFrameEvent (CpuFrameEvent const &rhs)
 
C3D_API CpuFrameEvent (CpuFrameEvent &&rhs)
 
C3D_API CpuFrameEventoperator= (CpuFrameEvent const &rhs)
 
C3D_API CpuFrameEventoperator= (CpuFrameEvent &&rhs)
 
C3D_API CpuFrameEvent (EventType type)
 Constructor. More...
 
virtual C3D_API ~CpuFrameEvent ()=default
 Destructor. More...
 
void apply ()
 Applies the event. More...
 
EventType getType () const
 
void skip ()
 Sets the event to be skipped. More...
 

Member Typedef Documentation

◆ Functor

using castor3d::CpuFunctorEvent::Functor = std::function< void() >

Constructor & Destructor Documentation

◆ CpuFunctorEvent()

castor3d::CpuFunctorEvent::CpuFunctorEvent ( 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: