mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix weed warnings.
add compost library.
This commit is contained in:
parent
ac80a04970
commit
d01ee064e2
31 changed files with 1566 additions and 120 deletions
|
@ -61,7 +61,7 @@ namespace sprout {
|
|||
pixels_type pixels_;
|
||||
public:
|
||||
template<typename... Elems>
|
||||
SPROUT_CONSTEXPR image_type(unsigned long image_format, unsigned long pixel_format, Elems const&... elems)
|
||||
SPROUT_CONSTEXPR image_type(info_type const& info, Elems const&... elems)
|
||||
: pixels_{{
|
||||
color_type(
|
||||
static_cast<color_component_type>((elems >> 16) & 0xFF) / 0xFF,
|
||||
|
@ -89,6 +89,12 @@ namespace sprout {
|
|||
return pixels_;
|
||||
}
|
||||
};
|
||||
template<std::size_t Width, std::size_t Height, typename Color>
|
||||
SPROUT_CONSTEXPR_OR_CONST typename sprout::darkroom::textures::image_type<Width, Height, Color>::size_type
|
||||
sprout::darkroom::textures::image_type<Width, Height, Color>::static_width;
|
||||
template<std::size_t Width, std::size_t Height, typename Color>
|
||||
SPROUT_CONSTEXPR_OR_CONST typename sprout::darkroom::textures::image_type<Width, Height, Color>::size_type
|
||||
sprout::darkroom::textures::image_type<Width, Height, Color>::static_height;
|
||||
} // namespace textures
|
||||
} // namespace darkroom
|
||||
} // namespace sprout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue