资源简介
很好的物理引擎学习资料,这是physx3.2的第三部分,与第一二部分一起使用
代码片段和文件信息
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation and
// any modifications thereto. Any use reproduction disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA Corporation is strictly prohibited.
//
// ALL NVIDIA DESIGN SPECIFICATIONS CODE ARE PROVIDED “AS IS.“. NVIDIA MAKES
// NO WARRANTIES EXPRESSED IMPLIED STATUTORY OR OTHERWISE WITH RESPECT TO
// THE MATERIALS AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// Information and code furnished is believed to be accurate and reliable.
// However NVIDIA Corporation assumes no responsibility for the consequences of use of such
// information or for any infringement of patents or other rights of third parties that may
// result from its use. No license is granted by implication or otherwise under any patent
// or patent rights of NVIDIA Corporation. Details are subject to change without notice.
// This code supersedes and replaces all information previously supplied.
// NVIDIA Corporation products are not authorized for use as critical
// components in life support devices or systems without express written approval of
// NVIDIA Corporation.
//
// Copyright (c) 2008-2012 NVIDIA Corporation. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
#include
#include
#include
#include “PxTkBmpLoader.h“
#include “PsFile.h“
using namespace PxToolkit;
#define MAKETWOCC(ab) ( ((char)a) | (((char)b)<< 8) )
static bool isBigEndian() { int i = 1; return *((char*)&i)==0; }
static unsigned short endianSwap(unsigned short nValue)
{
return (((nValue>> 8)) | (nValue << 8));
}
static unsigned int endianSwap(unsigned int i)
{
unsigned char b1 b2 b3 b4;
b1 = i & 255;
b2 = ( i >> 8 ) & 255;
b3 = ( i>>16 ) & 255;
b4 = ( i>>24 ) & 255;
return ((unsigned int)b1 << 24) + ((unsigned int)b2 << 16) + ((unsigned int)b3 << 8) + b4;
}
// -------------------------------------------------------------------
#pragma pack(1)
struct BMPHEADER {
unsigned short Type;
unsigned int Size;
unsigned short Reserved1;
unsigned short Reserved2;
unsigned int OffBits;
};
// Only Win3.0 BMPINFO (see later for OS/2)
struct BMPINFO {
unsigned int Size;
unsigned int Width;
unsigned int Height;
unsigned short Planes;
unsigned short BitCount;
unsigned int Compression;
unsigned int SizeImage;
unsigned int XPelsPerMeter;
unsigned int YPelsPerMeter;
unsigne
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 699192 2012-04-30 14:42 media\PhysX\3.2\Samples\asphalt_diffuse.dds
文件 1046 2012-04-30 14:42 media\PhysX\3.2\Samples\BoxMesh.raw
文件 133325 2012-04-30 14:42 media\PhysX\3.2\Samples\cape.obj
文件 1572918 2012-04-30 14:42 media\PhysX\3.2\Samples\Cape_PlainGreen.bmp
文件 1572918 2012-04-30 14:42 media\PhysX\3.2\Samples\cape_plain_green.bmp
文件 2097206 2012-04-30 14:42 media\PhysX\3.2\Samples\car02_diffuse.bmp
文件 2097183 2012-04-30 14:42 media\PhysX\3.2\Samples\car02_diffuse.tga
文件 138615 2012-04-30 14:42 media\PhysX\3.2\Samples\car2.raw
文件 1078 2012-04-30 14:42 media\PhysX\3.2\Samples\car_window_diffuse.bmp
文件 1055 2012-04-30 14:42 media\PhysX\3.2\Samples\car_window_diffuse.tga
文件 102222 2012-04-30 14:42 media\PhysX\3.2\Samples\ctdm_cape_m.obj
文件 5616 2012-04-30 14:42 media\PhysX\3.2\Samples\debris_texture.dds
文件 43832 2012-04-30 14:42 media\PhysX\3.2\Samples\divingBoardFloor_diffuse.dds
文件 3145782 2012-04-30 14:42 media\PhysX\3.2\Samples\dummy_cape_d.bmp
文件 174904 2012-04-30 14:42 media\PhysX\3.2\Samples\grass_diffuse.dds
文件 699192 2012-04-30 14:42 media\PhysX\3.2\Samples\gravel_diffuse.dds
文件 174904 2012-04-30 14:42 media\PhysX\3.2\Samples\ice_diffuse.dds
文件 72184 2012-04-30 14:42 media\PhysX\3.2\Samples\Looping.raw
文件 391 2012-04-30 14:42 media\PhysX\3.2\Samples\materials\particle_sample_heightmap.xm
文件 1572918 2012-04-30 14:42 media\PhysX\3.2\Samples\mission_race1_sky_side.bmp
文件 1572895 2012-04-30 14:42 media\PhysX\3.2\Samples\mission_race1_sky_SIDE.tga
文件 786486 2012-04-30 14:42 media\PhysX\3.2\Samples\mission_race1_sky_top.bmp
文件 786463 2012-04-30 14:42 media\PhysX\3.2\Samples\mission_race1_sky_TOP.tga
文件 7268 2012-04-30 14:42 media\PhysX\3.2\Samples\motion\stickman.asf
文件 235468 2012-04-30 14:42 media\PhysX\3.2\Samples\motion\stickman_jump_01.amc
文件 75131 2012-04-30 14:42 media\PhysX\3.2\Samples\motion\stickman_running_01.amc
文件 93735 2012-04-30 14:42 media\PhysX\3.2\Samples\motion\stickman_walking_01.amc
文件 196664 2012-04-30 14:42 media\PhysX\3.2\Samples\nvidia.bmp
文件 1572918 2012-04-30 14:42 media\PhysX\3.2\Samples\nvidia_flag_d.bmp
文件 42890 2012-04-30 14:42 media\PhysX\3.2\Samples\particles_heightmap.tga
............此处省略1015个文件信息
- 上一篇:physx3.2 sdk(2)
- 下一篇:实用射频测试和测量
评论
共有 条评论