Commit Graph

11 Commits

Author SHA1 Message Date
ohsqueezy 102d1749a5 added function to disable audio chunks, colors default to fully transparent, add public getters for Pad::box and Pad::visible 2024-05-01 20:25:35 -04:00
ohsqueezy 464e69be56 fix initial config modification check, add wrap parameter to text object 2023-12-12 00:42:38 -05:00
ohsqueezy c7fb948e39 make refresh function public for sb::Text 2023-12-07 19:24:04 -05:00
ohsqueezy a91bc4b773 - JSON from file static function
- configuration option to start in fullscreen
- render text wrapped when exceeding 3000 pixels wide (arbitrary temporary value)
- set timer elapsed to any amount of seconds
2023-11-04 23:52:43 -04:00
ohsqueezy d575307b15 - redesign audio library to use Chunk and Music classes which align more closely with SDL Mix_Chunk and Mix_Music
- remove default texture index from Model class
- add support for two textures to Pad class
- restore SDL audio mixer initialization parameters to SDL defaults
- add optional log level to SDL error logging function
2023-10-09 23:50:18 -04:00
ohsqueezy 081328e63d store size and format of texture object, only regenerate texture and reallocate memory if size and format are changing 2023-08-16 18:57:35 -04:00
ohsqueezy f9d171626f added more conversion rules for JSON array to GLM vertex, truncate attribute string representation, post reconfig event on configuration reload, added font load function, added exception handling to functions that bind textures 2023-07-23 17:11:41 -04:00
ohsqueezy b93aae19e0 rename sb::Text::size to sb::Text::dimensions 2023-07-22 14:00:37 -04:00
ohsqueezy 55d6e08480 convert between glm::vec and sb::Color, print hierarchy on config access error, composite text onto a separate background surface, set frame time to zero when timer paused 2023-07-08 16:19:31 -04:00
ohsqueezy aaaebc006d - use vector instead of map to store textures in Model class
- require a font to be passed to the Text class constructor
- convert default font from static member to non-static so it unloads from memory before TTF library unloads
- construct delegate object first so that it deletes last and other objects can call unsubscribe successfully
2023-06-11 01:07:15 -04:00
ohsqueezy 9ed0e9ea71 - add a text plane class
- load default font as a static class variable, make it a shared pointer
- add filter option to texture storage
- move Color into sb namespace
- move Delegate object into protected
2023-05-31 15:06:29 -04:00