PxHeightFieldSample.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 #ifndef PX_PHYSICS_NXHEIGHTFIELDSAMPLE
15 #define PX_PHYSICS_NXHEIGHTFIELDSAMPLE
16 
21 
22 #ifndef PX_DOXYGEN
23 namespace physx
24 {
25 #endif
26 
33 {
34  enum Enum
35  {
36  eHOLE = 127
37  };
38 };
39 
52 {
53 //= ATTENTION! =====================================================================================
54 // Changing the data layout of this class breaks the binary serialization format. See comments for
55 // PX_BINARY_SERIAL_VERSION. If a modification is required, please adjust the getBinaryMetaData
56 // function. If the modification is made on a custom branch, please change PX_BINARY_SERIAL_VERSION
57 // accordingly.
58 //==================================================================================================
59 
68 
85 
86  PX_CUDA_CALLABLE PX_FORCE_INLINE PxU8 tessFlag() const { return PxU8(materialIndex0.isBitSet() ? 1 : 0); } // PT: explicit conversion to make sure we don't break the code
87  PX_CUDA_CALLABLE PX_FORCE_INLINE void setTessFlag() { materialIndex0.setBit(); }
88  PX_CUDA_CALLABLE PX_FORCE_INLINE void clearTessFlag() { materialIndex0.clearBit(); }
89 
100 };
101 
102 #ifndef PX_DOXYGEN
103 } // namespace physx
104 #endif
105 
107 #endif


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com