VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFrameBufferObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 #pragma once
8 
10 
11 namespace makVrv
12 {
17  {
18  public:
19 
20  DtFrameBufferObject(unsigned int width, unsigned int height, const char * name);
21  virtual ~DtFrameBufferObject();
22 
24  virtual void resize(unsigned int width, unsigned int height);
25 
27  virtual void attachTexture2D(unsigned int textureId);
28 
30  virtual bool valid();
31 
33  virtual void bind();
34 
36  virtual void unbind();
37 
39  virtual void setDeleteFbosOnDestruction(bool val);
40 
42  virtual bool deleteFbosOnDestruction(void) const;
43 
44  virtual unsigned int fboId(void) const;
45  protected:
46  std::string myName;
48  unsigned int myFrameBuffer;
49  unsigned int myDepthBuffer;
50 
52  };
53 }
std::string myName
Definition: DtFrameBufferObject.h:46
unsigned int myFrameBuffer
Definition: DtFrameBufferObject.h:48
bool myDeleteFbosOnDestruction
Definition: DtFrameBufferObject.h:51
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
binderNoArgs< _Fn > bind(const _Fn &_Func, const _Ty &_Left)
Definition: DtSTLUtilities.h:76
bool myBoundFlag
Definition: DtFrameBufferObject.h:47
An object which wraps an OpenGL frame buffer object and allows rendering To a texture.
Definition: DtFrameBufferObject.h:16
unsigned int myDepthBuffer
Definition: DtFrameBufferObject.h:49

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)