Currently I am trying to port my project to Polyvox 0.2.1. And doing my voxel picking thing. As posted here
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=492.
But when I compile my source code, I get following errors in file "Raycast.inl"!
Code:
1>------ Build started: Project: Basic, Configuration: Debug Win32 ------
1>Build started 8/9/2013 5:46:27 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Basic.unsuccessfulbuild".
1>CustomBuild:
1> Moc'ing OpenGLWidget.h...
1>ClCompile:
1> moc_OpenGLWidget.cpp
1> OpenGLWidget.cpp
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(74): error C2825: 'VolumeType': must be a class or namespace when followed by '::'
1> D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(176) : see reference to function template instantiation 'PolyVox::RaycastResult PolyVox::raycastWithEndpoints<VolumeType,Callback>(VolumeType *,const PolyVox::Vector3DFloat &,const PolyVox::Vector3DFloat &,Callback &)' being compiled
1> with
1> [
1> VolumeType=PolyVox::SimpleVolume<uint8_t> *,
1> Callback=RaycastIntersectionFinder
1> ]
1> OpenGLWidget.cpp(439) : see reference to function template instantiation 'PolyVox::RaycastResult PolyVox::raycastWithDirection<PolyVox::SimpleVolume<VoxelType>*,RaycastIntersectionFinder>(VolumeType *,const PolyVox::Vector3DFloat &,const PolyVox::Vector3DFloat &,Callback &)' being compiled
1> with
1> [
1> VoxelType=uint8_t,
1> VolumeType=PolyVox::SimpleVolume<uint8_t> *,
1> Callback=RaycastIntersectionFinder
1> ]
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(74): error C2039: 'Sampler' : is not a member of '`global namespace''
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(74): error C2146: syntax error : missing ';' before identifier 'sampler'
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(74): error C3861: 'sampler': identifier not found
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(109): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(109): error C2228: left of '.setPosition' must have class/struct/union
1> type is ''unknown-type''
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(113): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(124): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(124): error C2228: left of '.movePositiveX' must have class/struct/union
1> type is ''unknown-type''
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(125): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(125): error C2228: left of '.moveNegativeX' must have class/struct/union
1> type is ''unknown-type''
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(132): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(132): error C2228: left of '.movePositiveY' must have class/struct/union
1> type is ''unknown-type''
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(133): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(133): error C2228: left of '.moveNegativeY' must have class/struct/union
1> type is ''unknown-type''
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(140): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(140): error C2228: left of '.movePositiveZ' must have class/struct/union
1> type is ''unknown-type''
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(141): error C2065: 'sampler' : undeclared identifier
1>D:\polyvox-0.2.1\library\PolyVoxCore\include\PolyVoxCore/Raycast.inl(141): error C2228: left of '.moveNegativeZ' must have class/struct/union
1> type is ''unknown-type''
1> main.cpp
1> window.cpp
1> Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:12.23
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I really donnot know what's wrong!