A 2D tile-based sandbox game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

drawutil.h 442B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <SDL.h>
  3. #include <optional>
  4. #include <initializer_list>
  5. #include <utility>
  6. #include <cygnet/util.h>
  7. namespace Swan {
  8. namespace Draw {
  9. Cygnet::Color linearGradient(
  10. float val, std::initializer_list<std::pair<float, Cygnet::Color>> colors);
  11. /*
  12. void parallaxBackground(
  13. Win &win, SDL_Texture *tex,
  14. std::optional<SDL_Rect> srcrect, std::optional<SDL_Rect> destrect,
  15. float x, float y, float factor);
  16. TODO */
  17. }
  18. }