VR-Forces 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) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 #pragma once
8 
11 
12 namespace makVrv
13 {
18  {
19  public:
20 
21  DtFrameBufferObject(unsigned int width, unsigned int height, const char * name);
22  virtual ~DtFrameBufferObject();
23 
25  virtual void resize(unsigned int width, unsigned int height);
26 
28  virtual void attachTexture2D(unsigned int textureId);
29 
31  virtual bool valid();
32 
34  virtual void bind();
35 
37  virtual void unbind();
38 
40  virtual void setDeleteFbosOnDestruction(bool val);
41 
43  virtual bool deleteFbosOnDestruction(void) const;
44 
46  virtual const DtGlFboAndContext& fbo(void) const;
47  protected:
48  std::string myName;
51  unsigned int myDepthBuffer;
52 
54  };
55 }
std::string myName
Definition: DtFrameBufferObject.h:48
std::tuple< unsigned int, const void * > DtGlFboAndContext
an fbo and the context it was created in
Definition: DtGlObjects.h:19
DtGlFboAndContext myFrameBuffer
Definition: DtFrameBufferObject.h:50
Encapsulates an opengl object and the context it was created in.
bool myDeleteFbosOnDestruction
Definition: DtFrameBufferObject.h:53
#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:49
An object which wraps an OpenGL frame buffer object and allows rendering To a texture.
Definition: DtFrameBufferObject.h:17
unsigned int myDepthBuffer
Definition: DtFrameBufferObject.h:51

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)