mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-28 16:50:15 -06:00
add splashscreen
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user