add splashscreen

This commit is contained in:
Arisotura
2024-10-31 19:26:41 +01:00
parent 540ebe7256
commit 6c6cefad6c
4 changed files with 200 additions and 7 deletions

View File

@ -110,6 +110,9 @@ protected:
bool rendered;
QImage bitmap;
int rainbowstart;
int rainbowend;
};
QMutex osdMutex;
@ -117,6 +120,10 @@ protected:
unsigned int osdID;
std::deque<OSDItem> osdItems;
QPixmap splashLogo;
OSDItem splashText[3];
QPoint splashPos[4];
void loadConfig();
virtual void setupScreenLayout();
@ -141,6 +148,8 @@ protected:
virtual void osdDeleteItem(OSDItem* item);
void osdUpdate();
void calcSplashLayout();
};
@ -202,7 +211,7 @@ private:
GLuint screenVertexBuffer, screenVertexArray;
GLuint screenTexture;
GLuint screenShaderProgram;
GLuint screenShaderTransformULoc, screenShaderScreenSizeULoc;
GLint screenShaderTransformULoc, screenShaderScreenSizeULoc;
QMutex screenSettingsLock;
WindowInfo windowInfo;
@ -211,11 +220,14 @@ private:
GLuint osdShader;
GLint osdScreenSizeULoc, osdPosULoc, osdSizeULoc;
GLfloat osdScaleFactorULoc;
GLint osdScaleFactorULoc;
GLint osdTexScaleULoc;
GLuint osdVertexArray;
GLuint osdVertexBuffer;
std::map<unsigned int, GLuint> osdTextures;
GLuint logoTexture;
void osdRenderItem(OSDItem* item) override;
void osdDeleteItem(OSDItem* item) override;
};