Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | pmbaty | 1 | #ifndef _FINTERAY_H_ |
| 2 | #define _FINTERAY_H_ |
||
| 3 | |||
| 4 | #include "dr_types.h" |
||
| 5 | |||
| 6 | extern int gPling_materials; |
||
| 7 | extern br_material* gSub_material; |
||
| 8 | extern br_material* gReal_material; |
||
| 9 | extern int gNfaces; |
||
| 10 | extern br_matrix34 gPick_model_to_view__finteray; // suffix added to avoid duplicate symbol |
||
| 11 | extern int gTemp_group; |
||
| 12 | extern br_model* gNearest_model; |
||
| 13 | extern br_model* gSelected_model; |
||
| 14 | extern int gNearest_face_group; |
||
| 15 | extern int gNearest_face; |
||
| 16 | extern br_scalar gNearest_T; |
||
| 17 | extern tFace_ref* gPling_face; |
||
| 18 | |||
| 19 | // Suffix added to avoid duplicate symbol |
||
| 20 | int BadDiv__finteray(br_scalar a, br_scalar b); |
||
| 21 | |||
| 22 | // Suffix added to avoid duplicate symbol |
||
| 23 | void DRVector2AccumulateScale__finteray(br_vector2* a, br_vector2* b, br_scalar s); |
||
| 24 | |||
| 25 | // Suffix added to avoid duplicate symbol |
||
| 26 | int PickBoundsTestRay__finteray(br_bounds* b, br_vector3* rp, br_vector3* rd, br_scalar t_near, br_scalar t_far, br_scalar* new_t_near, br_scalar* new_t_far); |
||
| 27 | |||
| 28 | int ActorRayPick2D(br_actor* ap, br_vector3* pPosition, br_vector3* pDir, br_model* model, br_material* material, dr_pick2d_cbfn* callback); |
||
| 29 | |||
| 30 | int DRSceneRayPick2D(br_actor* world, br_vector3* pPosition, br_vector3* pDir, dr_pick2d_cbfn* callback); |
||
| 31 | |||
| 32 | // Suffix added to avoid duplicate symbol |
||
| 33 | int DRModelPick2D__finteray(br_model* model, br_material* material, br_vector3* ray_pos, br_vector3* ray_dir, br_scalar t_near, br_scalar t_far, dr_modelpick2d_cbfn* callback, void* arg); |
||
| 34 | |||
| 35 | // Suffix added to avoid duplicate symbol |
||
| 36 | int FindHighestPolyCallBack__finteray(br_model* pModel, br_material* pMaterial, br_vector3* pRay_pos, br_vector3* pRay_dir, br_scalar pT, int pF, int pE, int pV, br_vector3* pPoint, br_vector2* pMap, void* pArg); |
||
| 37 | |||
| 38 | // Suffix added to avoid duplicate symbol |
||
| 39 | int FindHighestCallBack__finteray(br_actor* pActor, br_model* pModel, br_material* pMaterial, br_vector3* pRay_pos, br_vector3* pRay_dir, br_scalar pT_near, br_scalar pT_far, void* pArg); |
||
| 40 | |||
| 41 | void FindFace(br_vector3* pPosition, br_vector3* pDir, br_vector3* nor, br_scalar* t, br_material** material); |
||
| 42 | |||
| 43 | void EnablePlingMaterials(void); |
||
| 44 | |||
| 45 | void DisablePlingMaterials(void); |
||
| 46 | |||
| 47 | void CheckSingleFace(tFace_ref* pFace, br_vector3* ray_pos, br_vector3* ray_dir, br_vector3* normal, br_scalar* rt); |
||
| 48 | |||
| 49 | void MultiRayCheckSingleFace(int pNum_rays, tFace_ref* pFace, br_vector3* ray_pos, br_vector3* ray_dir, br_vector3* normal, br_scalar* rt); |
||
| 50 | |||
| 51 | void GetNewBoundingBox(br_bounds* b2, br_bounds* b1, br_matrix34* m); |
||
| 52 | |||
| 53 | int FindFacesInBox(tBounds* bnds, tFace_ref* face_list, int max_face); |
||
| 54 | |||
| 55 | int FindFacesInBox2(tBounds* bnds, tFace_ref* face_list, int max_face); |
||
| 56 | |||
| 57 | int ActorBoxPick(tBounds* bnds, br_actor* ap, br_model* model, br_material* material, tFace_ref* face_list, int max_face, br_matrix34* pMat); |
||
| 58 | |||
| 59 | int ModelPickBox(br_actor* actor, tBounds* bnds, br_model* model, br_material* model_material, tFace_ref* face_list, int max_face, br_matrix34* pMat); |
||
| 60 | |||
| 61 | void ClipToPlaneGE(br_vector3* p, int* nv, int i, br_scalar limit); |
||
| 62 | |||
| 63 | void ClipToPlaneLE(br_vector3* p, int* nv, int i, br_scalar limit); |
||
| 64 | |||
| 65 | // Suffix added to avoid duplicate symbol |
||
| 66 | int BoundsOverlapTest__finteray(br_bounds* b1, br_bounds* b2); |
||
| 67 | |||
| 68 | int BoundsTransformTest(br_bounds* b1, br_bounds* b2, br_matrix34* M); |
||
| 69 | |||
| 70 | int LineBoxColl(br_vector3* o, br_vector3* p, br_bounds* pB, br_vector3* pHit_point); |
||
| 71 | |||
| 72 | int SphereBoxIntersection(br_bounds* pB, br_vector3* pC, br_scalar pR_squared, br_vector3* pHit_point); |
||
| 73 | |||
| 74 | int LineBoxCollWithSphere(br_vector3* o, br_vector3* p, br_bounds* pB, br_vector3* pHit_point); |
||
| 75 | |||
| 76 | int CompVert(int v1, int v2); |
||
| 77 | |||
| 78 | void SetFacesGroup(int pFace); |
||
| 79 | |||
| 80 | void SelectFace(br_vector3* pDir); |
||
| 81 | |||
| 82 | void GetTilingLimits(br_vector2* min, br_vector2* max); |
||
| 83 | |||
| 84 | void Scale(int pD, int factor); |
||
| 85 | |||
| 86 | void ScaleUpX(void); |
||
| 87 | |||
| 88 | void ScaleDnX(void); |
||
| 89 | |||
| 90 | void ScaleUpY(void); |
||
| 91 | |||
| 92 | void ScaleDnY(void); |
||
| 93 | |||
| 94 | void SelectFaceForward(void); |
||
| 95 | |||
| 96 | void SelectFaceDown(void); |
||
| 97 | |||
| 98 | #endif |