ohsqueezy
8498dfa004
- consolidate GL includes into one header
...
- build flags for MacOS
- replace glTexStorage2D with more compatible glTexImage2D
2024-04-24 15:01:17 -04:00
ohsqueezy
87a946a61e
fix missed reference to std::filesystem
2024-04-18 00:14:55 -04:00
ohsqueezy
a1eef8017e
fix clang version in comment
2024-04-18 00:11:40 -04:00
ohsqueezy
65eead0079
use experimental filesystem path for Ubuntu 18.04
2024-04-18 00:01:23 -04:00
ohsqueezy
6fdfa67c41
WIP documentation on building for macOS and building wider Linux compatibility
2024-04-14 00:57:48 -04:00
ohsqueezy
caf9044093
use code block formatting for ascii art
2024-04-03 14:04:17 -04:00
ohsqueezy
5fa063ac6f
remove PI preprocessor definition from documentation
2024-04-02 19:07:56 -04:00
ohsqueezy
27ab95037f
add Animation constructor with just frame length parameter
2024-03-06 21:22:07 -05:00
ohsqueezy
0e4f06d779
- restore video recording
...
- remove sdl context
- configurable audio device settings
- deprecate node
- move audio recording input handling to game object
2024-03-04 19:44:06 -05:00
ohsqueezy
71ff65d588
added details and updates to Raspberry Pi doc section
2024-02-16 19:41:15 -05:00
ohsqueezy
923c805fe5
reset animation object before calling animation function in case the animation function reenables the animation
2023-12-28 16:11:35 -08: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
11c8abcc54
support for merging an optional list of config files at the beginning of the program
2023-12-26 22:31:28 -05:00
ohsqueezy
5d950387a8
make android and wasm config file paths configurable
2023-12-26 20:26:31 -05:00
ohsqueezy
8e62f9e0a2
initialize game controller interface at startup
2023-12-15 00:54:20 -05:00
ohsqueezy
8184a62a54
add escape to key IDs
2023-12-14 01:11:18 -05: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
fb68938889
use SDL's desktop fullscreen flag for simpler fullscreen behavior, and use Emscripten's fullscreen functionality for web builds; add a flag for disabling fullscreen through the configuration
2023-12-05 17:56:56 -05:00
ohsqueezy
5235535cc2
set window fullscreen display mode to current desktop mode before going fullscreen
2023-12-05 15:28:36 -05:00
ohsqueezy
a6a110141d
add toggle function to pause/unpause sb::Animation
2023-12-05 13:43:16 -05:00
ohsqueezy
5750997d5c
add doc to sb::Animation::playing
2023-12-04 23:14:30 -05:00
ohsqueezy
a5f55be257
function to get sb::Color as glm::vec4
2023-12-04 21:53:49 -05:00
ohsqueezy
ec6a720b24
set texture wrap to clamp
2023-11-30 00:34:54 -05:00
ohsqueezy
0a42df9a00
add sprite texture index increment function
2023-11-14 17:57:45 -05:00
ohsqueezy
110b876648
deprecate passing callback to Animation; add an update function to Sprite for running frame by frame animation; rename log's ERROR to ERR to avoid conflict with windows.h
2023-11-14 00:19:32 -05:00
ohsqueezy
333a7b73ac
pad object can be disabled and/or hidden
2023-11-08 20:00:48 -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
e168844fc5
- added Windows build using MinGW for box demo along with Windows instructions to main README
...
- replaced Model class in box demo with library's Model class
- switched GL context profile mask to compatibility in Windows builds
- only open audio device if audio is initialized
- increase default audio frequency and buffer size
- convert path objects to strings for compatibility with MinGW
- update MinGW builds to use regular filesystem library instead of experimental
2023-10-18 00:07:32 -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
5046b4bcf1
add custom event that fires on all window resize events
2023-09-28 21:11:30 -04:00
ohsqueezy
a4435242f8
minor edit to documentation wording
2023-09-22 23:22:00 -04:00
ohsqueezy
293d74e396
removed hyphens from keyboard input related configuration key names
2023-09-22 14:56:35 -04:00
ohsqueezy
9a6b80f443
added function for extracting a grid of tile surfaces from a larger SDL surface
2023-09-18 22:10:04 -04:00
ohsqueezy
d882e111b3
- fix sb::Pad to move the collision box when scaled or translated
...
- add warning about config JSON copy
- add setter for sb::Pad::_plane
- move point on circle functions from extension to math
2023-09-16 21:04:43 -04:00
ohsqueezy
4c3235c2ff
frame timing updated to run at maximum allowable framerate, delay between frame calls configurable, vsync flag configurable, max framerate configurable up to unlimited
2023-09-09 23:34:36 -04:00
ohsqueezy
c0fe0c782d
add doc comment to box scale functions
2023-09-04 16:31:10 -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
e453a62679
update sprite class's private member var comments, remove extraneous quotes from texture log message
2023-08-14 16:44:25 -04:00
ohsqueezy
a055001482
add method to clear texture list to sprite class, add comments explaining model class's private member vars
2023-08-14 16:30:38 -04:00
ohsqueezy
edafaf08ea
add texture index to Sprite class, add more error checks to texture surface creation
2023-08-08 12:41:10 -04:00
ohsqueezy
62450f7033
add support for specifying multiple keys per command in config
2023-08-02 13:17:44 -04:00
ohsqueezy
67fa7e61c3
docstring example for outputting attributes to stream
2023-07-27 23:21:14 -04:00
ohsqueezy
67c3e193f4
add more info to message when exeception is raised while enabling model attributes
2023-07-23 20:01:45 -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
1d527898aa
watch multiple config files for changes
2023-07-21 00:51:19 -04:00
ohsqueezy
27d2128e1f
move post command into delegate
2023-07-19 12:47:18 -04:00
ohsqueezy
cd66f70d0c
attribute index exception, overload attributes bind, model add and bind methods
2023-07-18 23:23:29 -04:00
ohsqueezy
d1fe6b927c
move sprite and pad into sb namespace
2023-07-15 12:19:37 -04:00