#ifndef __Compute_H__ #define __Compute_H__ #include "SdkSample.h" #include "SamplePlugin.h" namespace OgreBites { using namespace Ogre; class _OgreSampleClassExport Sample_Compute : public SdkSample { public: Sample_Compute(); void testCapabilities(const RenderSystemCapabilities* caps); void setupContent(void); bool frameStarted(const FrameEvent& evt) override; // Press K to update the SSBO bool keyPressed(const KeyboardEvent& evt) override; private: void createCompositor(); void createEntity(); void updateSSBO(float coefficient); void updateUBO(float timeSinceLastFrame); Entity* mEntity; float mPhase = .0f; float mPeriod = 2.0f; }; } #endif // end _CompositorDemo_H_