Skip to content

Releases: DigiPen-Faculty/CProcessing

v2.1.0

18 Dec 07:15
Compare
Choose a tag to compare

CProcessingTemplate.zip

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:

Full Changelog: v2.0.0...v2.1.0

v2.0.0

06 Jul 18:09
5a1ae7b
Compare
Choose a tag to compare

The CProcessingTemplate.zip package includes a Visual Studio project that is ready to be used.