聽
灏忔枻瑙夊緱锛岀爺绌惰嚜甯︾殑鑼冧緥绋嬪簭鏄涔犵殑閲嶈閫斿緞涔嬩竴锛屽湪缂栬瘧涓庨厤缃甇penNI2鐨勮寖渚嬬▼搴忔椂锛屽苟娌℃湁瀹夎鏃跺€欓偅涔堥『鍒╋紝鍦ㄨ繖閲屽垎浜竴涓嬬粡楠屻€?/span>
聽聽聽聽聽 瀹夎鐗堟湰OpenNI 2.1 beta锛屽紑鍙戠幆澧僔S2008銆?/span>
聽聽聽聽聽 渚濈収涓婁竴绡囨暀绋嬪叚瀹夎鎴愬姛鍚庯紝浼氭湁浠ヤ笅鐩綍锛?br>聽聽聽聽聽 鑼冧緥绋嬪簭涓荤洰褰曪細
聽聽聽聽聽 OpenNI2\Samples\
聽聽聽聽聽 鍙墽琛屾枃浠讹細
聽聽聽聽聽 OpenNI2\Samples\Bin
聽聽聽聽聽 鍏叡澶存枃浠讹細
聽聽聽聽聽 OpenNI2\Samples\Common
聽聽聽聽聽 GL搴擄細
聽聽聽聽聽 OpenNI2\Samples\GL
聽聽聽聽聽 濡傛灉鏈塚S2010搴旇鑳界洿鎺ユ墦寮€椤圭洰銆?br>
鏂板缓VS鑼冧緥宸ョ▼
聽聽聽聽聽 鍦ㄨ緝鏃╃殑VS鐗堟湰杩愯锛屽彲浠ュ弬鑰冧互涓嬫楠ゆ潵鏂板缓涓€涓寖渚嬪伐绋嬶細
聽聽聽聽聽 銆?銆戞柊寤篊/C++宸ョ▼
聽聽聽聽聽 銆?銆戦厤缃伐绋嬪睘鎬э紙鍙傝€冩暀绋嬪叚锛?br>聽聽聽聽聽 銆?銆戞嫹璐濇簮浠g爜锛岃繖閲屽皬鏂ゆ嫹璐濅簡SimpleViewer鐨勬簮鐮佸埌宸ョ▼鐩綍銆?br>聽聽聽聽聽 銆?銆戞嫹璐濆叕鍏卞ご鏂囦欢锛歕OpenNI2\Samples\Common\OniSampleUtilities.h鍒板伐绋嬬洰褰曘€?br>聽聽聽聽聽 濡備笅鍥?br>

GLUT搴?/span>
聽聽聽聽聽 銆?銆戝浜嶰penNI2\Samples\GL鐩綍涓嬬殑澶存枃浠剁洰褰昰l涓巊lh
聽聽聽聽聽 澶嶅埗鍒颁互涓嬫枃浠跺す锛?br> 聽聽聽聽聽聽 Visual Studio 6锛歑:\Program Files\Microsoft Visual Studio\VC98\Include\GL
聽聽聽聽聽聽 Visual Studio .net 2003锛歑:\Program Files\Microsoft Visual Studio NET 2003\Vc7\PlatformSDK\Include\gl
聽聽聽聽聽聽 Visual Studio 2005锛歑:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\gl
聽聽聽聽聽 聽Visual Studio 2008锛歑:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl
聽聽聽聽聽 銆?銆戝浜嶰penNI2\Samples\GL鐩綍涓嬬殑*.lib澶嶅埗鍒颁互涓嬫枃浠跺す锛?br> 聽聽聽聽聽聽 Visual Studio 6锛歑:\Program Files\Microsoft Visual Studio\VC98\Lib
聽聽聽聽聽聽 Visual Studio .net 2003锛歑:\Program Files\Microsoft Visual Studio NET 2003\Vc7\PlatformSDK\Lib
聽聽聽聽聽聽 Visual Studio 2005锛歑:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib
聽聽聽聽聽聽 Visual Studio 2008锛歑:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib
聽聽聽聽聽 銆?銆慜penNI2\Samples\GL鐩綍涓嬬殑*.dll澶嶅埗鍒板伐绋嬬洰褰曟垨鑰匔:\Windows\system涓€?br>
涓€浜涘皬鍧?/span>
聽聽聽聽聽 銆?銆戝湪灏忔枻鐨勫伐浣滅幆澧僔S2008涓紝閬囧埌缂栬瘧閿欒锛?br>聽聽聽聽聽 error C2146: syntax error : missing ';' before identifier 'usbVendorId'
聽聽聽聽聽 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
聽聽聽聽聽 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
聽聽聽聽聽 error C2146: syntax error : missing ';' before identifier 'usbProductId'
聽聽聽聽聽 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
聽聽聽聽聽 鍦∣penNI2\Include\Win32\OniPlatformWin32.h涓彂鐜?/span>
//--------------------------------------- // Includes //--------------------------------------- #include <windows.h> #include <stdlib.h> #include <stdio.h> #include <malloc.h> #include <io.h> #include <time.h> #include <assert.h> #include <float.h> #include <crtdbg.h> #if _MSC_VER < 1600 // Visual Studio 2008 and older doesn't have stdint.h... typedef __int64 int64_t; typedef unsigned __int64 uint64_t; #else #include <stdint.h> #endif
聽聽聽聽聽聽 璇ラ敊璇敱浜巙int32_t涓巙int8_t鏈畾涔夐€犳垚锛屽姞鍏ュ畾涔夊悗缂栬瘧鎴愬姛銆?/span>
#if _MSC_VER < 1600 // Visual Studio 2008 and older doesn't have stdint.h... typedef __int64 int64_t; typedef unsigned __int64 uint64_t; typedef unsigned __int32 uint32_t; typedef unsigned __int16 uint16_t; typedef unsigned __int8 uint8_t; #else #include <stdint.h> #endif
聽
聽聽聽聽聽 銆?銆戝湪涓婁竴绡囨暀绋嬩腑锛屽皬鏂や篃璇磋繃锛岃鎷疯礉\OpenNI2\Redist鐩綍涓嬬殑鎵€鏈夋枃浠跺埌VS鐨勫伐浣滅洰褰曪紙濡傛灉涓嶉€氳繃VS鍚姩锛屽垯鎷疯礉鍒扮▼搴忔墽琛岀洰褰曪級
聽聽聽聽聽 鍚﹀垯灏嗕細鐪嬪埌浠ヤ笅閿欒锛?br>聽
----------------------------------
浣滆€咃細灏忔枻锛堥檲蹇伙級
鏂版氮鍥磋剸锛欯灏忔枻闄?/p>
鏈枃灞炰簬鍘熷垱鏂囩珷锛屽闇€杞浇寮曠敤璇锋敞鏄庡師鏂囦綔鑰呭拰閾炬帴锛岃阿璋€?/p>