backend_impl.h 804 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include "../mesh.h"
  3. #include "../shader.h"
  4. #include <QOpenGLFunctions_3_3_Core>
  5. #include <cstddef>
  6. namespace Render::GL {
  7. class Backend;
  8. class Shader;
  9. struct Vertex;
  10. namespace BackendImpl {
  11. void initialize_cylinder_pipeline(Backend *backend);
  12. void shutdown_cylinder_pipeline(Backend *backend);
  13. void cache_cylinder_uniforms(Backend *backend);
  14. void upload_cylinder_instances(Backend *backend, std::size_t count);
  15. void draw_cylinders(Backend *backend, std::size_t count);
  16. void initialize_fog_pipeline(Backend *backend);
  17. void shutdown_fog_pipeline(Backend *backend);
  18. void cache_fog_uniforms(Backend *backend);
  19. void upload_fog_instances(Backend *backend, std::size_t count);
  20. void draw_fog(Backend *backend, std::size_t count);
  21. } // namespace BackendImpl
  22. } // namespace Render::GL