pikaContext.h 495 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <pikaAllocator/freeListAllocator.h>
  3. struct GLFWwindow;
  4. struct ImGuiContext;
  5. //void glfwMakeContextCurrent(GLFWwindow *handle)
  6. namespace pika
  7. {
  8. struct PikaContext
  9. {
  10. //using glfwMakeContextCurrent_t = decltype(glfwMakeContextCurrent);
  11. using glfwMakeContextCurrent_t = void(GLFWwindow *);
  12. glfwMakeContextCurrent_t *glfwMakeContextCurrentPtr = {};
  13. GLFWwindow *wind = {};
  14. ImGuiContext *ImGuiContext = {};
  15. pika::memory::FreeListAllocator imguiAllocator;
  16. };
  17. };