VR-Forces 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) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
9 
10 namespace makVrv
11 {
17  {
18  public:
21 
23  virtual ~DtPixelBufferObject();
24 
26  DtPixelBufferObject(const DtPixelBufferObject& rhs) = delete;
27 
29  DtPixelBufferObject& operator=(const DtPixelBufferObject& rhs) = delete;
30  public:
32  virtual void downloadFromTexture(unsigned int texture, int w, int h);
33 
38  virtual void getData(void* data);
39 
41  virtual unsigned int bufferSize() const;
42 
44  virtual void setupPixelBufferObjects( int numBuffers );
45 
46  protected:
47  struct PboAndSize
48  {
49  unsigned int pbo = 0;
50  unsigned int size = 0;
51  };
53  std::vector<PboAndSize> myPbos;
54 
55  std::vector<GLsync> myFences;
56 
61  };
62 }
An object which wraps an OpenGL pixel buffer object and allows for asynchronous downloads of texture ...
Definition: DtPixelBufferObject.h:16
int myWriteIndex
Write buffer index.
Definition: DtPixelBufferObject.h:58
voidpf void uLong size
Definition: ioapi.h:39
int myReadIndex
Read buffer index.
Definition: DtPixelBufferObject.h:60
Definition: DtPixelBufferObject.h:47
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
std::vector< PboAndSize > myPbos
Pixel Buffer Object.
Definition: DtPixelBufferObject.h:53
std::vector< GLsync > myFences
Definition: DtPixelBufferObject.h:55

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)