2023-08-16 14:13:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
#include "logger.h"
|
|
|
|
|
|
|
|
|
|
namespace satdump
|
|
|
|
|
{
|
|
|
|
|
class LoadingScreenSink : public slog::LoggerSink
|
|
|
|
|
{
|
|
|
|
|
public:
|
2023-08-23 15:45:10 -04:00
|
|
|
LoadingScreenSink(GLFWwindow* window, float scale, GLFWimage* img);
|
2023-08-16 14:13:14 -04:00
|
|
|
~LoadingScreenSink();
|
|
|
|
|
protected:
|
|
|
|
|
void receive(slog::LogMsg log);
|
|
|
|
|
private:
|
2023-08-17 21:05:15 -04:00
|
|
|
void push_frame(std::string str);
|
2023-08-16 14:13:14 -04:00
|
|
|
GLFWwindow* window;
|
2023-09-03 23:44:52 -04:00
|
|
|
float scale;
|
2023-08-16 14:13:14 -04:00
|
|
|
GLuint image_texture;
|
|
|
|
|
};
|
|
|
|
|
}
|