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::DtTextureUploadOp Class Reference

GPU op that uploads a full RGBA8 image to an already-allocated GL texture.

On execute(): if the shared handle is non-zero and pixels is non-null, glBindTexture + glTexImage2D copying width*height*4 bytes from pixels. Captures the pixel pointer non-owning at construction time — caller must keep the buffer alive until the arena drains the op (typically the same or next frame).

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

Public Member Functions

 DtTextureUploadOp (DtDe &de, std::shared_ptr< GLuint > handle, int width, int height, const 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 myWidth
 
int myHeight
 
const uint8_t * myPixels
 

Additional Inherited Members

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

Constructor & Destructor Documentation

makVrv::DtTextureUploadOp::DtTextureUploadOp ( DtDe &  de,
std::shared_ptr< GLuint >  handle,
int  width,
int  height,
const uint8_t *  pixels 
)

Construct a full-image upload op.

Parameters
deEngine context.
handleShared GL handle of an already-allocated texture.
widthTexture width in pixels.
heightTexture height in pixels.
pixelsNon-owning pointer to width*height*4 RGBA8 bytes. Must remain valid until the op executes.

Member Function Documentation

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

Bind the texture and upload the full image.

Implements makVrv::DtGpuOperation.

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

Returns width*height*4 bytes credited to the upload state.

Returns
Byte count of the uploaded RGBA8 image.

Reimplemented from makVrv::DtGlTextureOp.

Member Data Documentation

std::shared_ptr<GLuint> makVrv::DtTextureUploadOp::myHandle
private
int makVrv::DtTextureUploadOp::myWidth
private
int makVrv::DtTextureUploadOp::myHeight
private
const uint8_t* makVrv::DtTextureUploadOp::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)