From 0db382c3c4cad0701fe383197e483501bbb3a67a Mon Sep 17 00:00:00 2001 From: josephd Date: Mon, 19 Nov 2012 21:19:29 -0500 Subject: [PATCH] Adding to C++ wrapper a method to access the underlying freenect_device Signed-off-by: Joseph J Dillon josephd --- wrappers/cpp/libfreenect.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrappers/cpp/libfreenect.hpp b/wrappers/cpp/libfreenect.hpp index 0a5f637e..cb1c1d13 100644 --- a/wrappers/cpp/libfreenect.hpp +++ b/wrappers/cpp/libfreenect.hpp @@ -132,6 +132,9 @@ namespace Freenect { freenect_resolution getDepthResolution() { return m_depth_resolution; } + const freenect_device *getDevice() { + return m_dev; + } // Do not call directly even in child virtual void VideoCallback(void *video, uint32_t timestamp) = 0; // Do not call directly even in child