Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
hrplib
hrpCollision
Opcode
OPC_Picking.h
Go to the documentation of this file.
1
/*
3
* OPCODE - Optimized Collision Detection
4
* Copyright (C) 2001 Pierre Terdiman
5
* Homepage: http://www.codercorner.com/Opcode.htm
6
*/
8
10
16
19
// Include Guard
20
#ifndef __OPC_PICKING_H__
21
#define __OPC_PICKING_H__
22
23
#ifdef OPC_RAYHIT_CALLBACK
24
25
enum
CullMode
26
{
27
CULLMODE_NONE
= 0,
28
CULLMODE_CW
= 1,
29
CULLMODE_CCW
= 2
30
};
31
32
typedef
CullMode
(*
CullModeCallback
)(
udword
triangle_index,
void
* user_data);
33
34
OPCODE_API
bool
SetupAllHits
(
RayCollider
& collider,
CollisionFaces
& contacts);
35
OPCODE_API
bool
SetupClosestHit
(
RayCollider
& collider,
CollisionFace
& closest_contact);
36
OPCODE_API
bool
SetupShadowFeeler
(
RayCollider
& collider);
37
OPCODE_API
bool
SetupInOutTest
(
RayCollider
& collider);
38
39
OPCODE_API
bool
Picking
(
40
CollisionFace
& picked_face,
41
const
Ray
& world_ray,
const
Model
& model,
const
Matrix4x4
* world,
42
float
min_dist,
float
max_dist,
const
Point
& view_point,
CullModeCallback
callback,
void
* user_data);
43
#endif
44
45
#endif //__OPC_PICKING_H__
CollisionFace
Definition:
OPC_RayCollider.h:23
Opcode::SetupAllHits
OPCODE_API bool SetupAllHits(RayCollider &collider, CollisionFaces &contacts)
Definition:
OPC_Picking.cpp:35
Opcode::CULLMODE_CCW
Definition:
Opcode.h:30
CollisionFaces
Definition:
OPC_RayCollider.h:36
Matrix4x4
Definition:
IceMatrix4x4.h:21
Point
Definition:
IcePoint.h:25
Opcode::CULLMODE_CW
Definition:
Opcode.h:29
OPCODE_API
#define OPCODE_API
Definition:
Opcode.h:68
Opcode::CullModeCallback
CullMode(* CullModeCallback)(udword triangle_index, void *user_data)
Definition:
Opcode.h:33
Opcode::SetupShadowFeeler
OPCODE_API bool SetupShadowFeeler(RayCollider &collider)
Definition:
OPC_Picking.cpp:70
Opcode::SetupClosestHit
OPCODE_API bool SetupClosestHit(RayCollider &collider, CollisionFace &closest_contact)
Definition:
OPC_Picking.cpp:52
udword
unsigned int udword
sizeof(udword) must be 4
Definition:
IceTypes.h:65
Opcode::SetupInOutTest
OPCODE_API bool SetupInOutTest(RayCollider &collider)
Definition:
OPC_Picking.cpp:77
Opcode::CullMode
CullMode
Definition:
Opcode.h:26
Ray
Definition:
IceRay.h:15
Model
Definition:
OPC_Model.h:23
RayCollider
Definition:
OPC_RayCollider.h:63
Opcode::Picking
OPCODE_API bool Picking(CollisionFace &picked_face, const Ray &world_ray, const Model &model, const Matrix4x4 *world, float min_dist, float max_dist, const Point &view_point, CullModeCallback callback, void *user_data)
Definition:
OPC_Picking.cpp:85
Opcode::CULLMODE_NONE
Definition:
Opcode.h:28
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:39