An openFrameworks add-on to trigger a faded-out splash image. Typically when starting an oF_App
, but working manually during runtime too.
- Floating and borderless mode. (
WIN32
Only) - Faded Out on non
Floating mode
. - Can be triggered by code during runtime.
- Can disable all other app drawings during splash.
NOT multi-threading
, nor drawing duringsetup()
for longer loading apps.
#include "ofxSurfingSplashScreen.h"
ofxSurfingSplashScreen splash;
void ofApp::setup()
{
// Set non floating mode
//splash.setModeFloating(false);
// Pick your image
splash.setup("assets/images/Paletto_Banner.png");
}
void ofApp::draw(){
{
if (splash.draw()) return;
// Can skip other drawings during splash
/* Draw your scene */
}
// Manual trig splash
splash.start();
- Fix a small flick when transitioning window sizes on floating mode.
- Fix: On weird scenarios (retrig when not finished...) causes wrong window sizes.
- Rescale down drawing when the image is bigger than the window.
- Add multithreading to allow drawing during slow setups.
- Add a transparent window on floating mode, using PNGs with alpha.
- Windows 10 / VS 2017 / OF ~0.11
An addon by @moebiusSurfing
( ManuMolina ) 2022
MIT License