mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 08:33:53 +00:00
Added resource preview pane. Minor tweaks.
Added the work-in-progress resource pane (to hold the file details, number of mips, etc.). The Windows project shares the transcoder with the (future) Mac previewer.
This commit is contained in:
@@ -15264,6 +15264,8 @@ namespace basist
|
||||
*/
|
||||
void _basisu_translib_dummy() {
|
||||
// These first ones are not used at all
|
||||
BASISU_NOTE_UNUSED(&basisu::byteswap16);
|
||||
BASISU_NOTE_UNUSED(&basisu::byteswap32);
|
||||
BASISU_NOTE_UNUSED(basisu::BASISU_PATH_SEPERATOR_CHAR);
|
||||
BASISU_NOTE_UNUSED(basisu::cHuffmanTotalSortedCodelengthCodes);
|
||||
BASISU_NOTE_UNUSED(basist::COLOR5_PAL0_DELTA_LO);
|
||||
1
contrib/previewers/win/.gitignore
vendored
1
contrib/previewers/win/.gitignore
vendored
@@ -10,3 +10,4 @@ bin/x64/
|
||||
*.sdf
|
||||
*.suo
|
||||
*.opensdf
|
||||
*.aps
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Windows Previewers for Basis Universal
|
||||
|
||||
Build using Visual Studio from 2012 onwards. Enable from an Adminstrator console using `regsvr32 previewers.dll` (and remove using `regsvr32 /u previewers.dll`).
|
||||
Build using Visual Studio from 2012 onwards (building with 2017 onwards needs the [optional MFC and ATL support adding](https://developercommunity.visualstudio.com/comments/11241/view.html) used for the details pane). Enable from an Administrator console using `regsvr32 previewers.dll` (and remove using `regsvr32 /u previewers.dll`).
|
||||
|
||||

|
||||
|
||||
|
||||
BIN
contrib/previewers/win/preview.rc
Normal file
BIN
contrib/previewers/win/preview.rc
Normal file
Binary file not shown.
@@ -95,6 +95,7 @@
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -111,6 +112,7 @@
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -127,6 +129,7 @@
|
||||
<PreprocessorDefinitions>WIN32;_WIN32_WINNT=0x0601;_WINDOWS;_USRDLL;_ITERATOR_DEBUG_LEVEL=0;NDEBUG;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -145,6 +148,7 @@
|
||||
<PreprocessorDefinitions>WIN32;_WIN32_WINNT=0x0601;_WINDOWS;_USRDLL;_ITERATOR_DEBUG_LEVEL=0;NDEBUG;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<AdditionalIncludeDirectories>..\lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -156,12 +160,12 @@
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="basisthumbprovider.h" />
|
||||
<ClInclude Include="basisu_transcoder.h" />
|
||||
<ClInclude Include="..\lib\basisu_transcoder.h" />
|
||||
<ClInclude Include="helpers.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="basisthumbprovider.cpp" />
|
||||
<ClCompile Include="basisu_transcoder.cpp" />
|
||||
<ClCompile Include="..\lib\basisu_transcoder.cpp" />
|
||||
<ClCompile Include="helpers.cpp" />
|
||||
<ClCompile Include="previewers.cpp">
|
||||
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
|
||||
@@ -178,6 +182,9 @@
|
||||
</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="preview.rc" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="res">
|
||||
<UniqueIdentifier>{f4f72237-4818-48a4-9192-33d12efece22}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="basisthumbprovider.h">
|
||||
@@ -17,7 +20,7 @@
|
||||
<ClInclude Include="helpers.h">
|
||||
<Filter>inc</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="basisu_transcoder.h">
|
||||
<ClInclude Include="..\lib\basisu_transcoder.h">
|
||||
<Filter>inc</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
@@ -31,8 +34,13 @@
|
||||
<ClCompile Include="helpers.cpp">
|
||||
<Filter>src</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="basisu_transcoder.cpp">
|
||||
<ClCompile Include="..\lib\basisu_transcoder.cpp">
|
||||
<Filter>src</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="preview.rc">
|
||||
<Filter>res</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
BIN
contrib/previewers/win/resource.h
Normal file
BIN
contrib/previewers/win/resource.h
Normal file
Binary file not shown.
Reference in New Issue
Block a user