VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
makVrv::DtTextureSubRegionUploadOp Class Reference

GPU op that uploads a sub-region of RGBA8 pixels via glTexSubImage2D.

Pixels are copied at construction so the caller may reuse its source buffer immediately after enqueuing the op.

Inheritance diagram for makVrv::DtTextureSubRegionUploadOp:
Inheritance graph
[legend]

Public Member Functions

 DtTextureSubRegionUploadOp (DtDe &de, std::shared_ptr< GLuint > handle, int x, int y, int w, int h, std::vector< uint8_t > pixels)
 
virtual void execute () override
 
virtual unsigned int textureByteCount () const override
 
- Public Member Functions inherited from makVrv::DtGlTextureOp
 DtGlTextureOp (const std::string &name, DtDe &de)
 
virtual ~DtGlTextureOp ()
 
virtual void execute (DtGpuArenaUploadState &uploadState) override
 
- Public Member Functions inherited from makVrv::DtGpuOperation
 DtGpuOperation (const std::string &name, DtDe &de)
 
virtual ~DtGpuOperation ()
 

Private Attributes

std::shared_ptr< GLuint > myHandle
 
int myX
 
int myY
 
int myW
 
int myH
 
std::vector< uint8_t > myPixels
 

Additional Inherited Members

- Protected Attributes inherited from makVrv::DtGpuOperation
DtDe & myDe
 
const std::string myName
 

Constructor & Destructor Documentation

makVrv::DtTextureSubRegionUploadOp::DtTextureSubRegionUploadOp ( DtDe &  de,
std::shared_ptr< GLuint >  handle,
int  x,
int  y,
int  w,
int  h,
std::vector< uint8_t >  pixels 
)

Construct a sub-region upload op.

Parameters
deEngine context.
handleShared GL handle of an already-allocated texture.
xLeft pixel offset of the region.
yTop pixel offset of the region.
wWidth of the region in pixels.
hHeight of the region in pixels.
pixelsRGBA8 pixel data (w*h*4 bytes), moved into the op.

Member Function Documentation

virtual void makVrv::DtTextureSubRegionUploadOp::execute ( )
overridevirtual

Bind the texture and call glTexSubImage2D with the captured pixels.

Implements makVrv::DtGpuOperation.

virtual unsigned int makVrv::DtTextureSubRegionUploadOp::textureByteCount ( ) const
overridevirtual

Returns w*h*4 bytes credited to the upload state.

Returns
Byte count of the uploaded sub-region.

Reimplemented from makVrv::DtGlTextureOp.

Member Data Documentation

std::shared_ptr<GLuint> makVrv::DtTextureSubRegionUploadOp::myHandle
private
int makVrv::DtTextureSubRegionUploadOp::myX
private
int makVrv::DtTextureSubRegionUploadOp::myY
private
int makVrv::DtTextureSubRegionUploadOp::myW
private
int makVrv::DtTextureSubRegionUploadOp::myH
private
std::vector<uint8_t> makVrv::DtTextureSubRegionUploadOp::myPixels
private

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)