sourcepp 2025.2.16.dev1__tar.gz → 2025.2.20.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/CMakeLists.txt +2 -2
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/PKG-INFO +3 -2
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/README.md +2 -1
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/pyproject.toml +1 -1
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/sourcepp/__init__.py +1 -1
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/vtfpp.h +28 -23
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/LICENSE +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/THIRDPARTY_LEGAL_NOTICES.txt +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/cfg/CMakeLists.txt +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/cfg/pyproject.toml +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/bsppp.h +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/gamepp.h +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/sourcepp.cpp +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/sourcepp.h +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/steampp.h +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/toolpp.h +0 -0
- {sourcepp-2025.2.16.dev1 → sourcepp-2025.2.20.dev1}/src/vcryptpp.h +0 -0
|
@@ -30,7 +30,7 @@ endif()
|
|
|
30
30
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
31
31
|
|
|
32
32
|
set(SOURCEPP_BUILD_PYTHON_WRAPPERS ON CACHE INTERNAL "" FORCE)
|
|
33
|
-
set(SOURCEPP_VERSION "2025.2.
|
|
33
|
+
set(SOURCEPP_VERSION "2025.2.20dev1")
|
|
34
34
|
|
|
35
35
|
# As weird as this looks, this is necessary for sdist wheel
|
|
36
36
|
set(SOURCEPP_PYTHON_IS_SUBDIR OFF)
|
|
@@ -41,6 +41,6 @@ else()
|
|
|
41
41
|
FetchContent_Declare(
|
|
42
42
|
sourcepp
|
|
43
43
|
GIT_REPOSITORY "https://github.com/craftablescience/sourcepp.git"
|
|
44
|
-
GIT_TAG "
|
|
44
|
+
GIT_TAG "f8771653daee393500d1f9735fb2054d577bcfee")
|
|
45
45
|
FetchContent_MakeAvailable(sourcepp)
|
|
46
46
|
endif()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sourcepp
|
|
3
|
-
Version: 2025.2.
|
|
3
|
+
Version: 2025.2.20.dev1
|
|
4
4
|
Summary: Several modern C++20 libraries for sanely parsing Valve formats.
|
|
5
5
|
Home-page: https://github.com/craftablescience/sourcepp
|
|
6
6
|
Author-Email: craftablescience <lauralewisdev@gmail.com>
|
|
@@ -365,7 +365,8 @@ Several modern C++20 libraries for sanely parsing Valve formats, rolled into one
|
|
|
365
365
|
<tr><!-- empty row to disable github striped bg color --></tr>
|
|
366
366
|
<tr>
|
|
367
367
|
<td>
|
|
368
|
-
<a href="https://developer.valvesoftware.com/wiki/VTFX_file_format">VTFX</a>
|
|
368
|
+
<a href="https://developer.valvesoftware.com/wiki/VTFX_file_format">VTFX</a> X360, PS3 (Orange Box)
|
|
369
|
+
<br> • PS3 (Portal 2, CS:GO) modifications
|
|
369
370
|
</td>
|
|
370
371
|
<td align="center">✅</td>
|
|
371
372
|
<td align="center">✅</td>
|
|
@@ -342,7 +342,8 @@ Several modern C++20 libraries for sanely parsing Valve formats, rolled into one
|
|
|
342
342
|
<tr><!-- empty row to disable github striped bg color --></tr>
|
|
343
343
|
<tr>
|
|
344
344
|
<td>
|
|
345
|
-
<a href="https://developer.valvesoftware.com/wiki/VTFX_file_format">VTFX</a>
|
|
345
|
+
<a href="https://developer.valvesoftware.com/wiki/VTFX_file_format">VTFX</a> X360, PS3 (Orange Box)
|
|
346
|
+
<br> • PS3 (Portal 2, CS:GO) modifications
|
|
346
347
|
</td>
|
|
347
348
|
<td align="center">✅</td>
|
|
348
349
|
<td align="center">✅</td>
|
|
@@ -5,7 +5,7 @@ build-backend = "scikit_build_core.build"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "sourcepp"
|
|
8
|
-
version = "2025.2.
|
|
8
|
+
version = "2025.2.20dev1"
|
|
9
9
|
authors = [{ name = "craftablescience", email = "lauralewisdev@gmail.com" }]
|
|
10
10
|
maintainers = [{ name = "craftablescience", email = "lauralewisdev@gmail.com" }]
|
|
11
11
|
description = "Several modern C++20 libraries for sanely parsing Valve formats."
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from ._sourcepp_impl import __doc__, bsppp, gamepp, sourcepp, steampp, toolpp, vcryptpp, vtfpp
|
|
2
2
|
|
|
3
3
|
__author__ = "craftablescience"
|
|
4
|
-
__version__ = "2025.2.
|
|
4
|
+
__version__ = "2025.2.20dev1"
|
|
5
5
|
__all__ = ['__author__', '__doc__', '__version__', 'bsppp', 'gamepp', 'sourcepp', 'steampp', 'toolpp', 'vcryptpp', 'vtfpp']
|
|
@@ -384,7 +384,9 @@ void register_python(py::module_& m) {
|
|
|
384
384
|
.value("SKIP_INITIAL_DOWNLOAD", VTF::FLAG_SKIP_INITIAL_DOWNLOAD)
|
|
385
385
|
.value("CLAMP_U", VTF::FLAG_CLAMP_U)
|
|
386
386
|
.value("VERTEX_TEXTURE", VTF::FLAG_VERTEX_TEXTURE)
|
|
387
|
+
.value("XBOX_PRESWIZZLED", VTF::FLAG_XBOX_PRESWIZZLED)
|
|
387
388
|
.value("SSBUMP", VTF::FLAG_SSBUMP)
|
|
389
|
+
.value("XBOX_CACHEABLE", VTF::FLAG_XBOX_CACHEABLE)
|
|
388
390
|
.value("LOAD_MOST_MIPS", VTF::FLAG_LOAD_MOST_MIPS)
|
|
389
391
|
.value("BORDER", VTF::FLAG_BORDER)
|
|
390
392
|
.value("YCOCG", VTF::FLAG_YCOCG)
|
|
@@ -392,36 +394,38 @@ void register_python(py::module_& m) {
|
|
|
392
394
|
.export_values();
|
|
393
395
|
|
|
394
396
|
py::enum_<VTF::Platform>(cVTF, "Platform")
|
|
395
|
-
.value("UNKNOWN",
|
|
396
|
-
.value("PC",
|
|
397
|
-
.value("
|
|
398
|
-
.value("
|
|
397
|
+
.value("UNKNOWN", VTF::PLATFORM_UNKNOWN)
|
|
398
|
+
.value("PC", VTF::PLATFORM_PC)
|
|
399
|
+
.value("PS3_PORTAL2", VTF::PLATFORM_PS3_PORTAL2)
|
|
400
|
+
.value("PS3_ORANGEBOX", VTF::PLATFORM_PS3_ORANGEBOX)
|
|
401
|
+
.value("X360", VTF::PLATFORM_X360)
|
|
399
402
|
.export_values();
|
|
400
403
|
|
|
401
404
|
py::class_<VTF::CreationOptions>(cVTF, "CreationOptions")
|
|
402
405
|
.def(py::init<>())
|
|
403
|
-
.def_rw("major_version",
|
|
404
|
-
.def_rw("minor_version",
|
|
405
|
-
.def_rw("output_format",
|
|
406
|
-
.def_rw("width_resize_method",
|
|
407
|
-
.def_rw("height_resize_method",
|
|
408
|
-
.def_rw("filter",
|
|
409
|
-
.def_rw("flags",
|
|
410
|
-
.def_rw("initial_frame_count",
|
|
411
|
-
.def_rw("start_frame",
|
|
412
|
-
.def_rw("is_cubemap",
|
|
413
|
-
.def_rw("has_spheremap",
|
|
414
|
-
.def_rw("initial_slice_count",
|
|
415
|
-
.def_rw("
|
|
416
|
-
.def_rw("
|
|
417
|
-
.def_rw("
|
|
418
|
-
.def_rw("
|
|
419
|
-
.def_rw("
|
|
420
|
-
.def_rw("
|
|
406
|
+
.def_rw("major_version", &VTF::CreationOptions::majorVersion)
|
|
407
|
+
.def_rw("minor_version", &VTF::CreationOptions::minorVersion)
|
|
408
|
+
.def_rw("output_format", &VTF::CreationOptions::outputFormat)
|
|
409
|
+
.def_rw("width_resize_method", &VTF::CreationOptions::widthResizeMethod)
|
|
410
|
+
.def_rw("height_resize_method", &VTF::CreationOptions::heightResizeMethod)
|
|
411
|
+
.def_rw("filter", &VTF::CreationOptions::filter)
|
|
412
|
+
.def_rw("flags", &VTF::CreationOptions::flags)
|
|
413
|
+
.def_rw("initial_frame_count", &VTF::CreationOptions::initialFrameCount)
|
|
414
|
+
.def_rw("start_frame", &VTF::CreationOptions::startFrame)
|
|
415
|
+
.def_rw("is_cubemap", &VTF::CreationOptions::isCubeMap)
|
|
416
|
+
.def_rw("has_spheremap", &VTF::CreationOptions::hasSphereMap)
|
|
417
|
+
.def_rw("initial_slice_count", &VTF::CreationOptions::initialSliceCount)
|
|
418
|
+
.def_rw("compute_transparency_flags", &VTF::CreationOptions::computeTransparencyFlags)
|
|
419
|
+
.def_rw("compute_mips", &VTF::CreationOptions::computeMips)
|
|
420
|
+
.def_rw("compute_thumbnail", &VTF::CreationOptions::computeThumbnail)
|
|
421
|
+
.def_rw("compute_reflectivity", &VTF::CreationOptions::computeReflectivity)
|
|
422
|
+
.def_rw("compression_level", &VTF::CreationOptions::compressionLevel)
|
|
423
|
+
.def_rw("compression_method", &VTF::CreationOptions::compressionMethod)
|
|
424
|
+
.def_rw("bumpmap_scale", &VTF::CreationOptions::bumpMapScale);
|
|
421
425
|
|
|
422
426
|
cVTF
|
|
423
427
|
.def_ro_static("FLAG_MASK_AFTER_V7_3", &VTF::FLAG_MASK_AFTER_V7_3)
|
|
424
|
-
.def_ro_static("
|
|
428
|
+
.def_ro_static("FLAG_MASK_INTERNAL", &VTF::FLAG_MASK_INTERNAL)
|
|
425
429
|
.def_ro_static("FLAG_MASK_SRGB", &VTF::FLAG_MASK_SRGB)
|
|
426
430
|
.def_ro_static("FORMAT_UNCHANGED", &VTF::FORMAT_UNCHANGED)
|
|
427
431
|
.def_ro_static("FORMAT_DEFAULT", &VTF::FORMAT_DEFAULT)
|
|
@@ -454,6 +458,7 @@ void register_python(py::module_& m) {
|
|
|
454
458
|
.def_prop_rw("flags", &VTF::getFlags, &VTF::setFlags)
|
|
455
459
|
.def("add_flags", &VTF::addFlags, py::arg("flags"))
|
|
456
460
|
.def("remove_flags", &VTF::removeFlags, py::arg("flags"))
|
|
461
|
+
.def("compute_transparency_flags", &VTF::computeTransparencyFlags)
|
|
457
462
|
.def_static("get_default_compressed_format", &VTF::getDefaultCompressedFormat, py::arg("input_format"), py::arg("major_version"), py::arg("minor_version"))
|
|
458
463
|
.def_prop_ro("format", &VTF::getFormat)
|
|
459
464
|
.def("set_format", &VTF::setFormat, py::arg("new_format"), py::arg("filter") = ImageConversion::ResizeFilter::DEFAULT)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|