Changeset 2097
- Timestamp:
- Nov 20, 2012, 1:23:15 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 3 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile.am
r2096 r2097 7 7 8 8 liblol_a_SOURCES = \ 9 core.h tiler.cpp tiler.h dict.cpp dict.h array.h\9 core.h tiler.cpp tiler.h dict.cpp dict.h \ 10 10 audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \ 11 11 map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \ … … 13 13 timer.cpp timer.h bitfield.h profiler.cpp profiler.h \ 14 14 world.cpp world.h sample.cpp sample.h sampler.cpp sampler.h \ 15 text.cpp text.h emitter.cpp emitter.h numeric.h hash.cpp hash.h\15 text.cpp text.h emitter.cpp emitter.h numeric.h \ 16 16 worldentity.cpp worldentity.h gradient.cpp gradient.h gradient.lolfx \ 17 17 platform.cpp platform.h sprite.cpp sprite.h camera.cpp camera.h \ 18 18 \ 19 19 lol/unit.h lol/debug.h \ 20 lol/core/array.h lol/core/string.h \20 lol/core/array.h lol/core/string.h lol/core/hash.h \ 21 21 lol/math/vector.h lol/math/half.h lol/math/real.h lol/math/remez.h \ 22 22 lol/math/math.h \ … … 40 40 $(android_sources) \ 41 41 $(bullet_sources) \ 42 \ 43 core/hash.cpp \ 42 44 \ 43 45 thread/threadbase.h thread/thread.h \ -
trunk/src/core.h
r2086 r2097 78 78 #include <lol/core/array.h> 79 79 #include <lol/core/string.h> 80 #include <lol/core/hash.h> 80 81 #include <lol/math/math.h> 81 82 #include <lol/math/half.h> … … 112 113 113 114 // Other objects 114 #include "hash.h"115 115 #include "dict.h" 116 116 #include "map.h" -
trunk/src/gpu/shader.cpp
r1928 r2097 72 72 /* Global shader cache */ 73 73 static Shader *shaders[]; 74 static Hash<char const *> hash; 74 75 static int nshaders; 75 76 }; 76 77 77 78 Shader *ShaderData::shaders[256]; 79 Hash<char const *> ShaderData::hash; 78 80 int ShaderData::nshaders = 0; 79 81 … … 138 140 Log::Error("no fragment shader found… sorry, I’m gonna crash now.\n"); 139 141 140 uint32_t new_vert_crc = Hash::Crc32(vert);141 uint32_t new_frag_crc = Hash::Crc32(frag);142 uint32_t new_vert_crc = ShaderData::hash(vert); 143 uint32_t new_frag_crc = ShaderData::hash(frag); 142 144 143 145 for (int n = 0; n < ShaderData::nshaders; n++) … … 190 192 191 193 /* Compile vertex shader */ 192 data->vert_crc = Hash::Crc32(vert);194 data->vert_crc = ShaderData::hash(vert); 193 195 #if defined USE_D3D9 || defined _XBOX 194 196 hr = D3DXCompileShader(vert, (UINT)strlen(vert), macros, NULL, "main", … … 234 236 235 237 /* Compile fragment shader */ 236 data->frag_crc = Hash::Crc32(frag);238 data->frag_crc = ShaderData::hash(frag); 237 239 #if defined USE_D3D9 || defined _XBOX 238 240 hr = D3DXCompileShader(frag, (UINT)strlen(frag), macros, NULL, "main", -
trunk/src/lolcore.vcxproj
r2086 r2097 235 235 <ClCompile Include="bullet\LinearMath\btSerializer.cpp" /> 236 236 <ClCompile Include="camera.cpp" /> 237 <ClCompile Include="core\hash.cpp" /> 237 238 <ClCompile Include="debug\fps.cpp" /> 238 239 <ClCompile Include="debug\record.cpp" /> … … 258 259 <ClCompile Include="gpu\vertexbuffer.cpp" /> 259 260 <ClCompile Include="gradient.cpp" /> 260 <ClCompile Include="hash.cpp" />261 261 <ClCompile Include="image\codec\android-image.cpp" /> 262 262 <ClCompile Include="image\codec\dummy-image.cpp" /> … … 573 573 <ClInclude Include="gpu\vertexbuffer.h" /> 574 574 <ClInclude Include="gradient.h" /> 575 <ClInclude Include="hash.h" />576 575 <ClInclude Include="image\image-private.h" /> 577 576 <ClInclude Include="image\image.h" /> … … 584 583 <ClInclude Include="lolgl.h" /> 585 584 <ClInclude Include="lol\core\array.h" /> 585 <ClInclude Include="lol\core\hash.h" /> 586 <ClInclude Include="lol\core\string.h" /> 586 587 <ClInclude Include="lol\debug.h" /> 587 588 <ClInclude Include="lol\math\half.h" />
Note: See TracChangeset
for help on using the changeset viewer.