Permalink
Browse files

added accessors for texture references

  • Loading branch information...
1 parent 8c18046 commit 67ea00f181c5b06362174295cdcc016b57f5a49f @elliotwoods elliotwoods committed Oct 14, 2011
Showing with 13 additions and 0 deletions.
  1. +10 −0 src/ofxOpenNI.cpp
  2. +3 −0 src/ofxOpenNI.h
View
@@ -668,6 +668,16 @@ ofPixels & ofxOpenNI::getRGBPixels(){
}
//----------------------------------------
+ofTexture & ofxOpenNI::getDepthTextureReference(){
+ return depthTexture;
+}
+
+//----------------------------------------
+ofTexture & ofxOpenNI::getRGBTextureReference(){
+ return rgbTexture;
+}
+
+//----------------------------------------
float ofxOpenNI::getWidth(){
if(g_bIsDepthOn){
return g_DepthMD.XRes();
View
@@ -23,6 +23,9 @@ class ofxOpenNI: public ofThread{
ofPixels & getDepthPixels();
ofPixels & getRGBPixels();
+
+ ofTexture & getDepthTextureReference();
+ ofTexture & getRGBTextureReference();
float getWidth();
float getHeight();

0 comments on commit 67ea00f

Please sign in to comment.