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

GPU op that allocates a GL texture name and uninitialised RGBA8 storage.

On execute(): glGenTextures, sets standard atlas texture parameters (NEAREST min, LINEAR mag, CLAMP_TO_EDGE wrap), glTexImage2D with null pixels, then writes the new GL name into the shared handle so a scenegraph face that holds the same shared_ptr can begin binding it on the next frame.

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

Public Member Functions

 DtTextureAllocOp (DtDe &de, std::shared_ptr< GLuint > handle, int width, int height)
 
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
 

Additional Inherited Members

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

Constructor & Destructor Documentation

makVrv::DtTextureAllocOp::DtTextureAllocOp ( DtDe &  de,
std::shared_ptr< GLuint >  handle,
int  width,
int  height 
)

Construct an allocation op.

Parameters
deEngine context (passed to the base).
handleShared GL handle slot. Set to non-zero on successful execute().
widthTexture width in pixels (must be > 0).
heightTexture height in pixels (must be > 0).

Member Function Documentation

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

Allocate the GL texture and write the new name into the shared handle.

Implements makVrv::DtGpuOperation.

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

Allocation does not upload any pixel data.

Returns
Zero.

Reimplemented from makVrv::DtGlTextureOp.

Member Data Documentation

std::shared_ptr<GLuint> makVrv::DtTextureAllocOp::myHandle
private
int makVrv::DtTextureAllocOp::myWidth
private
int makVrv::DtTextureAllocOp::myHeight
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)