satdump/android/loading_screen.h

24 lines
531 B
C
Raw Normal View History

#pragma once
#include "logger.h"
#include <EGL/egl.h>
2023-08-17 21:05:15 -04:00
#include <GLES3/gl3.h>
namespace satdump
{
class LoadingScreenSink : public slog::LoggerSink
{
public:
LoadingScreenSink(EGLDisplay *g_EglDisplay, EGLSurface *g_EglSurface, float scale);
~LoadingScreenSink();
protected:
void receive(slog::LogMsg log);
private:
2023-08-17 21:05:15 -04:00
void push_frame(std::string str);
EGLDisplay *g_EglDisplay;
EGLSurface *g_EglSurface;
2023-08-17 21:05:15 -04:00
GLuint image_texture;
float scale;
};
}