dl
dl::TexturePack::Static类 参考

静态装箱 更多...

#include <dl_texture_pack.h>

Public 成员函数

void SetSize (const Size &size)
 设置箱子大小
 
template<typename T, typename FS, typename F>
void Calc (std::list< T > &all_box, FS get_size, F call_back)
 加入一堆箱子(会重建自身)
 

详细描述

静态装箱

在文件 dl_texture_pack.h123 行定义.

成员函数说明

◆ Calc()

template<typename T, typename FS, typename F>
void dl::TexturePack::Static::Calc ( std::list< T > & all_box,
FS get_size,
F call_back )
inline

加入一堆箱子(会重建自身)

参数
[in]all_box所有箱子
[in]get_size从T获得箱子大小
[in]call_back成功添加回调
注解
成功添加的会从 all_box移除,并执行call_back

在文件 dl_texture_pack.h142 行定义.

◆ SetSize()

void dl::TexturePack::Static::SetSize ( const Size & size)
inline

设置箱子大小

参数
[in]size箱子大小

在文件 dl_texture_pack.h130 行定义.


该类的文档由以下文件生成: