NAP
sequenceplayeroutput.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 // nap includes
8 #include <nap/resource.h>
9 #include <rtti/factory.h>
10 
11 namespace nap
12 {
14 
15  // forward declares
16  class SequenceService;
17 
23  class NAPAPI SequencePlayerOutput : public Resource
24  {
25  friend class SequenceService;
26 
27  RTTI_ENABLE(Resource)
28  public:
33  explicit SequencePlayerOutput(SequenceService& service);
34 
38  ~SequencePlayerOutput() override = default;
39 
45  bool init(utility::ErrorState& errorState) override;
46 
50  void onDestroy() override;
51 
52  protected:
57  virtual void update(double deltaTime)
58  {
59  };
60 
61  // ptr to service
62  SequenceService* mService = nullptr;
63  };
64 }
nap::SequenceService
Definition: sequenceservice.h:42
nap::utility::ErrorState
Definition: errorstate.h:19
nap::SequencePlayerOutput
Definition: sequenceplayeroutput.h:23
nap
Definition: templateapp.h:17
nap::SequencePlayerOutput::update
virtual void update(double deltaTime)
Definition: sequenceplayeroutput.h:57
nap::Resource
Definition: resource.h:19