mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Fix BC1 binding order
This commit is contained in:
parent
71119b9279
commit
285e891bef
@ -47,13 +47,6 @@ void InitBC1(py::module_ &s3tc) {
|
|||||||
// BC1Encoder
|
// BC1Encoder
|
||||||
py::class_<BC1Encoder> bc1_encoder(bc1, "BC1Encoder", block_encoder, "Encodes RGB textures to BC1");
|
py::class_<BC1Encoder> bc1_encoder(bc1, "BC1Encoder", block_encoder, "Encodes RGB textures to BC1");
|
||||||
|
|
||||||
bc1_encoder.def(py::init<unsigned, BC1Encoder::ColorMode>(), "level"_a = 5, "color_mode"_a = BC1Encoder::ColorMode::FourColor);
|
|
||||||
bc1_encoder.def(py::init<unsigned, BC1Encoder::ColorMode, InterpolatorPtr>(), "level"_a, "color_mode"_a, "interpolator"_a);
|
|
||||||
|
|
||||||
bc1_encoder.def("set_level", &BC1Encoder::SetLevel, "Use a preset quality level, between 0 and 18. For better control, see the advanced API below");
|
|
||||||
|
|
||||||
// Advanced API
|
|
||||||
|
|
||||||
py::enum_<BC1Encoder::EndpointMode>(bc1_encoder, "EndpointMode")
|
py::enum_<BC1Encoder::EndpointMode>(bc1_encoder, "EndpointMode")
|
||||||
.value("LeastSquares", BC1Encoder::EndpointMode::LeastSquares)
|
.value("LeastSquares", BC1Encoder::EndpointMode::LeastSquares)
|
||||||
.value("BoundingBox", BC1Encoder::EndpointMode::BoundingBox)
|
.value("BoundingBox", BC1Encoder::EndpointMode::BoundingBox)
|
||||||
@ -71,6 +64,13 @@ void InitBC1(py::module_ &s3tc) {
|
|||||||
.value("ThreeColor", BC1Encoder::ColorMode::ThreeColor)
|
.value("ThreeColor", BC1Encoder::ColorMode::ThreeColor)
|
||||||
.value("ThreeColorBlack", BC1Encoder::ColorMode::ThreeColorBlack);
|
.value("ThreeColorBlack", BC1Encoder::ColorMode::ThreeColorBlack);
|
||||||
|
|
||||||
|
bc1_encoder.def(py::init<unsigned, BC1Encoder::ColorMode>(), "level"_a = 5, "color_mode"_a = BC1Encoder::ColorMode::FourColor);
|
||||||
|
bc1_encoder.def(py::init<unsigned, BC1Encoder::ColorMode, InterpolatorPtr>(), "level"_a, "color_mode"_a, "interpolator"_a);
|
||||||
|
|
||||||
|
bc1_encoder.def("set_level", &BC1Encoder::SetLevel, "Use a preset quality level, between 0 and 18. For better control, see the advanced API below");
|
||||||
|
|
||||||
|
// Advanced API
|
||||||
|
|
||||||
bc1_encoder.def_readonly_static("max_power_iterations", &BC1Encoder::max_power_iterations, "Maximum value of :py:attr:`BC1Encoder.power_iterations`.");
|
bc1_encoder.def_readonly_static("max_power_iterations", &BC1Encoder::max_power_iterations, "Maximum value of :py:attr:`BC1Encoder.power_iterations`.");
|
||||||
bc1_encoder.def_readonly_static("min_power_iterations", &BC1Encoder::min_power_iterations, "Minimum value of :py:attr:`BC1Encoder.power_iterations`.");
|
bc1_encoder.def_readonly_static("min_power_iterations", &BC1Encoder::min_power_iterations, "Minimum value of :py:attr:`BC1Encoder.power_iterations`.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user