#include #include #include #include #include #include #include "sldjConfig.h" #include "scripting.h" #include "ffmpeg.h" #include "libsldj/util.h" #ifndef SLDJ_H #define SLDJ_H typedef struct Sldj { RenderTexture viewport; Rectangle viewPortRect; bool isPaused; uint8_t targetFps; uint32_t frameCounter; // Used for always using a 0 to 2**16 range when scanning. uint16_t xCount; uint16_t yCount; SldjScripting scripting; char scriptFilepath[SLDJ_NAMEMAX]; struct { Rectangle fpsSlider; float fpsSliderValue; // Viewport shit. Rectangle widthSlider; Rectangle heightSlider; float widthSliderValue; float heightSliderValue; Rectangle viewportButton; } gui; FFMPEG* ffmpeg; } Sldj; void initSldj(Sldj* sldj); void updateSldj(Sldj* sldj); void closeSldj(Sldj* sldj); void resizeGui(Sldj* sldj); void resetViewportRect(Sldj* sldj, float scale); void resetViewport(Sldj* sldj, int width, int height); void reloadScriptContext(Sldj* sldj); void reloadScript(Sldj* sldj); #endif