VTFLib 是一款 LGPL 开源 编程库,提供了用于读取和写入 Valve VTF 和 VMT 格式图像文件的 C 和 C++ API。
VTFLib 是一款 LGPL 开源 编程库,提供了用于读取和写入 Valve VTF 和 VMT 格式图像文件的 C 和 C++ API。
Warning
VTFLib project is no-longer being actively developed by the original authors and as-such:
- The current code is unsupported and used at your own risk.
- The original code was developed from 2005 to 2011 - it likely doesn't run out of the box on modern version of Windows.
- There may be some basic updates or maintenance but this is strictly limited to tinkering.
- Pull Requests are welcome so long as they bring some value, i.e. fix issues.
- Feel free to open issues, however its unlikely much will be fixed.
VTFLib is a LGPL open source programming library that provides a C and C++ API that, with a few simple functions, can open and save .vtf and .vmt files, providing access to all known features. The library functions independent of Steam, allowing third party applications to use the library without Steam present or running on the target system.
VTFLib includes two GPL example applications, VTFCmd and VTFEdit. VTFCmd is a C command line frontend for VTFLib that can create .vtf and .vmt files from various source formats. It is similar in functionality to Valve's vtex Source SDK utility, but offers a lot more control. VTFEdit is a C++ .NET graphical frontend for VTFLib with viewing and creation capabilities. Both VTFCmd and VTFEdit support several source image formats, including, but not limited to .bmp, .dds, .gif, .jpg, .png and .tga.
Between 2005 and 2011 myself and Ryan Gregg developed a number of tools and libraries to help modders and developers create content for Valve's Source game engine - VTFLib was one of them. However, as of time of writing, that was 12 years ago and we've moved onto other things. I'm shocked (and actually pleased) that people are still using VTFLib and VTFEdit despite how old it is.
Though we're not actively developing it, your welcome to make forks and develop your own version (maybe fix a few things) as per the LGPL license. I may tinker with the code from time to time though this is for my own curiosity and amusement and not any for of official work.
Thanks to everyone who supported us over the years!
Neil 'Jed' Jedrzejewski & Ryan Gregg
The library contains five folders:
The original project files were written for Visual Studio 2008 and have been retained for reference. A partial migration to Visual Studio 2022 has been started though at present this is for VTFLib onyl while working out some dependency issues.
nvDXTLib is required by VTFLib for DXT compression although it is current not compatible with versions of VSCode later than 2008.
…This software is Copyright *Neil 'Jed' Jedrzejewski & Ryan Gregg and is released under the terms of LGPL. Please see the LICENSE file for details.
暂无开放 Issues,或尚未同步最近议题。