VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPixelBufferObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
8 #pragma once
9 
11 
12 namespace makVrv
13 {
14 
19  {
20  public:
21 
24 
26  void downloadFromTexture(unsigned int texture, int w, int h);
27 
32  void getData(void* data);
33 
35  unsigned int bufferSize() const;
36 
38  virtual void setupPixelBufferObjects( int numBuffers );
39 
40  protected:
42  std::vector<unsigned int> myPbos;
43  std::vector<GLsync> myFences;
45  mutable int myMutableWriteIndex;
46 
48  mutable int myMutableReadIndex;
49 
50  unsigned int myBufferSize;
51  };
52 }
An object which wraps an OpenGL pixel buffer object and allows for asynchronous downloads of texture ...
Definition: DtPixelBufferObject.h:18
unsigned int myBufferSize
Definition: DtPixelBufferObject.h:50
std::vector< unsigned int > myPbos
Pixel Buffer Object.
Definition: DtPixelBufferObject.h:42
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
int myMutableWriteIndex
Write buffer index.
Definition: DtPixelBufferObject.h:45
std::vector< GLsync > myFences
Definition: DtPixelBufferObject.h:43
int myMutableReadIndex
Read buffer index.
Definition: DtPixelBufferObject.h:48

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)