Commit Graph

18 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 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 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 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 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 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 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 cd66f70d0c attribute index exception, overload attributes bind, model add and bind methods 2023-07-18 23:23:29 -04:00
ohsqueezy 7bbc0f851d minor fix to model documentation 2023-07-15 12:05:06 -04:00
ohsqueezy 89fbe359f6 Add exception handling to Attributes::bind, add default constructor to Model 2023-07-13 21:38:53 -04:00
ohsqueezy 88cf70b828 add const qualifier to Model::size 2023-06-30 13:41:05 -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 824efcc71f add external resources; add alpha to plane colors 2023-06-03 01:07:18 -04:00
ohsqueezy 2f7a4cb602 - attributes objects track their offset in the VBO
- call to glVertexAttribPointer moved from VBO class to Attributes class
- added a public domain function for computing bezier points
2023-06-02 14:54:06 -04:00
ohsqueezy 7140e8a3eb - add untransform, transform, and specialized transforms to Model class
- reset viewport on window resize events
- add boolean assignment operator to Switch class
- throw error if GL object is generated before GL context is created
- add Selection container
- add string conversion to Box
2023-05-24 22:49:05 -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