2023-08-16 23:50:07 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "logger.h"
|
|
|
|
|
#include <EGL/egl.h>
|
2023-08-17 21:05:15 -04:00
|
|
|
#include <GLES3/gl3.h>
|
2023-08-16 23:50:07 -04:00
|
|
|
|
|
|
|
|
namespace satdump
|
|
|
|
|
{
|
|
|
|
|
class LoadingScreenSink : public slog::LoggerSink
|
|
|
|
|
{
|
|
|
|
|
public:
|
2023-08-23 15:45:10 -04:00
|
|
|
LoadingScreenSink(EGLDisplay *g_EglDisplay, EGLSurface *g_EglSurface, float scale);
|
2023-08-16 23:50:07 -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 23:50:07 -04:00
|
|
|
EGLDisplay *g_EglDisplay;
|
|
|
|
|
EGLSurface *g_EglSurface;
|
2023-08-17 21:05:15 -04:00
|
|
|
GLuint image_texture;
|
2023-08-23 15:45:10 -04:00
|
|
|
float scale;
|
2023-08-16 23:50:07 -04:00
|
|
|
};
|
|
|
|
|
}
|