1234567891011121314151617181920212223 |
- #pragma once
-
- #include <SDL.h>
- #include <optional>
- #include <initializer_list>
- #include <utility>
- #include <cygnet/util.h>
-
- namespace Swan {
- namespace Draw {
-
- Cygnet::Color linearGradient(
- float val, std::initializer_list<std::pair<float, Cygnet::Color>> colors);
-
- /*
- void parallaxBackground(
- Win &win, SDL_Texture *tex,
- std::optional<SDL_Rect> srcrect, std::optional<SDL_Rect> destrect,
- float x, float y, float factor);
- TODO */
-
- }
- }
|