AppState_Benchmark04.h 693 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2008-2023 the Urho3D project
  2. // License: MIT
  3. #pragma once
  4. #include "AppState_Base.h"
  5. #include <Urho3D/Graphics/SpriteBatch.h>
  6. // Бенчмарк для SpriteBatch
  7. class AppState_Benchmark04 : public AppState_Base
  8. {
  9. public:
  10. URHO3D_OBJECT(AppState_Benchmark04, AppState_Base);
  11. public:
  12. AppState_Benchmark04(U3D::Context* context)
  13. : AppState_Base(context)
  14. {
  15. name_ = "SpriteBatch";
  16. }
  17. void OnEnter() override;
  18. void OnLeave() override;
  19. Urho3D::SharedPtr<Urho3D::SpriteBatch> spriteBatch_;
  20. float angle_ = 0.f;
  21. float scale_ = 0.f;
  22. void HandleEndAllViewsRender(U3D::StringHash eventType, U3D::VariantMap& eventData);
  23. };