Eigene Dateien/FlowVis/src/VtimeStep.cpp

Go to the documentation of this file.
00001 #include "VtimeStep.h"
00002 #include "glew.h"
00003 
00004 
00005 void vTimeStep::grabFBOData()
00006 {
00007         if( !mFrameBufferObject )
00008         {
00009                 return;
00010         }
00011 
00012         glEnable(GL_TEXTURE_2D);
00013         glBindTexture(GL_TEXTURE_2D, mFrameBufferObject->getTextureHandle());
00014 
00015         mFrameBufferObjectData.clear();
00016         mFrameBufferObjectData.resize(mFrameBufferObject->getHeight() * mFrameBufferObject->getWidth() * 4);
00017         glPixelStoref(GL_UNPACK_ALIGNMENT, 1);
00018 
00019         glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_FLOAT, &mFrameBufferObjectData[0]);
00020 }

Generated on Mon Jan 21 01:15:16 2008 for FlowVis by  doxygen 1.5.4