Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all datafile functions (+needed dependent functions) #73

Merged
merged 8 commits into from
Jan 25, 2022

Conversation

madebr
Copy link
Collaborator

@madebr madebr commented Jan 22, 2022

This improved datafile allows us to write back brender data structures to disk.
This also includes reading/writing text representations of the brender structures.
I added a substantial amount of tests for this.

This pr adds the following:

  • adds fixed functions/macros in fixed.c/fixed.h. This allows to hide the many conversion factors to convert fixed to float numbers.
  • implement all scratch functions since datafile uses these
  • my math pr Implement all brender matrix functions #66 did not actually build the tests, so fix this
  • BrFilePrintf was missing + BrVSprintfN wasn't returning anything
  • Add the ability to the test suite to create temporary files since datafile needs to be able to write to disk.
    These files are created in a process dependent folder (it includes the process id).
    On Linux, this creates e.g. the /tmp/dethrace_test_5408/ folder.

Output of github actions: https://github.com/madebr/dethrace/actions/runs/1731316005

@dethrace-labs dethrace-labs merged commit ba4b763 into dethrace-labs:master Jan 25, 2022
@madebr madebr deleted the datafile branch January 25, 2022 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants