Releases: DigiPen-Faculty/CProcessing
Releases · DigiPen-Faculty/CProcessing
v2.1.0
Changelog
12/2024 Release
Bug Fixes:
- cleaned up memory leaks on shutdown (glfw, nvg, and image vector)
- save/restore didn't retain state across frames
- changed file encoding for CP_System.c so git could properly track and diff
- Screen to world calculations in Math and Input suffered from a race condition where reads and writes were happening to the same matrix.
- CP_Font_Free was missing from the API
- Draw calls that were already in the queue would still render to the screen even if CP_Graphics_ClearBackground was called. The expectation is that if you clear the background, stuff doesn't magically not clear.
Improvements:
- Overhaul of CP_Image internals. Switched CP_Image to use vect.h for container. One big plus is that you can now draw and free an image in a single frame and it will still render correctly.
- CP_Settings_RectMode now defaults to CP_POSITION_CENTER. This matches the other draw objects, Ellipse and Image.
- CP_Graphics_DrawPoint now uses stroke settings to assign color, weight, and shape style.
- Added focus awareness. We now stop processing input when the window loses focus. We also added a function so the user can check focus status.
- Add CP_Vector_AngleCW and AngleCCW to clear up some vector angle ambiguity.
CP_Vector_AngleCW is always positive, [0, 360)
CP_Vector_AngleCCW is always negative, [0, -360) - Added CP_Image_SubImageAdvanced to now support simple rotation of a subimage.
- Increased default frame rate to 60Hz. Also added CP_System_GetDisplayRefreshRate so the user can request the device refresh rate in Hz.
GitHub Automated Release Notes and Links:
- Screenshot bug fixes by @justinchambers-dp in #23
- ScreenToWorld bug fix by @justinchambers-dp in #25
- CP_Graphics_DrawPoint - match DrawLine color, size, and shape by @justinchambers-dp in #24
- RectMode - Center - this matches Ellipse and Image by @justinchambers-dp in #26
- Window Focus Detection by @justinchambers-dp in #27
- CP_Font_Free - add this important asset memory cleanup function by @justinchambers-dp in #28
- BugFix - CP_Graphics_ClearBackground not always clearing the background by @justinchambers-dp in #29
- Add CW and CCW vector angle functions by @justinchambers-dp in #32
- Added CP_Image_SubImageAdvanced() by @justinchambers-dp in #34
- Refresh Rate - added CP_System_GetDisplayRefreshRate and default FPS set to 60Hz by @justinchambers-dp in #35
- BuildReleasePackage.bat - new script to create the release package by @justinchambers-dp in #38
Full Changelog: v2.0.0...v2.1.0