2
0

PerformanceTestScene.h 691 B

123456789101112131415161718192021222324
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #pragma once
  4. // Base class for a test scene to test performance
  5. class PerformanceTestScene
  6. {
  7. public:
  8. // Virtual destructor
  9. virtual ~PerformanceTestScene() { }
  10. // Get name of test for debug purposes
  11. virtual const char * GetName() const = 0;
  12. // Load assets for the scene
  13. virtual bool Load() { return true; }
  14. // Start a new test by adding objects to inPhysicsSystem
  15. virtual void StartTest(PhysicsSystem &inPhysicsSystem, EMotionQuality inMotionQuality) = 0;
  16. // Stop a test and remove objects from inPhysicsSystem
  17. virtual void StopTest(PhysicsSystem &inPhysicsSystem) { }
  18. };