summaryrefslogtreecommitdiffhomepage
path: root/contrib/Opcode/OPC_Picking.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-12 22:07:03 +0100
committerAki <please@ignore.pl>2024-03-12 22:07:36 +0100
commit81bb6873f1c0291fecbf6e429ad15ac3db66a4c0 (patch)
treefd7552ecabeeffb45a1fbe3730ab62bc7a64dd85 /contrib/Opcode/OPC_Picking.h
parentf43d32d6d2cc7ecd04f4f06f20d5a6fc2c87c9ae (diff)
downloadstarshatter-81bb6873f1c0291fecbf6e429ad15ac3db66a4c0.zip
starshatter-81bb6873f1c0291fecbf6e429ad15ac3db66a4c0.tar.gz
starshatter-81bb6873f1c0291fecbf6e429ad15ac3db66a4c0.tar.bz2
Legal notices updated
Rename contrib -> third-party intendes to express the origin and purpose of that part of the code better. I plan to readd contrib/ again but with more in-project things like bash-completions, dev workflow scripts etc.
Diffstat (limited to 'contrib/Opcode/OPC_Picking.h')
-rw-r--r--contrib/Opcode/OPC_Picking.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/contrib/Opcode/OPC_Picking.h b/contrib/Opcode/OPC_Picking.h
deleted file mode 100644
index cae5402..0000000
--- a/contrib/Opcode/OPC_Picking.h
+++ /dev/null
@@ -1,45 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-/*
- * OPCODE - Optimized Collision Detection
- * Copyright (C) 2001 Pierre Terdiman
- * Homepage: http://www.codercorner.com/Opcode.htm
- */
-///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-/**
- * Contains code to perform "picking".
- * \file OPC_Picking.h
- * \author Pierre Terdiman
- * \date March, 20, 2001
- */
-///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-// Include Guard
-#ifndef __OPC_PICKING_H__
-#define __OPC_PICKING_H__
-
-#ifdef OPC_RAYHIT_CALLBACK
-
- enum CullMode
- {
- CULLMODE_NONE = 0,
- CULLMODE_CW = 1,
- CULLMODE_CCW = 2
- };
-
- typedef CullMode (*CullModeCallback)(udword triangle_index, void* user_data);
-
- OPCODE_API bool SetupAllHits (RayCollider& collider, CollisionFaces& contacts);
- OPCODE_API bool SetupClosestHit (RayCollider& collider, CollisionFace& closest_contact);
- OPCODE_API bool SetupShadowFeeler (RayCollider& collider);
- OPCODE_API bool SetupInOutTest (RayCollider& collider);
-
- OPCODE_API bool Picking(
- CollisionFace& picked_face,
- const Ray& world_ray, const Model& model, const Matrix4x4* world,
- float min_dist, float max_dist, const IcePoint& view_point, CullModeCallback callback, void* user_data);
-#endif
-
-#endif //__OPC_PICKING_H__ \ No newline at end of file