| 496 | } |
| 497 | |
| 498 | RTC_API bool rtcPointQuery(RTCScene hscene, RTCPointQuery* query, RTCPointQueryContext* userContext, RTCPointQueryFunction queryFunc, void* userPtr) |
| 499 | { |
| 500 | Scene* scene = (Scene*) hscene; |
| 501 | RTC_CATCH_BEGIN; |
| 502 | RTC_TRACE(rtcPointQuery); |
| 503 | #if defined(DEBUG) |
| 504 | RTC_VERIFY_HANDLE(hscene); |
| 505 | RTC_VERIFY_HANDLE(userContext); |
| 506 | if (scene->isModified()) throw_RTCError(RTC_ERROR_INVALID_OPERATION,"scene got not committed"); |
| 507 | if (((size_t)query) & 0x0F) throw_RTCError(RTC_ERROR_INVALID_ARGUMENT, "query not aligned to 16 bytes"); |
| 508 | if (((size_t)userContext) & 0x0F) throw_RTCError(RTC_ERROR_INVALID_ARGUMENT, "context not aligned to 16 bytes"); |
| 509 | #endif |
| 510 | |
| 511 | return pointQuery(scene, query, userContext, queryFunc, userPtr); |
| 512 | RTC_CATCH_END2_FALSE(scene); |
| 513 | } |
| 514 | |
| 515 | RTC_API bool rtcPointQuery4 (const int* valid, RTCScene hscene, RTCPointQuery4* query, struct RTCPointQueryContext* userContext, RTCPointQueryFunction queryFunc, void** userPtrN) |
| 516 | { |
no test coverage detected