scene_user_geometry.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // ======================================================================== //
  2. // Copyright 2009-2017 Intel Corporation //
  3. // //
  4. // Licensed under the Apache License, Version 2.0 (the "License"); //
  5. // you may not use this file except in compliance with the License. //
  6. // You may obtain a copy of the License at //
  7. // //
  8. // http://www.apache.org/licenses/LICENSE-2.0 //
  9. // //
  10. // Unless required by applicable law or agreed to in writing, software //
  11. // distributed under the License is distributed on an "AS IS" BASIS, //
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //
  13. // See the License for the specific language governing permissions and //
  14. // limitations under the License. //
  15. // ======================================================================== //
  16. #pragma once
  17. #include "accelset.h"
  18. namespace embree
  19. {
  20. /*! User geometry with user defined intersection functions */
  21. struct UserGeometry : public AccelSet
  22. {
  23. public:
  24. UserGeometry (Scene* parent, RTCGeometryFlags gflags, size_t items, size_t numTimeSteps);
  25. virtual void setUserData (void* ptr);
  26. virtual void setMask (unsigned mask);
  27. virtual void setBoundsFunction (RTCBoundsFunc bounds);
  28. virtual void setBoundsFunction2 (RTCBoundsFunc2 bounds, void* userPtr);
  29. virtual void setBoundsFunction3 (RTCBoundsFunc3 bounds, void* userPtr);
  30. virtual void setIntersectFunction (RTCIntersectFunc intersect, bool ispc);
  31. virtual void setIntersectFunction4 (RTCIntersectFunc4 intersect4, bool ispc);
  32. virtual void setIntersectFunction8 (RTCIntersectFunc8 intersect8, bool ispc);
  33. virtual void setIntersectFunction16 (RTCIntersectFunc16 intersect16, bool ispc);
  34. virtual void setIntersectFunction1Mp (RTCIntersectFunc1Mp intersect);
  35. virtual void setIntersectFunctionN (RTCIntersectFuncN intersect);
  36. virtual void setOccludedFunction (RTCOccludedFunc occluded, bool ispc);
  37. virtual void setOccludedFunction4 (RTCOccludedFunc4 occluded4, bool ispc);
  38. virtual void setOccludedFunction8 (RTCOccludedFunc8 occluded8, bool ispc);
  39. virtual void setOccludedFunction16 (RTCOccludedFunc16 occluded16, bool ispc);
  40. virtual void setOccludedFunction1Mp (RTCOccludedFunc1Mp occluded);
  41. virtual void setOccludedFunctionN (RTCOccludedFuncN occluded);
  42. virtual void build() {}
  43. };
  44. }