UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTexelAllocator Class Reference

#include <ParticleCurveTexture.h>

Public Member Functions

 FTexelAllocator (const int32 InTextureSizeX, const int32 InTextureSizeY)
 
 ~FTexelAllocator ()
 
FTexelAllocation Allocate (int32 Size)
 
void Free (FTexelAllocation Allocation)
 

Detailed Description

A free-list based allocator for allocating rows of texels from a texture.

Constructor & Destructor Documentation

◆ FTexelAllocator()

FTexelAllocator::FTexelAllocator ( const int32  InTextureSizeX,
const int32  InTextureSizeY 
)

Constructor.

◆ ~FTexelAllocator()

FTexelAllocator::~FTexelAllocator ( )

Destructor.

Member Function Documentation

◆ Allocate()

FTexelAllocation FTexelAllocator::Allocate ( int32  Size)

Allocates the requested number of texels.

Parameters
Size- The number of texels to allocate.
Returns
the texel allocation.

◆ Free()

void FTexelAllocator::Free ( FTexelAllocation  Allocation)

Frees texels that were previously allocated.

Parameters
Allocation- The texel allocation to free.

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