Commit Graph

20 Commits

Author SHA1 Message Date
ohsqueezy 0aafdb1ff0 linting docstring line lengths 2024-05-08 12:58:42 -04:00
ohsqueezy 1fff973b46 add option for texture resize filter to sprite, add functions for finding loudest mixer channel 2023-12-27 19:20:20 -08: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 12e5a15d1c add exception checks to Texture::bind and GLObject::id, make collision info storage a std::optional object 2023-06-26 20:49:14 -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
ohsqueezy 3ba3be4496 - add Switch and time_it classes
- finish adding #pragma once to headers
- move configuration initialization into Game class
- print debug to stdout by default
- explicitly pass file to refresh to config auto refresh
- add delegate to sb namespace and deprecate get_delegate() in favor of delegate()
- set custom log function before loading config
- raise exception when no model textures are available
2023-05-23 15:28:53 -04:00
ohsqueezy a8126605e8 added opencv camera linux and android demo; added carousel, connection, and model classes; added format parameter to texture.generate; added android opencv lib build instructions 2023-05-02 18:43:32 -04:00
frank f47c080d72 box demo android support, android file to string for reading files inside APK 2022-11-08 17:17:20 -05:00
frank ad9aab4a46 android helper scripts and icon assets and fill screen android demo 2022-10-17 21:57:56 -04:00
frank 24f6d3ed3d argument checking for texture load function input 2022-09-19 22:14:31 -04:00
frank 60acb11d41 parameter documentation for texture loading 2022-09-13 01:01:20 -04:00
frank 52ef535eac remove unsupported gl functions from emscripten builds, restore removing gl context settings from emscripten builds 2022-09-06 20:44:23 -04:00
frank 3444afc2c1 changed get_configuration to configuration; added option to return the larger ratio to box aspect; changed default window size to 16:9; changed get_window to window; added SDL_RENDERER_PRESENTVSYNC; removed clear renderer to black on emscripten builds to prevent mouse bug; 2022-06-16 16:45:41 -04:00
frank 3212dc15cf vbo, vao, and buffer classes 2021-10-18 17:33:33 -04:00
frank f70ea1c215 started log class 2021-10-02 19:21:07 -04:00
frank f03d58dae1 pass specialized generate function to generic base function for globject 2021-09-28 02:09:49 -04:00
frank 6adac9806f abstract base class for GL objects 2021-09-24 02:43:38 -04:00
frank 1a4b8507e3 GL texture class; logging functions changed to static 2021-09-20 02:32:15 -04:00