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 gamma_ramp_arrays and calculate_gamma_ramp #1451

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

antonilol
Copy link
Contributor

  • gamma_ramp_arrays is similar to gamma_ramp, but returns the gamma ramps as an array of 3 arrays, this way no heap allocations are made and users get a compile time guarantee that each ramp contains 256 values
  • calculate_gamma_ramp wraps SDL_CalculateGammaRamp, which calculates the gamma ramp for a gives gamma value, see https://wiki.libsdl.org/SDL2/SDL_CalculateGammaRamp

- gamma_ramp_arrays is similar to gamma_ramp, but returns the gamma
  ramps as an array of 3 arrays, this way no heap allocations are made
  and users get a compile time guarantee that each ramp contains 256
  values
- calculate_gamma_ramp wraps SDL_CalculateGammaRamp, which calculates
  the gamma ramp for a gives gamma value, see
  https://wiki.libsdl.org/SDL2/SDL_CalculateGammaRamp
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.

1 participant