Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by CHUK_JEBAĆ_POLICJĘ ( 14 years ago )
#include<Windows.h>
#include<WindowsX.h>
#include<NuiApi.h>
#include <d3d10.h>
#include <d3dx10.h>

class Kinect
{
 
public: 
  D3DXVECTOR3 joint_vec0,
     joint_vec1;
  


 //Constructor
 Kinect();
 
 //Destructor
 ~Kinect();

 bool Init();
 bool DrawSkeleton();
 void DrawBone(NUI_SKELETON_POSITION_INDEX joint0, NUI_SKELETON_POSITION_INDEX joint1,int j);

 private:
 
  INuiSensor* m_pNuiSensor;
  NUI_SKELETON_FRAME skeletonFrame; 
 HANDLE m_hNextSkeletonEvent;
 D3DXVECTOR3 joint_vec0,
    joint_vec1;
 D3DXVECTOR3 trans[NUI_SKELETON_POSITION_COUNT];
 

};

 

Revise this Paste

Your Name: Code Language: