root / trunk / tbeta / Windows / addons / ofxPS3 / src / ofxPS3.h @ 139
View | Annotate | Download (700 Bytes)
| 1 | #ifndef OFXPS3_H
|
|---|---|
| 2 | #define OFXPS3_H
|
| 3 | |
| 4 | #include "IPS3EyeLib.h" |
| 5 | |
| 6 | class ofxPS3 |
| 7 | {
|
| 8 | public:
|
| 9 | ofxPS3(); |
| 10 | ~ofxPS3(); |
| 11 | void initPS3(int width,int height, int framerate); |
| 12 | void setDeviceID(int id); |
| 13 | int getDeviceID();
|
| 14 | int getCamWidth();
|
| 15 | int getCamHeight();
|
| 16 | void listDevices();
|
| 17 | static int getDeviceCount(); |
| 18 | bool isFrameNew();
|
| 19 | PBYTE getPixels(); |
| 20 | |
| 21 | IPS3EyeLib *pCam; |
| 22 | PBYTE pBuffer; |
| 23 | |
| 24 | private:
|
| 25 | // This acts as a handle to the camera.
|
| 26 | int fcCameraID;
|
| 27 | int camWidth;
|
| 28 | int camHeight;
|
| 29 | // Enumerate the cameras on the bus.
|
| 30 | static unsigned int camNum; |
| 31 | }; |
| 32 | #endif // OFXPS3_H_ |
