![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00007 #pragma once 00008 00009 #include <vrvGraphics/vrvGraphics.h> 00010 00011 namespace makVrv 00012 { 00016 class DT_DLL_VRVGRAPHICS DtFrameBufferObject 00017 { 00018 public: 00019 00020 DtFrameBufferObject(unsigned int width, unsigned int height); 00021 ~DtFrameBufferObject(); 00022 00024 void resize(unsigned int width, unsigned int height); 00025 00027 void attachTexture2D(unsigned int textureId); 00028 00030 bool valid(); 00031 00033 void bind(); 00034 00036 void unbind(); 00037 00038 protected: 00039 bool myBoundFlag; 00040 unsigned int myFrameBuffer; 00041 unsigned int myDepthBuffer; 00042 }; 00043 }