mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- removed the remains of the polymer renderer.
This cannot be reused in its current form, maybe it can help later.
This commit is contained in:
parent
1b20e5d4da
commit
be29d3a2df
4 changed files with 118 additions and 1029 deletions
|
@ -257,7 +257,6 @@
|
|||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\polymer.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\polymost.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\pragmas.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\rawinput.cpp">
|
||||
|
|
|
@ -1,419 +1,127 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files\MSVC">
|
||||
<UniqueIdentifier>{4afb83fc-a68c-4ed0-9ff2-7def56e98cb6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="GL Interface">
|
||||
<UniqueIdentifier>{0f5687fd-82dc-4f52-89ef-0264c994211c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<ClCompile Include="..\..\source\build\src\2d.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\a-c.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\animvpx.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\baselayer.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\cache1d.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\clip.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\colmatch.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\common.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\compat.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\crc32.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\defs.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\dynamicgtk.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\engine.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\fix16.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\fix16_str.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\glbuild.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\glsurface.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\gtkbits.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\hash.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\hightile.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\klzw.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\kplib.cpp" />
|
||||
<ClCompile Include="..\..\source\thirdparty\src\lz4.c" />
|
||||
<ClCompile Include="..\..\source\build\src\md4.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\mdsprite.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\mhk.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\mingw_main.cpp" />
|
||||
<ClCompile Include="..\..\source\thirdparty\src\miniz.c" />
|
||||
<ClCompile Include="..\..\source\thirdparty\src\miniz_tdef.c" />
|
||||
<ClCompile Include="..\..\source\thirdparty\src\miniz_tinfl.c" />
|
||||
<ClCompile Include="..\..\source\build\src\mmulti_null.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\mutex.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\osd.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\palette.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\pngwrite.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\polymost.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\pragmas.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\rawinput.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\rev.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\screenshot.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\scriptfile.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\sdlayer.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\sdlayer12.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\sdlkeytrans.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\smalltextfont.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\softsurface.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\texcache.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\textfont.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\tiles.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\timer.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\voxmodel.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\wiibits.cpp" />
|
||||
<ClCompile Include="..\..\source\build\src\winbits.cpp" />
|
||||
<ClCompile Include="..\..\source\thirdparty\src\xxhash.c" />
|
||||
<ClCompile Include="..\..\source\glbackend\glbackend.cpp" />
|
||||
<ClCompile Include="..\..\source\glbackend\gl_hwtexture.cpp" />
|
||||
<ClCompile Include="..\..\source\glbackend\gl_samplers.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\source\build\src\2d.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\a-c.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\animvpx.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\baselayer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\cache1d.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\clip.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\colmatch.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\compat.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\crc32.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\defs.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\dynamicgtk.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\engine.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\fix16.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\fix16_str.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\glbuild.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\glsurface.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\gtkbits.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\hash.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\hightile.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\klzw.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\kplib.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\lunatic.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\lz4.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\md4.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\mdsprite.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\mhk.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\mingw_main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\miniz.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\mmulti_null.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\mutex.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\osd.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\palette.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\pngwrite.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\polymer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\polymost.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\pragmas.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\rawinput.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\rev.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\screenshot.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\scriptfile.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\sdlayer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\sdlayer12.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\sdlkeytrans.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\smalltextfont.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\softsurface.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\texcache.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\textfont.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\tiles.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\voxmodel.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\wiibits.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\winbits.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\winlayer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\xxhash.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\miniz_tdef.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\miniz_tinfl.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\common.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\vfs.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\glbackend\glbackend.cpp">
|
||||
<Filter>GL Interface</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\build\src\timer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
<ClCompile Include="..\..\source\glbackend\gl_samplers.cpp">
|
||||
<Filter>GL Interface</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\glbackend\gl_hwtexture.cpp">
|
||||
<Filter>GL Interface</Filter>
|
||||
</ClCompile>
|
||||
<ClInclude Include="..\..\source\build\include\a.h" />
|
||||
<ClInclude Include="..\..\source\build\include\animvpx.h" />
|
||||
<ClInclude Include="..\..\source\build\include\baselayer.h" />
|
||||
<ClInclude Include="..\..\source\build\include\build.h" />
|
||||
<ClInclude Include="..\..\source\build\include\buildtypes.h" />
|
||||
<ClInclude Include="..\..\source\build\include\cache1d.h" />
|
||||
<ClInclude Include="..\..\source\build\include\clip.h" />
|
||||
<ClInclude Include="..\..\source\build\include\collections.h" />
|
||||
<ClInclude Include="..\..\source\build\include\colmatch.h" />
|
||||
<ClInclude Include="..\..\source\build\include\common.h" />
|
||||
<ClInclude Include="..\..\source\build\include\compat.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\crc32.h" />
|
||||
<ClInclude Include="..\..\source\build\include\debugbreak.h" />
|
||||
<ClInclude Include="..\..\source\build\include\dxdidf.h" />
|
||||
<ClInclude Include="..\..\source\build\include\dynamicgtk.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\fix16.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\fix16.hpp" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\fix16_int64.h" />
|
||||
<ClInclude Include="..\..\source\build\include\glbuild.h" />
|
||||
<ClInclude Include="..\..\source\build\include\glsurface.h" />
|
||||
<ClInclude Include="..\..\source\build\include\gtkbits.h" />
|
||||
<ClInclude Include="..\..\source\build\include\hash.h" />
|
||||
<ClInclude Include="..\..\source\build\include\hightile.h" />
|
||||
<ClInclude Include="..\..\source\build\include\klzw.h" />
|
||||
<ClInclude Include="..\..\source\build\include\kplib.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\libdivide.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\lz4.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\md4.h" />
|
||||
<ClInclude Include="..\..\source\build\include\mdsprite.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\miniz.h" />
|
||||
<ClInclude Include="..\..\source\build\include\mmulti.h" />
|
||||
<ClInclude Include="..\..\source\build\include\osd.h" />
|
||||
<ClInclude Include="..\..\source\build\include\osxbits.h" />
|
||||
<ClInclude Include="..\..\source\build\include\palette.h" />
|
||||
<ClInclude Include="..\..\source\build\include\pngwrite.h" />
|
||||
<ClInclude Include="..\..\source\build\include\polymer.h" />
|
||||
<ClInclude Include="..\..\source\build\include\polymost.h" />
|
||||
<ClInclude Include="..\..\source\build\include\pragmas.h" />
|
||||
<ClInclude Include="..\..\source\build\include\print.h" />
|
||||
<ClInclude Include="..\..\source\build\include\prlights.h" />
|
||||
<ClInclude Include="..\..\source\build\include\rawinput.h" />
|
||||
<ClInclude Include="..\..\source\build\include\renderlayer.h" />
|
||||
<ClInclude Include="..\..\source\build\include\scancodes.h" />
|
||||
<ClInclude Include="..\..\source\build\include\scriptfile.h" />
|
||||
<ClInclude Include="..\..\source\build\include\sdlayer.h" />
|
||||
<ClInclude Include="..\..\source\build\include\sdl_inc.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\sjson.h" />
|
||||
<ClInclude Include="..\..\source\build\include\softsurface.h" />
|
||||
<ClInclude Include="..\..\source\build\include\texcache.h" />
|
||||
<ClInclude Include="..\..\source\build\include\timer.h" />
|
||||
<ClInclude Include="..\..\source\build\include\tracker.hpp" />
|
||||
<ClInclude Include="..\..\source\build\include\vfs.h" />
|
||||
<ClInclude Include="..\..\source\build\include\winbits.h" />
|
||||
<ClInclude Include="..\..\source\build\include\winlayer.h" />
|
||||
<ClInclude Include="..\..\source\thirdparty\include\xxhash.h" />
|
||||
<ClInclude Include="..\..\source\build\src\engine_priv.h" />
|
||||
<ClInclude Include="..\..\source\glbackend\glbackend.h" />
|
||||
<ClInclude Include="..\..\source\glbackend\gl_hwtexture.h" />
|
||||
<ClInclude Include="..\..\source\glbackend\gl_samplers.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\build\include\msvc\inttypes.h">
|
||||
<Filter>Header Files\MSVC</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\msvc\stdint.h">
|
||||
<Filter>Header Files\MSVC</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\a.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\animvpx.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\baselayer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\build.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\buildtypes.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\cache1d.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\clip.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\colmatch.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\common.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\compat.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\crc32.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\dxdidf.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\dynamicgtk.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\editor.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\src\engine_priv.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\fix16.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\fix16.hpp">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\fix16_int64.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\glbuild.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\glsurface.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\gtkbits.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\hash.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\hightile.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\jwzgles.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\jwzglesI.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\klzw.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\kplib.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\thirdparty\include\libdivide.h">
|
||||
<Filter>Third Party</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\thirdparty\include\lz4.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\thirdparty\include\md4.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\mdsprite.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\thirdparty\include\miniz.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\mmulti.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\mutex.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\osd.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\osxbits.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\palette.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\pngwrite.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\polymer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\polymost.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\pragmas.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\pragmas_arm.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\pragmas_ppc.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\pragmas_x86_gcc.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\pragmas_x86_msvc.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\prlights.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\rawinput.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\renderlayer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\scancodes.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\scriptfile.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\sdl_inc.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\sdlayer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\thirdparty\include\sjson.h">
|
||||
<Filter>Third Party</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\softsurface.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\texcache.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\tracker.hpp">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\winbits.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\winlayer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\xxhash.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\debugbreak.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\collections.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\print.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\vfs.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\build\include\timer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
|
||||
<Filter>GL Interface</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\glbackend\gl_samplers.h">
|
||||
<Filter>GL Interface</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\source\glbackend\gl_hwtexture.h">
|
||||
<Filter>GL Interface</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Frag.glsl">
|
||||
<Filter>Source Files</Filter>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Vert.glsl">
|
||||
<Filter>Source Files</Filter>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Frag.glsl" />
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Vert.glsl" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,618 +0,0 @@
|
|||
// Here lies the slow as shit renderer!
|
||||
|
||||
#ifndef polymer_h_
|
||||
# define polymer_h_
|
||||
|
||||
# include "baselayer.h"
|
||||
# include "build.h"
|
||||
# include "compat.h"
|
||||
# include "glad/glad.h"
|
||||
# include "glbuild.h"
|
||||
# include "hightile.h"
|
||||
# include "mdsprite.h"
|
||||
# include "osd.h"
|
||||
# include "polymost.h"
|
||||
# include "pragmas.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define PR_LINEAR_FOG
|
||||
|
||||
// CVARS
|
||||
extern int32_t pr_lighting;
|
||||
extern int32_t pr_normalmapping;
|
||||
extern int32_t pr_specularmapping;
|
||||
extern int32_t pr_shadows;
|
||||
extern int32_t pr_shadowcount;
|
||||
extern int32_t pr_shadowdetail;
|
||||
extern int32_t pr_shadowfiltering;
|
||||
extern int32_t pr_maxlightpasses;
|
||||
extern int32_t pr_maxlightpriority;
|
||||
extern int32_t pr_fov;
|
||||
extern double pr_customaspect;
|
||||
extern int32_t pr_billboardingmode;
|
||||
extern int32_t pr_verbosity;
|
||||
extern int32_t pr_wireframe;
|
||||
extern int32_t pr_vbos;
|
||||
extern int32_t pr_buckets;
|
||||
extern int32_t pr_gpusmoothing;
|
||||
extern int32_t pr_overrideparallax;
|
||||
extern float pr_parallaxscale;
|
||||
extern float pr_parallaxbias;
|
||||
extern int32_t pr_overridespecular;
|
||||
extern float pr_specularpower;
|
||||
extern float pr_specularfactor;
|
||||
extern int32_t pr_highpalookups;
|
||||
extern int32_t pr_artmapping;
|
||||
extern int32_t pr_overridehud;
|
||||
extern float pr_hudxadd;
|
||||
extern float pr_hudyadd;
|
||||
extern float pr_hudzadd;
|
||||
extern int32_t pr_hudangadd;
|
||||
extern int32_t pr_hudfov;
|
||||
extern float pr_overridemodelscale;
|
||||
extern int32_t pr_ati_fboworkaround;
|
||||
extern int32_t pr_ati_nodepthoffset;
|
||||
#ifdef __APPLE__
|
||||
extern int32_t pr_ati_textureformat_one;
|
||||
#endif
|
||||
extern int32_t pr_nullrender;
|
||||
|
||||
extern int32_t r_pr_maxlightpasses;
|
||||
|
||||
// MATERIAL
|
||||
typedef enum {
|
||||
PR_BIT_HEADER, // must be first
|
||||
PR_BIT_ANIM_INTERPOLATION,
|
||||
PR_BIT_LIGHTING_PASS,
|
||||
PR_BIT_NORMAL_MAP,
|
||||
PR_BIT_ART_MAP,
|
||||
PR_BIT_DIFFUSE_MAP,
|
||||
PR_BIT_DIFFUSE_DETAIL_MAP,
|
||||
PR_BIT_DIFFUSE_MODULATION,
|
||||
PR_BIT_DIFFUSE_MAP2,
|
||||
PR_BIT_HIGHPALOOKUP_MAP,
|
||||
PR_BIT_SPECULAR_MAP,
|
||||
PR_BIT_SPECULAR_MATERIAL,
|
||||
PR_BIT_MIRROR_MAP,
|
||||
PR_BIT_FOG,
|
||||
PR_BIT_GLOW_MAP,
|
||||
PR_BIT_PROJECTION_MAP,
|
||||
PR_BIT_SHADOW_MAP,
|
||||
PR_BIT_LIGHT_MAP,
|
||||
PR_BIT_SPOT_LIGHT,
|
||||
PR_BIT_POINT_LIGHT,
|
||||
PR_BIT_FOOTER, // must be just before last
|
||||
PR_BIT_COUNT // must be last
|
||||
} prbittype;
|
||||
|
||||
typedef struct s_prmaterial {
|
||||
// PR_BIT_ANIM_INTERPOLATION
|
||||
GLfloat frameprogress;
|
||||
GLfloat* nextframedata;
|
||||
// PR_BIT_NORMAL_MAP
|
||||
GLuint normalmap;
|
||||
GLfloat normalbias[2];
|
||||
GLfloat* tbn;
|
||||
// PR_BIT_ART_MAP
|
||||
GLuint artmap;
|
||||
GLuint basepalmap;
|
||||
GLuint lookupmap;
|
||||
GLint shadeoffset;
|
||||
GLfloat visibility;
|
||||
// PR_BIT_DIFFUSE_MAP
|
||||
GLuint diffusemap;
|
||||
GLfloat diffusescale[2];
|
||||
// PR_BIT_HIGHPALOOKUP_MAP
|
||||
GLuint highpalookupmap;
|
||||
// PR_BIT_DIFFUSE_DETAIL_MAP
|
||||
GLuint detailmap;
|
||||
GLfloat detailscale[2];
|
||||
// PR_BIT_DIFFUSE_MODULATION
|
||||
GLubyte diffusemodulation[4];
|
||||
// PR_BIT_SPECULAR_MAP
|
||||
GLuint specmap;
|
||||
// PR_BIT_SPECULAR_MATERIAL
|
||||
GLfloat specmaterial[2];
|
||||
// PR_BIT_MIRROR_MAP
|
||||
GLuint mirrormap;
|
||||
// PR_BIT_GLOW_MAP
|
||||
GLuint glowmap;
|
||||
// PR_BIT_SHADOW_MAP
|
||||
GLboolean mdspritespace;
|
||||
} _prmaterial;
|
||||
|
||||
typedef struct s_prrograminfo {
|
||||
GLuint handle;
|
||||
// PR_BIT_ANIM_INTERPOLATION
|
||||
GLint attrib_nextFrameData;
|
||||
GLint attrib_nextFrameNormal;
|
||||
GLint uniform_frameProgress;
|
||||
// PR_BIT_NORMAL_MAP
|
||||
GLint attrib_T;
|
||||
GLint attrib_B;
|
||||
GLint attrib_N;
|
||||
GLint uniform_eyePosition;
|
||||
GLint uniform_normalMap;
|
||||
GLint uniform_normalBias;
|
||||
// PR_BIT_ART_MAP
|
||||
GLuint uniform_artMap;
|
||||
GLuint uniform_basePalMap;
|
||||
GLuint uniform_lookupMap;
|
||||
GLuint uniform_shadeOffset;
|
||||
GLuint uniform_visibility;
|
||||
// PR_BIT_DIFFUSE_MAP
|
||||
GLint uniform_diffuseMap;
|
||||
GLint uniform_diffuseScale;
|
||||
// PR_BIT_HIGHPALOOKUP_MAP
|
||||
GLuint uniform_highPalookupMap;
|
||||
// PR_BIT_DIFFUSE_DETAIL_MAP
|
||||
GLint uniform_detailMap;
|
||||
GLint uniform_detailScale;
|
||||
// PR_BIT_SPECULAR_MAP
|
||||
GLint uniform_specMap;
|
||||
// PR_BIT_SPECULAR_MATERIAL
|
||||
GLint uniform_specMaterial;
|
||||
// PR_BIT_MIRROR_MAP
|
||||
GLint uniform_mirrorMap;
|
||||
#ifdef PR_LINEAR_FOG
|
||||
// PR_BIT_FOG
|
||||
GLint uniform_linearFog;
|
||||
#endif
|
||||
// PR_BIT_GLOW_MAP
|
||||
GLint uniform_glowMap;
|
||||
// PR_BIT_PROJECTION_MAP
|
||||
GLint uniform_shadowProjMatrix;
|
||||
// PR_BIT_SHADOW_MAP
|
||||
GLint uniform_shadowMap;
|
||||
// PR_BIT_LIGHT_MAP
|
||||
GLint uniform_lightMap;
|
||||
// PR_BIT_SPOT_LIGHT
|
||||
GLint uniform_spotDir;
|
||||
GLint uniform_spotRadius;
|
||||
} _prprograminfo;
|
||||
|
||||
#define PR_INFO_LOG_BUFFER_SIZE 8192
|
||||
|
||||
// Think about changing highPal[Scale|Bias] in the program bit if you change this
|
||||
#define PR_HIGHPALOOKUP_BIT_DEPTH 6
|
||||
#define PR_HIGHPALOOKUP_DIM (1 << PR_HIGHPALOOKUP_BIT_DEPTH)
|
||||
#define PR_HIGHPALOOKUP_DATA_SIZE (4 * PR_HIGHPALOOKUP_DIM * \
|
||||
PR_HIGHPALOOKUP_DIM * \
|
||||
PR_HIGHPALOOKUP_DIM)
|
||||
|
||||
typedef struct s_prprogrambit {
|
||||
int32_t bit;
|
||||
const char* vert_def;
|
||||
const char* vert_prog;
|
||||
const char* frag_def;
|
||||
const char* frag_prog;
|
||||
} _prprogrambit;
|
||||
|
||||
typedef struct s_prbucket {
|
||||
// index
|
||||
int16_t tilenum;
|
||||
char pal;
|
||||
|
||||
_prmaterial material;
|
||||
int32_t invalidmaterial;
|
||||
|
||||
// geom indices
|
||||
GLuint* indices;
|
||||
uint32_t count;
|
||||
uint32_t buffersize;
|
||||
GLuint* indiceoffset;
|
||||
|
||||
struct s_prbucket* next;
|
||||
} _prbucket;
|
||||
|
||||
#include "prlights.h"
|
||||
|
||||
// RENDER TARGETS
|
||||
typedef struct s_prrt {
|
||||
GLenum target;
|
||||
GLuint color;
|
||||
GLuint z;
|
||||
GLuint fbo;
|
||||
int32_t xdim, ydim;
|
||||
} _prrt;
|
||||
|
||||
// BUILD DATA
|
||||
|
||||
typedef struct s_prvert {
|
||||
GLfloat x;
|
||||
GLfloat y;
|
||||
GLfloat z;
|
||||
GLfloat u;
|
||||
GLfloat v;
|
||||
GLubyte r;
|
||||
GLubyte g;
|
||||
GLubyte b;
|
||||
GLubyte a;
|
||||
} _prvert;
|
||||
|
||||
typedef struct s_prplane {
|
||||
// geometry
|
||||
_prvert* buffer;
|
||||
int32_t vertcount;
|
||||
GLuint vbo;
|
||||
uint32_t mapvbo_vertoffset;
|
||||
_prbucket* bucket;
|
||||
// attributes
|
||||
GLfloat tbn[3][3];
|
||||
GLfloat plane[4];
|
||||
_prmaterial material;
|
||||
// elements
|
||||
GLushort* indices;
|
||||
int32_t indicescount;
|
||||
GLuint ivbo;
|
||||
// lights
|
||||
int16_t lights[PR_MAXLIGHTS];
|
||||
uint16_t lightcount;
|
||||
} _prplane;
|
||||
|
||||
typedef struct s_prsector {
|
||||
// polymer data
|
||||
GLdouble* verts;
|
||||
_prplane floor;
|
||||
_prplane ceil;
|
||||
int16_t curindice;
|
||||
int32_t indicescount;
|
||||
int32_t oldindicescount;
|
||||
// stuff
|
||||
float wallsproffset;
|
||||
float floorsproffset;
|
||||
// build sector data
|
||||
int32_t ceilingz, floorz;
|
||||
uint16_t ceilingstat, floorstat;
|
||||
int16_t ceilingpicnum, ceilingheinum;
|
||||
int8_t ceilingshade;
|
||||
uint8_t ceilingpal, ceilingxpanning, ceilingypanning;
|
||||
int16_t floorpicnum, floorheinum;
|
||||
int8_t floorshade;
|
||||
uint8_t floorpal, floorxpanning, floorypanning;
|
||||
uint8_t visibility;
|
||||
|
||||
int16_t floorpicnum_anim, ceilingpicnum_anim;
|
||||
|
||||
struct {
|
||||
int32_t empty : 1;
|
||||
int32_t uptodate : 1;
|
||||
int32_t invalidtex : 1;
|
||||
} flags;
|
||||
uint32_t invalidid;
|
||||
uint32_t trackedrev;
|
||||
} _prsector;
|
||||
|
||||
typedef struct s_prwall {
|
||||
_prplane wall;
|
||||
_prplane over;
|
||||
_prplane mask;
|
||||
|
||||
// stuff
|
||||
GLfloat* bigportal;
|
||||
//GLfloat* cap;
|
||||
GLuint stuffvbo;
|
||||
|
||||
// build wall data
|
||||
uint16_t cstat;
|
||||
int16_t picnum, overpicnum;
|
||||
int8_t shade;
|
||||
uint8_t pal, xrepeat, yrepeat, xpanning, ypanning;
|
||||
|
||||
// nextwall data
|
||||
int16_t nwallpicnum, nwallcstat;
|
||||
int8_t nwallxpanning, nwallypanning;
|
||||
int8_t nwallshade;
|
||||
|
||||
int16_t picnum_anim, overpicnum_anim;
|
||||
|
||||
char underover;
|
||||
uint32_t invalidid;
|
||||
struct {
|
||||
int32_t empty : 1;
|
||||
int32_t uptodate : 1;
|
||||
int32_t invalidtex : 1;
|
||||
} flags;
|
||||
uint32_t trackedrev;
|
||||
} _prwall;
|
||||
|
||||
typedef struct s_prsprite {
|
||||
_prplane plane;
|
||||
uint32_t hash;
|
||||
} _prsprite;
|
||||
|
||||
typedef struct s_prmirror {
|
||||
_prplane *plane;
|
||||
int16_t sectnum;
|
||||
int16_t wallnum;
|
||||
} _prmirror;
|
||||
|
||||
typedef struct s_prhighpalookup {
|
||||
char *data;
|
||||
GLuint map;
|
||||
} _prhighpalookup;
|
||||
|
||||
typedef void (*animatespritesptr)(int32_t, int32_t, int32_t, int32_t);
|
||||
|
||||
typedef struct s_pranimatespritesinfo {
|
||||
animatespritesptr animatesprites;
|
||||
int32_t x, y, a, smoothratio;
|
||||
} _pranimatespritesinfo;
|
||||
|
||||
// this one has to be provided by the application
|
||||
extern void G_Polymer_UnInit(void);
|
||||
|
||||
// EXTERNAL FUNCTIONS
|
||||
int32_t polymer_init(void);
|
||||
void polymer_uninit(void);
|
||||
void polymer_setaspect(int32_t);
|
||||
void polymer_glinit(void);
|
||||
void polymer_resetlights(void);
|
||||
void polymer_loadboard(void);
|
||||
void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, fix16_t daang, int32_t dahoriz, int16_t dacursectnum);
|
||||
void polymer_drawmasks(void);
|
||||
void polymer_editorpick(void);
|
||||
void polymer_inb4rotatesprite(int16_t tilenum, char pal, int8_t shade, int32_t method);
|
||||
void polymer_postrotatesprite(void);
|
||||
void polymer_drawmaskwall(int32_t damaskwallcnt);
|
||||
void polymer_drawsprite(int32_t snum);
|
||||
void polymer_setanimatesprites(animatespritesptr animatesprites, int32_t x, int32_t y, int32_t a, int32_t smoothratio);
|
||||
int16_t polymer_addlight(_prlight* light);
|
||||
void polymer_deletelight(int16_t lighti);
|
||||
void polymer_invalidatelights(void);
|
||||
void polymer_texinvalidate(void);
|
||||
void polymer_definehighpalookup(char basepalnum, char palnum, char *data);
|
||||
int32_t polymer_havehighpalookup(int32_t basepalnum, int32_t palnum);
|
||||
|
||||
|
||||
extern _prsprite *prsprites[MAXSPRITES];
|
||||
static inline void polymer_invalidatesprite(int32_t i)
|
||||
{
|
||||
if (prsprites[i])
|
||||
prsprites[i]->hash = 0xDEADBEEF;
|
||||
}
|
||||
|
||||
extern GLuint prartmaps[MAXTILES];
|
||||
static inline void polymer_invalidateartmap(int32_t tilenum)
|
||||
{
|
||||
if (prartmaps[tilenum])
|
||||
{
|
||||
glDeleteTextures(1, &prartmaps[tilenum]);
|
||||
prartmaps[tilenum] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Compare with eligible_for_tileshades()
|
||||
static inline int32_t polymer_eligible_for_artmap(int32_t tilenum, const pthtyp *pth)
|
||||
{
|
||||
return ((!pth || !pth->hicr) && tilenum < (MAXTILES - 4));
|
||||
}
|
||||
|
||||
# ifdef POLYMER_C
|
||||
|
||||
// CORE
|
||||
static void polymer_displayrooms(int16_t sectnum);
|
||||
static void polymer_emptybuckets(void);
|
||||
static _prbucket* polymer_findbucket(int16_t tilenum, char pal);
|
||||
static void polymer_bucketplane(_prplane* plane);
|
||||
static void polymer_drawplane(_prplane* plane);
|
||||
static inline void polymer_inb4mirror(_prvert* buffer, const GLfloat* plane);
|
||||
static void polymer_animatesprites(void);
|
||||
static void polymer_freeboard(void);
|
||||
// SECTORS
|
||||
static int32_t polymer_initsector(int16_t sectnum);
|
||||
static int32_t polymer_updatesector(int16_t sectnum);
|
||||
void PR_CALLBACK polymer_tesserror(GLenum error);
|
||||
void PR_CALLBACK polymer_tessedgeflag(GLenum error);
|
||||
void PR_CALLBACK polymer_tessvertex(void* vertex, void* sector);
|
||||
static int32_t polymer_buildfloor(int16_t sectnum);
|
||||
static void polymer_drawsector(int16_t sectnum, int32_t domasks);
|
||||
// WALLS
|
||||
static int32_t polymer_initwall(int16_t wallnum);
|
||||
static void polymer_updatewall(int16_t wallnum);
|
||||
static void polymer_drawwall(int16_t sectnum, int16_t wallnum);
|
||||
// HSR
|
||||
static void polymer_computeplane(_prplane* p);
|
||||
static inline void polymer_crossproduct(const GLfloat* in_a, const GLfloat* in_b, GLfloat* out);
|
||||
static inline void polymer_transformpoint(const float* inpos, float* pos, const float* matrix);
|
||||
static inline void polymer_normalize(float* vec);
|
||||
static inline void polymer_pokesector(int16_t sectnum);
|
||||
static void polymer_extractfrustum(GLfloat* modelview, GLfloat* projection, float* frustum);
|
||||
static inline int32_t polymer_planeinfrustum(_prplane *plane, const float* frustum);
|
||||
static inline void polymer_scansprites(int16_t sectnum, uspritetype* tsprite, int32_t* spritesortcnt);
|
||||
static void polymer_updatesprite(int32_t snum);
|
||||
// SKIES
|
||||
static void polymer_getsky(void);
|
||||
static void polymer_drawsky(int16_t tilenum, char palnum, int8_t shade);
|
||||
static void polymer_initartsky(void);
|
||||
static void polymer_drawartsky(int16_t tilenum, char palnum, int8_t shade);
|
||||
static void polymer_drawartskyquad(int32_t p1, int32_t p2, GLfloat height);
|
||||
static void polymer_drawskybox(int16_t tilenum, char palnum, int8_t shade);
|
||||
// MDSPRITES
|
||||
static void polymer_drawmdsprite(uspritetype *tspr);
|
||||
static void polymer_loadmodelvbos(md3model_t* m);
|
||||
// MATERIALS
|
||||
static void polymer_getscratchmaterial(_prmaterial* material);
|
||||
static _prbucket* polymer_getbuildmaterial(_prmaterial* material, int16_t tilenum, char pal, int8_t shade, int8_t vis, int32_t cmeth);
|
||||
static int32_t polymer_bindmaterial(const _prmaterial *material, const int16_t* lights, int lightcount);
|
||||
static void polymer_unbindmaterial(int32_t programbits);
|
||||
static void polymer_compileprogram(int32_t programbits);
|
||||
// LIGHTS
|
||||
static void polymer_removelight(int16_t lighti);
|
||||
static void polymer_updatelights(void);
|
||||
static inline void polymer_resetplanelights(_prplane* plane);
|
||||
static void polymer_addplanelight(_prplane* plane, int16_t lighti);
|
||||
static inline void polymer_deleteplanelight(_prplane* plane, int16_t lighti);
|
||||
static int32_t polymer_planeinlight(_prplane* plane, _prlight* light);
|
||||
static void polymer_invalidateplanelights(_prplane* plane);
|
||||
static void polymer_invalidatesectorlights(int16_t sectnum);
|
||||
static void polymer_processspotlight(_prlight* light);
|
||||
static inline void polymer_culllight(int16_t lighti);
|
||||
static void polymer_prepareshadows(void);
|
||||
// RENDER TARGETS
|
||||
static void polymer_initrendertargets(int32_t count);
|
||||
// DEBUG OUTPUT
|
||||
void PR_CALLBACK polymer_debugoutputcallback(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
|
||||
|
||||
#define INDICE(n) ((p->indices) ? (p->indices[(i+n)%p->indicescount]) : (((i+n)%p->vertcount)))
|
||||
|
||||
#define SWITCH_CULL_DIRECTION { culledface = (culledface == GL_FRONT) ? GL_BACK : GL_FRONT; glCullFace(culledface); }
|
||||
|
||||
static inline GLfloat dot2f(const GLfloat *v1, const GLfloat *v2)
|
||||
{
|
||||
return v1[0]*v2[0] + v1[1]*v2[1];
|
||||
}
|
||||
|
||||
static inline GLfloat dot3f(const GLfloat *v1, const GLfloat *v2)
|
||||
{
|
||||
return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2];
|
||||
}
|
||||
|
||||
static inline void relvec2f(const GLfloat *v1, const GLfloat *v2, GLfloat *out)
|
||||
{
|
||||
out[0] = v2[0]-v1[0];
|
||||
out[1] = v2[1]-v1[1];
|
||||
}
|
||||
|
||||
// the following from gle/vvector.h
|
||||
|
||||
/* ========================================================== */
|
||||
/* determinant of matrix
|
||||
*
|
||||
* Computes determinant of matrix m, returning d
|
||||
*/
|
||||
|
||||
#define DETERMINANT_3X3(d,m) \
|
||||
{ \
|
||||
d = m[0][0] * (m[1][1]*m[2][2] - m[1][2] * m[2][1]); \
|
||||
d -= m[0][1] * (m[1][0]*m[2][2] - m[1][2] * m[2][0]); \
|
||||
d += m[0][2] * (m[1][0]*m[2][1] - m[1][1] * m[2][0]); \
|
||||
}
|
||||
|
||||
/* ========================================================== */
|
||||
/* i,j,th cofactor of a 4x4 matrix
|
||||
*
|
||||
*/
|
||||
|
||||
#define COFACTOR_4X4_IJ(fac,m,i,j) \
|
||||
{ \
|
||||
int ii[4], jj[4], k; \
|
||||
\
|
||||
/* compute which row, columnt to skip */ \
|
||||
for (k=0; k<i; k++) ii[k] = k; \
|
||||
for (k=i; k<3; k++) ii[k] = k+1; \
|
||||
for (k=0; k<j; k++) jj[k] = k; \
|
||||
for (k=j; k<3; k++) jj[k] = k+1; \
|
||||
\
|
||||
(fac) = m[ii[0]][jj[0]] * (m[ii[1]][jj[1]]*m[ii[2]][jj[2]] \
|
||||
- m[ii[1]][jj[2]]*m[ii[2]][jj[1]]); \
|
||||
(fac) -= m[ii[0]][jj[1]] * (m[ii[1]][jj[0]]*m[ii[2]][jj[2]] \
|
||||
- m[ii[1]][jj[2]]*m[ii[2]][jj[0]]);\
|
||||
(fac) += m[ii[0]][jj[2]] * (m[ii[1]][jj[0]]*m[ii[2]][jj[1]] \
|
||||
- m[ii[1]][jj[1]]*m[ii[2]][jj[0]]);\
|
||||
\
|
||||
/* compute sign */ \
|
||||
k = i+j; \
|
||||
if ( k != (k/2)*2) { \
|
||||
(fac) = -(fac); \
|
||||
} \
|
||||
}
|
||||
|
||||
/* ========================================================== */
|
||||
/* determinant of matrix
|
||||
*
|
||||
* Computes determinant of matrix m, returning d
|
||||
*/
|
||||
|
||||
#define DETERMINANT_4X4(d,m) \
|
||||
{ \
|
||||
double cofac; \
|
||||
COFACTOR_4X4_IJ (cofac, m, 0, 0); \
|
||||
d = m[0][0] * cofac; \
|
||||
COFACTOR_4X4_IJ (cofac, m, 0, 1); \
|
||||
d += m[0][1] * cofac; \
|
||||
COFACTOR_4X4_IJ (cofac, m, 0, 2); \
|
||||
d += m[0][2] * cofac; \
|
||||
COFACTOR_4X4_IJ (cofac, m, 0, 3); \
|
||||
d += m[0][3] * cofac; \
|
||||
}
|
||||
|
||||
/* ========================================================== */
|
||||
/* compute adjoint of matrix and scale
|
||||
*
|
||||
* Computes adjoint of matrix m, scales it by s, returning a
|
||||
*/
|
||||
|
||||
#define SCALE_ADJOINT_3X3(a,s,m) \
|
||||
{ \
|
||||
a[0][0] = (s) * (m[1][1] * m[2][2] - m[1][2] * m[2][1]); \
|
||||
a[1][0] = (s) * (m[1][2] * m[2][0] - m[1][0] * m[2][2]); \
|
||||
a[2][0] = (s) * (m[1][0] * m[2][1] - m[1][1] * m[2][0]); \
|
||||
\
|
||||
a[0][1] = (s) * (m[0][2] * m[2][1] - m[0][1] * m[2][2]); \
|
||||
a[1][1] = (s) * (m[0][0] * m[2][2] - m[0][2] * m[2][0]); \
|
||||
a[2][1] = (s) * (m[0][1] * m[2][0] - m[0][0] * m[2][1]); \
|
||||
\
|
||||
a[0][2] = (s) * (m[0][1] * m[1][2] - m[0][2] * m[1][1]); \
|
||||
a[1][2] = (s) * (m[0][2] * m[1][0] - m[0][0] * m[1][2]); \
|
||||
a[2][2] = (s) * (m[0][0] * m[1][1] - m[0][1] * m[1][0]); \
|
||||
}
|
||||
|
||||
/* ========================================================== */
|
||||
/* compute adjoint of matrix and scale
|
||||
*
|
||||
* Computes adjoint of matrix m, scales it by s, returning a
|
||||
*/
|
||||
|
||||
#define SCALE_ADJOINT_4X4(a,s,m) \
|
||||
{ \
|
||||
int i,j; \
|
||||
\
|
||||
for (i=0; i<4; i++) { \
|
||||
for (j=0; j<4; j++) { \
|
||||
COFACTOR_4X4_IJ (a[j][i], m, i, j); \
|
||||
a[j][i] *= s; \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
|
||||
/* ========================================================== */
|
||||
/* inverse of matrix
|
||||
*
|
||||
* Compute inverse of matrix a, returning determinant m and
|
||||
* inverse b
|
||||
*/
|
||||
|
||||
#define INVERT_3X3(b,det,a) \
|
||||
{ \
|
||||
double tmp; \
|
||||
DETERMINANT_3X3 (det, a); \
|
||||
tmp = 1.0 / (det); \
|
||||
SCALE_ADJOINT_3X3 (b, tmp, a); \
|
||||
}
|
||||
|
||||
/* ========================================================== */
|
||||
/* inverse of matrix
|
||||
*
|
||||
* Compute inverse of matrix a, returning determinant m and
|
||||
* inverse b
|
||||
*/
|
||||
|
||||
#define INVERT_4X4(b,det,a) \
|
||||
{ \
|
||||
double tmp; \
|
||||
DETERMINANT_4X4 (det, a); \
|
||||
tmp = 1.0 / (det); \
|
||||
SCALE_ADJOINT_4X4 (b, tmp, a); \
|
||||
}
|
||||
|
||||
# endif // !POLYMER_C
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !polymer_h_
|
Loading…
Reference in a new issue