Skip to content

Commit

Permalink
Adding SkSamplingOptions::isAniso and SamplingOptions(SkFilterMode) m…
Browse files Browse the repository at this point in the history
…issing from kyamagu#181
  • Loading branch information
HinTak committed Apr 21, 2024
1 parent 96dc765 commit 903ef65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/skia/SamplingOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ void initSamplingOptions(py::module& m) {
py::arg("SamplingOptions"))
.def(py::init<SkCubicResampler>(),
py::arg("CubicResampler"))
.def(py::init<SkFilterMode>(),
py::arg("FilterMode"))
.def(py::init<SkFilterMode, SkMipmapMode>(),
py::arg("FilterMode"), py::arg("MipmapMode"))
.def("isAniso", &SkSamplingOptions::isAniso)
.def_readonly("maxAniso", &SkSamplingOptions::maxAniso)
.def_readonly("useCubic", &SkSamplingOptions::useCubic)
.def_readonly("cubic", &SkSamplingOptions::cubic)
Expand Down

0 comments on commit 903ef65

Please sign in to comment.