GreenComfyTea

Untitled

Mar 27th, 2024
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.22 KB | None | 0 0
  1. #pragma once
  2. #include "NativeModule.h"
  3. #include "Timeline.h"
  4.  
  5. #include <d3d11.h>
  6. #include <d3d12.h>
  7. #include <dxgi.h>
  8. #include <IconsFontAwesome6.h>
  9.  
  10. #include <imgui_impl.h>
  11.  
  12. struct MOTION_INFO;
  13.  
  14. class ImGuiModule final : public NativeModule {
  15. public:
  16.     void initialize(CoreClr* coreclr) override;
  17.     void shutdown() override;
  18.  
  19. private:
  20.     static void create_device_objects_dx11();
  21.     static void create_device_objects_dx12();
  22.  
  23.     static bool begin_timeline(const char* label, float start_frame, float end_frame, float* p_current_frame, ImGuiTimelineFlags flags);
  24.     static void end_timeline();
  25.  
  26.     static bool begin_timeline_group(const char* label, bool* open);
  27.     static void end_timeline_group();
  28.  
  29.     static bool timeline_track(const char* label, float* keyframes, int keyframe_count, int* out_selected_keyframe);
  30.  
  31.     static void notification_success(const char* text, int display_time);
  32.     static void notification_error(const char* text, int display_time);
  33.     static void notification_warning(const char* text, int display_time);
  34.     static void notification_info(const char* text, int display_time);
  35.  
  36.     static void notification(int type, int duration, const char* title, const char* text);
  37. };
Advertisement
Add Comment
Please, Sign In to add comment