You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
510 B
C++
17 lines
510 B
C++
#pragma once
|
|
|
|
#include <osgViewer/Viewer>
|
|
|
|
class CXJOSGPostDrawCallback:public osg::Camera::DrawCallback
|
|
{
|
|
public:
|
|
CXJOSGPostDrawCallback();
|
|
virtual void operator () (const osg::Camera &camera/*osg::RenderInfo& renderInfo*/) const;
|
|
void SetWriteFlag(bool flag){writeFlag = flag;}
|
|
void SetCamera(osg::Camera* camera){m_camera = camera;}
|
|
void SetFileName(const std::string& filename){m_filename = filename;}
|
|
private:
|
|
mutable bool writeFlag;
|
|
osg::Camera* m_camera;
|
|
std::string m_filename;
|
|
}; |