Skip to content

builtin/texture_packer.cpp

Functions

Name
std::vector< cv::Rect2f > _getCropRects(std::vector< stbrp_rect > const & rects, std::vector< std::pair< cbuffer, cv::Rect2f > > const & textures, cv::Size atlasSize)
cv::Mat _createAtlas(std::vector< stbrp_rect > const & rects, std::vector< std::pair< cbuffer, cv::Rect2f > > const & textures, cv::Size atlasSize, int const packingInterpolationMethod, std::array< int, 3 > bgColor)
std::vector< stbrp_rect > _getRects(std::vector< std::pair< cbuffer, cv::Rect2f > > const & textures, float scaleFactor, cv::Size atlasSize)

Defines

Name
STB_RECT_PACK_IMPLEMENTATION

Functions Documentation

function _getCropRects

static std::vector< cv::Rect2f > _getCropRects(
    std::vector< stbrp_rect > const & rects,
    std::vector< std::pair< cbuffer, cv::Rect2f > > const & textures,
    cv::Size atlasSize
)

function _createAtlas

static cv::Mat _createAtlas(
    std::vector< stbrp_rect > const & rects,
    std::vector< std::pair< cbuffer, cv::Rect2f > > const & textures,
    cv::Size atlasSize,
    int const packingInterpolationMethod,
    std::array< int, 3 > bgColor
)

function _getRects

static std::vector< stbrp_rect > _getRects(
    std::vector< std::pair< cbuffer, cv::Rect2f > > const & textures,
    float scaleFactor,
    cv::Size atlasSize
)

Macros Documentation

define STB_RECT_PACK_IMPLEMENTATION

#define STB_RECT_PACK_IMPLEMENTATION 

Updated on 2025-07-30 at 23:20:31 +0000