-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog 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.
- Loading branch information
1 parent
d9fe7c2
commit 1fdd3b9
Showing
11 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.