dl
dl 命名空间参考

命名空间

namespace  ABGR
 ABGR专用(请优先使用RGBA,除非你知道你在做什么)
 
namespace  Accumulate
 所有元素操作,返回一个值
 
namespace  Align
 方向、对齐定义
 
namespace  Any
 对容器任意元素的判断
 
namespace  ARGB
 ARGB专用(请优先使用RGBA,除非你知道你在做什么)
 
namespace  BGRA
 BGRA专用(请优先使用RGBA,除非你知道你在做什么)
 
namespace  CodeCvt
 字符编码转换
 
namespace  CodeWriter
 
namespace  ColorDef
 颜色预定义
 
namespace  Cpt
 子组件命名空间
 
namespace  Crypto
 加解密算法
 
namespace  DB
 数据库
 
namespace  Each
 多对多遍历操作
 
namespace  EachAny
 多对多遍历操作
 
namespace  Erase
 移除算法
 
namespace  Every
 多对一操作
 
namespace  File
 文件系统
 
namespace  FileCsv
 csv格式解析
 
namespace  FileXlsx
 xlsx格式解析
 
namespace  Fill
 填充算法(不改变容器大小)
 
namespace  Find
 查找算法
 
namespace  Img
 图像操作
 
namespace  Infoware
 
namespace  Json
 json格式
 
namespace  Mat
 矩阵操作
 
namespace  Math
 2维装箱算法
 
namespace  Memory
 内存相关
 
namespace  Numbers
 类似std::numbers的常数
 
namespace  Numeric
 类似numeric头文件的数值操作
 
namespace  QR
 二维码生成
 
namespace  RGBA
 RGBA专用
 
namespace  Select
 容器选择操作
 
namespace  String
 字符串操作
 
namespace  Sub
 类似子串的操作
 
namespace  TexturePack
 纹理打包算法
 
namespace  TileMap
 瓦片地图
 
namespace  Tool
 常用工具
 
namespace  UI
 UI系统
 
namespace  Win32
 Windows平台接口
 

class  Action
 动作系统对象 更多...
 
class  ActionColor
 变色 更多...
 
class  ActionManager
 动作系统管理器 更多...
 
class  Actor
 3D绘图对象 更多...
 
struct  AndroidData
 安卓平台特有句柄 更多...
 
class  AngelScript
 AngelScirpt脚本语言(低优先级支持,或废弃) 更多...
 
class  Animation
 2D帧动画 更多...
 
struct  AnimationInfo
 动画信息 更多...
 
class  AnyType
 任意类型包装 更多...
 
class  Array
 Array 更多...
 
class  Array2
 二维array 更多...
 
class  Array< T, 0 >
 
class  Array< T, 2 >
 
class  Array< T, 3 >
 
class  Array< T, 4 >
 
class  ArrayEnum
 枚举类数组 更多...
 
class  ArrayS2
 
class  AStar
 A星寻路算法 更多...
 
class  Audio
 音频主控 更多...
 
class  AudioLoader
 音频文件解析器 更多...
 
struct  BoundingBox
 
class  Buffer
 
class  BufferPool
 Buffer池 更多...
 
class  BufferView
 
class  Camera
 3d相机 更多...
 
struct  CharImage
 字符图像数据 更多...
 
struct  CharInfo
 字符信息 更多...
 
struct  CharInfoHash
 
class  Client
 TCP客户端 更多...
 
class  ClientUdp
 UDP客户端 更多...
 
class  Components
 组件容器 更多...
 
class  Coor
 2d坐标系 更多...
 
struct  DeviceInfo
 设备属性 更多...
 
class  DiscreteRange
 离散范围表示 更多...
 
class  Engine
 引擎配置 更多...
 
struct  equal_idx
 
class  Factory
 资源工厂,加载、管理、创建各种资源 更多...
 
class  FactoryImp
 
class  FileIni
 ini文件解析 更多...
 
struct  FileIniLine
 
class  FileIniSection
 
class  FileIniSectionNode
 
class  FileXml
 xml文件处理 更多...
 
class  FileXmlElement
 
class  finally
 RAII清理操作 更多...
 
class  FreeType
 freetype库字体解析 更多...
 
class  GamePad
 手柄 更多...
 
class  GC
 引用计数对象,通过get_gc函数创建 更多...
 
struct  GcRefInfo
 
struct  GLFWmonitor
 
struct  GLFWwindow
 
class  Graphics
 基础图形绘图 更多...
 
struct  hash_idx
 
class  Http
 http协议 更多...
 
class  Input
 键盘、鼠标、手柄等输入检测 更多...
 
class  JsonConfig
 配置代码生成器 更多...
 
class  Language
 语言管理器 更多...
 
struct  Light
 灯光 更多...
 
class  LightDir
 平行光 更多...
 
class  LightDot
 点光源 更多...
 
class  LightSpot
 聚光灯 更多...
 
class  ListMultiThread
 多线程队列 更多...
 
class  ListMultiThreadCache
 多线程队列(带缓冲) 更多...
 
class  Locator
 2d定位器 更多...
 
class  LogLevelSet
 日志打印等级设置 更多...
 
class  LogLimit
 日志打印限制 更多...
 
struct  LogSourceLocation
 
class  LogStackTrack
 日志打开调用堆栈 更多...
 
class  LogSystem
 日志系统 更多...
 
class  LuaScript
 lua脚本语言 更多...
 
struct  Material
 材质(pbr 金属度/粗糙度) 更多...
 
class  Matrix
 矩阵 更多...
 
class  MemoryBank
 连续内存复用 更多...
 
class  MemoryPool
 内存池 更多...
 
class  Mesh
 
struct  MessageType
 
class  Mod
 模组 更多...
 
class  Model
 
struct  ModelAnimation
 
struct  ModelAnimationChannel
 
class  ModelAnimationInstance
 
struct  ModelAnimationSampler
 
class  ModelCache
 
struct  ModelData
 
struct  ModelDrawCall
 
class  ModelLoader
 
struct  ModelMaterial
 
struct  ModelMesh
 
struct  ModelNode
 
struct  ModelNodeRt
 运行时节点树 更多...
 
struct  ModelNodeTransform
 
class  ModelObject
 
struct  ModelPrimitive
 
struct  ModelSkin
 
struct  ModelTriangleRange
 
class  ModManager
 模组管理器 更多...
 
struct  MsgHead
 网络消息头 更多...
 
class  MultiThreadTask
 多线程任务 更多...
 
class  Network
 网络框架 更多...
 
class  NTree
 N叉树 更多...
 
class  ObjectPool
 对象池 更多...
 
class  ObjectPoolEx
 对象池 更多...
 
struct  ParamWindow
 创建窗口参数 更多...
 
struct  ParicleNode
 2d粒子精灵 更多...
 
class  Particle
 2d粒子实体 更多...
 
struct  ParticleConfig
 2d粒子配置 -> 2d粒子配置 更多...
 
struct  ParticleConfigX
 2d粒子配置 更多...
 
class  ParticleSystem
 2d粒子系统 更多...
 
class  Physics
 3d刚体物理系统 更多...
 
class  PoolList
 内存池数据 更多...
 
class  Process
 系统进程 更多...
 
struct  QuadParam
 四边形参数设置 更多...
 
class  Random
 随机数 更多...
 
struct  RenderInfo2D
 绘图信息2d 更多...
 
struct  RenderInfo3D
 绘图信息3d 更多...
 
class  RenderTarget
 渲染目标 更多...
 
class  RigidBody
 刚体 更多...
 
struct  ScriptBlock
 代码块 更多...
 
struct  ScriptControlElse
 
struct  ScriptControlFor
 
struct  ScriptControlIf
 控制语句 更多...
 
struct  ScriptControlIfElse
 
struct  ScriptControlWhile
 
struct  ScriptExpr
 后缀表达式 更多...
 
struct  ScriptExprToken
 表达式token(指向真实变量) 更多...
 
struct  ScriptSegment
 代码段(包含单独作用域) 更多...
 
struct  ScriptSegmentRT
 代码段运行时 更多...
 
class  ScriptSystem
 管理器 更多...
 
struct  ScriptToken
 
struct  ScriptVar
 变量(大小严格控制) 更多...
 
class  ScriptVarSpace
 变量空间 更多...
 
class  ScriptVM
 虚拟机 更多...
 
class  Server
 TCP服务器 更多...
 
class  ServerUdp
 UDP服务器 更多...
 
class  Sound
 音频实例 更多...
 
class  Sprite
 2d绘图精灵 更多...
 
class  Sprite9
 九图精灵 更多...
 
struct  SpriteID
 精灵id 更多...
 
class  SpriteSheet
 n个精灵的组合,用于帧动画或者保存n个精灵,但一次只显示其中一个 更多...
 
class  StreamInput
 二进制输入流 更多...
 
class  StreamOutput
 二进制输出流 更多...
 
struct  string_hash
 
class  StringN
 定长字符串 更多...
 
struct  SwapChainSupportDetails
 
class  System
 系统 更多...
 
class  Table2
 二维表(低优先级) 更多...
 
struct  TcpMessage
 tcp消息 更多...
 
struct  TcpMessageServer
 
class  Tester
 
struct  TesterInstance
 
class  Text
 2d文本绘制对象 更多...
 
struct  TextNode
 单个字符 更多...
 
struct  Texture
 
class  Thread
 线程 更多...
 
class  ThreadManager
 线程管理器 更多...
 
class  Time
 时间 更多...
 
class  TimerRegular
 计时器,t秒触发一次 更多...
 
class  TimerReverse
 互逆计时器,t秒反转一次 更多...
 
class  Transform
 3d坐标系 更多...
 
struct  UbPass
 
struct  UdpMessage
 upd消息 更多...
 
class  UidGenerator
 uid生成器 更多...
 
class  UnorderedMap2
 2维unordered_map 更多...
 
class  Value
 任意类型 更多...
 
class  ValueStruct
 结构体 更多...
 
class  ValueSystem
 管理器,注册类型 更多...
 
struct  ValueTypeInfo
 类型信息 更多...
 
class  ValueVector
 变长数组(由于为空时类型丢失,需要成类) 更多...
 
class  Vector2
 2维vector 更多...
 
class  VectorAny
 任意对象容器(组件) 更多...
 
class  VectorBit
 位容器 更多...
 
class  VectorReuse
 复用容器 更多...
 
struct  Vertex
 3d顶点 更多...
 
struct  Vertex2D
 2d顶点 更多...
 
struct  VertexBone
 3d顶点(带骨骼) 更多...
 
struct  VertexGfx
 顶点 更多...
 
struct  VertexSkybox
 skybox顶点 更多...
 
class  VK
 vulkan底层 更多...
 
struct  WAVEFormat
 wav格式信息 16字节 更多...
 

概念

concept  PopFrontAble
 
concept  IsUnsigned
 
concept  IsSigned
 
concept  IsInteger
 
concept  IsReal
 
concept  IsStandardLayout
 
concept  IsTrivial
 
concept  IsPod
 
concept  IsNotPod
 
concept  IsCopyable
 平凡可复制 唯一可以使用std::memcpy和fstream::write/read的类型
 
concept  IsBase
 是内置数据类型
 
concept  IsPointer
 是指针类型
 
concept  IsEnum
 是枚举类型
 

类型定义

using Color3F = std::array<float, 3>
 
using Point0 = Array<int, 0>
 
using Point1 = Array<int, 1>
 
using Point2 = Array<int, 2>
 
using Point3 = Array<int, 3>
 
using Point4 = Array<int, 4>
 
using Point = Point2
 
using Point0U = Array<unsigned, 0>
 
using Point1U = Array<unsigned, 1>
 
using Point2U = Array<unsigned, 2>
 
using Point3U = Array<unsigned, 3>
 
using Point4U = Array<unsigned, 4>
 
using PointU = Point2U
 
using Size = PointU
 
using Float = float
 
using Position0 = Array<Float, 0>
 
using Position1 = Array<Float, 1>
 
using Position2 = Array<Float, 2>
 
using Position3 = Array<Float, 3>
 
using Position4 = Array<Float, 4>
 
using Position = Position2
 
using Rect = Point4
 
using RectU = Point4U
 
using RectF = Position4
 
using Triangle = Array<Position, 3>
 
using Quad = Array<Position, 4>
 
using FloatTime = float
 
using Color = Array<float, 4>
 
using SizeT = Array<std::size_t, 2>
 < rgba
 
using BufferList = ListMultiThread<Buffer>
 
using UdpMessageList = ListMultiThread<UdpMessage>
 
using TcpMessageList = ListMultiThread<TcpMessage>
 
using Uid = uint64_t
 
using Guid = std::array<uint64_t, 2>
 
using Matrix4 = Matrix<Float, 4, 4>
 
using Matrix3 = Matrix<Float, 3, 3>
 
using ValueTable = std::unordered_map<std::string, Value, string_hash, std::equal_to<>>
 
using gcActor = GC<Actor>
 
using gcAnimation = GC<Animation>
 
using Image = Vector2<uint32_t, unsigned>
 
using UV = Array<float, 2>
 
using gcSprite = GC<Sprite>
 
using gcText = GC<Text>
 
using ScriptIndex = uint32_t
 
using ScriptInt = int64_t
 
using ScriptFloat = double
 
using ScriptString = std::string
 
using ScriptIndexVS = uint8_t
 
using ScriptVector = std::vector<ScriptVar>
 
using ScriptTable = std::unordered_map<std::string, ScriptVar>
 
using ScriptParam = ScriptVector
 
using ScriptFunction = std::function<int(ScriptVM&, const ScriptParam&)>
 
using gcSound = GC<Sound>
 

枚举

enum class  StringType { NORMAL , INTGER , FLOAT }
 
enum class  QueueMode { FIFO , FILO }
 
enum class  DebugView3D {
  NONE , DIFFUSE = 1 , NORMAL , AO ,
  EMISSIVE , METALLIC , ROUGHNESS , PBR_DIFFUSE = 10 ,
  PBR_F , PBR_G , PBR_D , PBR_SPEC ,
  REFLECTION , CASCADE = 20
}
 调试绘图3d 更多...
 
enum class  PadCode {
  UP = 0x0001 , DOWN = 0x0002 , LEFT = 0x0004 , RIGHT = 0x0008 ,
  START = 0x0010 , BACK = 0x0020 , LS = 0x0040 , RS = 0x0080 ,
  LB = 0x0100 , RB = 0x0200 , A = 0x1000 , B = 0x2000 ,
  X = 0x4000 , Y = 0x8000
}
 
enum class  MouseCode {
  UNKNOWN = -1 , LEFT = 0 , RIGHT = 1 , MIDDLE = 2 ,
  KEY4 = 3 , KEY5 = 4 , KEY6 = 5 , KEY7 = 6 ,
  LAST = 7 , MAX_NUM = 8
}
 
enum class  KeyCode : int {
  UNKNOWN = -1 , SPACE = 32 , APOSTROPHE = 39 , COMMA = 44 ,
  MINUS = 45 , PERIOD = 46 , SLASH = 47 , KEY0 = 48 ,
  KEY1 = 49 , KEY2 = 50 , KEY3 = 51 , KEY4 = 52 ,
  KEY5 = 53 , KEY6 = 54 , KEY7 = 55 , KEY8 = 56 ,
  KEY9 = 57 , SEMICOLON = 59 , EQUAL = 61 , A = 65 ,
  B = 66 , C = 67 , D = 68 , E = 69 ,
  F = 70 , G = 71 , H = 72 , I = 73 ,
  J = 74 , K = 75 , L = 76 , M = 77 ,
  N = 78 , O = 79 , P = 80 , Q = 81 ,
  R = 82 , S = 83 , T = 84 , U = 85 ,
  V = 86 , W = 87 , X = 88 , Y = 89 ,
  Z = 90 , LEFT_BRACKET = 91 , BACKSLASH = 92 , RIGHT_BRACKET = 93 ,
  GRAVE_ACCENT = 96 , WORLD_1 = 161 , WORLD_2 = 162 , ESCAPE = 256 ,
  ENTER = 257 , TAB = 258 , BACKSPACE = 259 , INSERT = 260 ,
  DELETE = 261 , RIGHT = 262 , LEFT = 263 , DOWN = 264 ,
  UP = 265 , PAGE_UP = 266 , PAGE_DOWN = 267 , HOME = 268 ,
  END = 269 , CAPS_LOCK = 280 , SCROLL_LOCK = 281 , NUM_LOCK = 282 ,
  PRINT_SCREEN = 283 , PAUSE = 284 , F1 = 290 , F2 = 291 ,
  F3 = 292 , F4 = 293 , F5 = 294 , F6 = 295 ,
  F7 = 296 , F8 = 297 , F9 = 298 , F10 = 299 ,
  F11 = 300 , F12 = 301 , F13 = 302 , F14 = 303 ,
  F15 = 304 , F16 = 305 , F17 = 306 , F18 = 307 ,
  F19 = 308 , F20 = 309 , F21 = 310 , F22 = 311 ,
  F23 = 312 , F24 = 313 , F25 = 314 , KP_0 = 320 ,
  KP_1 = 321 , KP_2 = 322 , KP_3 = 323 , KP_4 = 324 ,
  KP_5 = 325 , KP_6 = 326 , KP_7 = 327 , KP_8 = 328 ,
  KP_9 = 329 , KP_DECIMAL = 330 , KP_DIVIDE = 331 , KP_MULTIPLY = 332 ,
  KP_SUBTRACT = 333 , KP_ADD = 334 , KP_ENTER = 335 , KP_EQUAL = 336 ,
  LEFT_SHIFT = 340 , LEFT_CONTROL = 341 , LEFT_ALT = 342 , LEFT_SUPER = 343 ,
  RIGHT_SHIFT = 344 , RIGHT_CONTROL = 345 , RIGHT_ALT = 346 , RIGHT_SUPER = 347 ,
  MENU = 348 , LAST = MENU , MAX_NUM = 350
}
 
enum class  MeshType { NONE , BOX }
 
enum class  RigidBodyType { STATIC , KINEMATIC , DYNAMIC }
 
enum class  Layout { X , Y , XY , ORIGIN }
 
enum class  ValueType {
  NONE , BOOL , CHAR , UCHAR ,
  SHORT , USHORT , INT , UINT ,
  INT64 , UINT64 , FLOAT , DOUBLE ,
  POINTER , STRUCT , STRING , ARRAY ,
  VECTOR , MAP
}
 实际类型 更多...
 
enum class  AnimationState { NORMAL , PAUSE , STOP }
 
enum class  AnimationEnd { STOP , DISAPPEAR , START }
 
enum class  ParticleState { NORMAL , WAIT , STOP }
 2d粒子状态 更多...
 
enum class  TextParam { NORMAL , OUTLINE , SHADOW , MAX_NUM }
 文本参数 更多...
 
enum class  ScriptVarType : ScriptIndex {
  E_null , E_int , E_float , E_string ,
  E_class , E_vector , E_table , E_function ,
  E_userdata , E_operator , E_max
}
 变量类型(用户层面) 更多...
 
enum class  ScriptOperator : ScriptIndex {
  E_assign , E_add , E_sub , E_mul ,
  E_div , E_comma , E_equal , E_error
}
 操作类型 更多...
 
enum class  ScriptExprTokenType { ESET_variable , ESET_literal , ESET_operator }
 表达式token类型 更多...
 
enum class  ScriptSegmentType : ScriptIndex {
  E_expr , E_if , E_ifelse , E_else ,
  E_while , E_for , E_vector , E_table
}
 
enum class  FullScreenMode { WINDOW , FULL , FULL_WINDOW }
 全屏模式 更多...
 
enum class  WindowDirection { UP , RIGHT , DOWN , LEFT }
 屏幕方向 更多...
 
enum class  SystemStep { START , UPDATE , RENDER , RELEASE }
 运行步骤 更多...
 

函数

template<typename T, size_t N>
constexpr bool operator== (const Array< T, N > &a, const Array< T, N > &b)
 
template<size_t N>
ArrayS2< float, Nsimd_m128u_op (simde__m128(*op)(simde__m128, simde__m128), const ArrayS2< float, N > &a, const Array< float, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, N > & operator+= (ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, Noperator+ (const ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, N > & operator-= (ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, Noperator- (const ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, N > & operator*= (ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, Noperator* (const ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, N > & operator/= (ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<typename T, std::size_t N>
constexpr ArrayS2< T, Noperator/ (const ArrayS2< T, N > &a, const Array< T, 2 > &b)
 
template<size_t M = 1, typename T, size_t N>
constexpr ArrayS2< T, N - MtoShorter (const ArrayS2< T, N > &a)
 
Color createColorRandom (float a=1.0f)
 创建随机颜色
 
constexpr Color createColor (const Color &col, float a=1.0f)
 创建指定透明度颜色
 
constexpr Color createColor (const Position3 &col, float a=1.0f)
 
constexpr Color createColor (const Color3F &rgb, float a=1.0f)
 创建指定透明度颜色
 
constexpr Color createColor (uint32_t dw_rgba)
 创建颜色
 
constexpr Color createColor (uint8_t R, uint8_t G, uint8_t B, uint8_t A)
 创建颜色
 
constexpr uint32_t AssembleColor (std::array< uint8_t, 4 > arr_col)
 通道数组转为 转为uint32_t颜色 例如 00, 11, 22, 33 -> 0x00112233
 
constexpr std::array< uint8_t, 4 > GetColorChannel (uint32_t dw_col)
 获取颜色分量,从左到右
 
constexpr void BlendColorAlpha (Color &bg, const Color &fg)
 alpha混合
 
void colorSaturate (Color &col)
 限制颜色值 到[0, 1]
 
void colorInverse (Color &col)
 反色,不包含透明通道
 
Color colorInverse (const Color &col)
 
bool isColorOpaque (const Color &col)
 不透明(a通道为1)
 
constexpr std::array< uint8_t, 4 > getColorChannel (uint32_t dw_col)
 32位颜色获取所有通道,按书写顺序拆分 例如 0x00112233 -> 00, 11, 22, 33
 
Color colorLerp (float cur)
 颜色插值
 
Color createColorHSV (float h, float s, float v, float a=1.0f)
 从HSV颜色模型创建颜色
 
Color operator""_c (unsigned long long x)
 
Color createColor (std::string_view str)
 创建颜色
 
std::string & operator+= (std::string &a, std::string_view b)
 
std::string operator+ (const std::string &a, std::string_view b)
 
std::string operator+ (std::string_view a, std::string_view b)
 
template<IsBase T>
std::string to_string (T v)
 to_string包装
 
std::string to_string (const std::string &str)
 
template<typename T, size_t N>
std::string to_string (const std::array< T, N > &arr, std::string_view delimiter=", ")
 array通用to_string
 
template<typename T, size_t N>
std::string to_string (const Array< T, N > &arr, std::string_view delimiter=", ")
 
template<typename T, size_t N>
std::string to_string (const ArrayS2< T, N > &arr, std::string_view delimiter=", ")
 
template<typename T>
std::string to_string (const std::vector< T > &vec, std::string_view delimiter=", ")
 vector通用to_string
 
std::string to_string (std::error_code code)
 错误码信息
 
std::string to_string (std::exception &e)
 异常信息
 
std::string to_string (BufferView buf)
 buf转为utf8字符串(不进行检查)
 
std::string to_string (const Buffer &buf)
 
std::string to_string_check (BufferView buf, bool tips=true)
 buf转为utf8字符串(进行检查)
 
std::string to_string_hex (BufferView buf, bool upper=false, bool add_tag=false)
 buf转为16进制字符串
 
template<size_t N>
std::string to_string_hex (const std::array< std::byte, N > &buf, bool upper=false, bool add_tag=false)
 buf转为16进制字符串
 
std::string to_string_auto (BufferView buf, bool add_tag=false)
 buf转为字符串,若不为utf8则转为16进制
 
std::string to_string (const Vector2< std::string > &vec2)
 
template<size_t N>
bool operator== (const StringN< N > &a, std::string_view b)
 
template<typename T1, typename T, std::size_t N>
constexpr Array< T1, NtoArray (const Array< T, N > &a)
 
template<typename T, std::size_t N>
constexpr Array< T, NtoArray (const std::array< T, N > &a)
 
template<typename T, std::size_t N>
constexpr Array< Position::value_type, NtoPosition (const Array< T, N > &a)
 转换到Position,已知长度
 
template<typename T, std::size_t N>
constexpr Array< Point::value_type, NtoPoint (const Array< T, N > &a)
 转换到Point,已知长度
 
template<typename T, std::size_t N, typename T1, typename ... Args>
constexpr void toArrayImp (Array< T, N > &arr, const T1 &a, Args... args)
 
template<typename T, typename T1, typename ... Args>
constexpr Array< T, sizeof...(Args)+1 > toArray (const T1 &a, Args... args)
 
template<typename ... Args>
constexpr Array< Position::value_type, sizeof...(Args)> toPosition (Args... args)
 转换到Position,变长参数
 
template<typename ... Args>
constexpr Array< Point::value_type, sizeof...(Args)> toPoint (Args... args)
 转换到Point,变长参数
 
template<typename T, typename ... Args>
constexpr void CheckPositive (const T &a, Args... args)
 
template<typename ... Args>
constexpr Array< Size::value_type, sizeof...(Args)> toSize (Args... args)
 转换到Size,变长参数
 
template<typename T, size_t N>
constexpr Array< Size::value_type, NtoSize (const Array< T, N > &a)
 
template<typename T, size_t N>
constexpr Array< Size::value_type, NtoSizeNeg2Zero (const Array< T, N > &a)
 转换到Size,出现负数时转为0
 
template<typename T, size_t N>
constexpr Array< PointU::value_type, NtoSizeDefault (const Array< T, N > &a)
 有符号转无符号,直接转换,负数会直接转为大正数
 
template<typename ... Args>
constexpr Array< SizeT::value_type, sizeof...(Args)> toSizeT (Args... args)
 转换到Size,变长参数
 
template<typename T, size_t N>
constexpr Array< SizeT::value_type, NtoSizeT (const Array< T, N > &a)
 
template<typename T, size_t N>
constexpr Array< SizeT::value_type, NtoSizeTNeg2Zero (const Array< T, N > &a)
 转换到Size,出现负数时转为0
 
template<typename T, size_t N>
constexpr Array< SizeT::value_type, NtoSizeTDefault (const Array< T, N > &a)
 有符号转无符号,直接转换,负数会直接转为大正数
 
template<size_t M = 1, typename T, size_t N>
constexpr Array< T, N+MtoLonger (const Array< T, N > &a, const T &v={})
 长度+M
 
template<size_t M = 1, typename T>
constexpr Array< T, M+1 > toLonger (const T &v)
 
template<size_t M = 1, typename T, size_t N>
constexpr Array< T, N - MtoShorter (const Array< T, N > &a)
 长度-M
 
template<typename T>
constexpr std::vector< TtoVector (const T &a, size_t n)
 
constexpr Quad createQuad (const Position &p0, const Position &p1, const Position &p2, const Position &p3)
 创建一个Quad
 
constexpr Quad createQuad (const Position &lt, const Position &rb)
 创建一个Quad,通过左上角和右下角的坐标
 
constexpr Quad createQuad (const Rect &rect)
 
constexpr Quad createQuad (const RectF &rect)
 
Quad createQuad (const Position &p0, const Position &p1, Float d)
 创建一个Quad,通过两点和线条宽度
 
template<IsBase T>
constexpr Quad createQuad (T size, bool center=true)
 创建一个Quad,可选依据大小居中
 
constexpr Quad createQuad (Position size, bool center=true)
 创建一个Quad,可选依据大小居中
 
constexpr Quad createQuad (Size size, bool center=true)
 创建一个Quad,可选依据大小居中
 
Quad createQuad (const QuadParam &param)
 创建一个Quad,根据参数
 
constexpr Rect createRect (const Size &size)
 创建一个Rect,依据大小
 
constexpr Rect createRect (const Position &size)
 
constexpr Rect createRect (const Point &lt, const Size &size)
 创建一个Rect,依据左上角和大小
 
constexpr Rect createRect (const Point &lt, const Point &rb)
 创建一个Rect,依据左上角和右下角
 
constexpr RectU createRectU (const Size &size)
 创建一个RectU,依据大小
 
constexpr RectU createRectU (unsigned size)
 创建一个正方形RectU,依据大小
 
constexpr RectU createRectU (const PointU &lt, const Size &size)
 创建一个Rect,依据左上角和大小
 
constexpr RectF createRectF (const Position &size)
 创建一个RectF,依据大小
 
constexpr RectF createRectF (const Position &lt, const Position &size)
 创建一个RectF,依据左上角和大小
 
constexpr RectF createRectLTRB (const Position &lt, const Position &rb)
 创建一个RectF,依据左上角和右下角
 
constexpr Float operator""_f (long double r)
 
constexpr Float operator""_f (unsigned long long r)
 
constexpr FloatTime operator""_ft (long double r)
 
constexpr FloatTime operator""_ft (unsigned long long r)
 
constexpr std::size_t operator""_zu (unsigned long long i)
 提前支持标准库写法,不过clang必须带下划线
 
template<typename T, typename T1>
constexpr T1 frac (const T &n, const T &d)
 
template<typename T>
Float frac_r (const T &n, const T &d)
 
template<typename T>
FloatTime frac_rt (const T &n, const T &d)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator+= (Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator+ (const Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator-= (Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator- (const Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator*= (Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator* (const Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator/= (Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator/ (const Array< T, N > &a, const Array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator+= (Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator+ (const Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator-= (Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator- (const Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator*= (Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator* (const Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, N > & operator/= (Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator/ (const Array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator- (const Array< T, N > &a)
 
template<typename T, std::size_t N>
constexpr Array< T, Noperator+ (const Array< T, N > &a)
 
template<typename T, std::size_t N>
std::vector< T > & operator+= (std::vector< T > &a, const std::array< T, N > &b)
 
template<typename T, size_t N>
void from_json (const json &j, Array< T, N > &arr)
 
template<typename T, size_t N>
void to_json (json &j, const Array< T, N > &arr)
 
void Output (std::string_view str)
 打印到标准输出、vs、日志文件
 
void log_easy (std::string_view str)
 输出日志
 
void log_pause0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log_test0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log_info0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log_msg0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log_notice0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log_warn0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log_err0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log_damage0 (std::string_view str, DL_SOURCE_LOCATION)
 
void log (std::string_view str, DL_SOURCE_LOCATION)
 以当前设置输出
 
void log_err0 (const std::exception &e, DL_SOURCE_LOCATION)
 特殊类型输出
 
void log_err0 (const std::system_error &e, DL_SOURCE_LOCATION)
 
template<typename T>
constexpr T clamp (const T &x, const T &a, const T &b)
 限制数值到 [a, b]
 
template<typename T>
constexpr T saturate (const T &x)
 限制数值到 [0, 1]
 
template<typename T>
constexpr T is_saturate (const T &x)
 是否数值在[0, 1]
 
template<typename T>
constexpr Array< T, 3 > cross (const Array< T, 3 > &a, const Array< T, 3 > &b)
 向量叉乘
 
template<typename T>
T cast_dynamic (void *p)
 动态类型强转
 
template<typename T, size_t N>
bool limit_bigger (Array< T, N > &a, const Array< T, N > &limit)
 限制到大于某个值,如果修改了原值则返回true
 
template<typename T>
const Tas_const (T &a)
 
template<typename T, typename V>
void erase_head_from_last (T &container, const V &a)
 从容器container中移除 最后 匹配到的a元素 之前(包含a)的所有元素,如果没有匹配到,则什么都不做。
 
template<PopFrontAble C, typename F>
void operate_front (C &container, F func)
 从容器container不断取出第一个元素,执行操作
 
template<typename T>
Tpointer (T &&x)
 查找算法
 
template<typename T>
const Tconstant (T &v)
 加上const修饰
 
template<typename C>
auto find_equal (C &container)
 替换容器元素值
 
template<typename T, typename V>
T insert_per_num (const T &container, V v, size_t per_num)
 隔n个元素就插入1个分割符,首尾不会出现分割符
 
template<typename T, typename V>
T r_insert_per_num (const T &container, V v, size_t per_num)
 从后面往前,隔n个元素就插入1个值,首尾不会出现分割符
 
template<typename T, typename V>
void split (const T &container, V delimiter, std::vector< T > &ret)
 以 元素 分割 容器
 
template<typename T, typename V>
void split_no_empty (const T &container, V delimiter, std::vector< T > &ret)
 以 元素 分割 容器
 
template<typename T>
void split_sub (const T &container, const T &delimiter, std::vector< T > &ret)
 以 子串 分割 容器
 
template<typename T, typename V>
void make_sequence (T &c, const std::initializer_list< std::initializer_list< V > > &vec)
 生成序列
 
template<typename C, typename F>
void for_couple (const C &container, F func, bool ring=false)
 成对遍历
 
template<typename C, typename F>
void for_couple_r (const C &container, F func, bool ring=false)
 反向成对遍历
 
template<IsPointer T, typename FC, typename F>
void for_tree (T root, FC func_child, F func)
 遍历树(使用栈,深度优先)
 
template<typename T, size_t N>
constexpr Tarr_last (const T(&arr)[N])
 返回静态数组长度
 
template<IsSigned T>
constexpr T sign (const T &v)
 返回符号,正数返回1、负数返回-1、0返回0
 
template<size_t N>
consteval uint64_t str_uid (const char(&str)[N])
 固定条件的字符串,生成唯一id
 
template<typename T, size_t M, size_t N>
bool operator== (const Matrix< T, M, N > &a, const Matrix< T, M, N > &b)
 判断相等
 
template<typename T, size_t M, size_t N, size_t P>
Matrix< T, M, Noperator* (const Matrix< T, M, P > &a, const Matrix< T, P, N > &b)
 矩阵乘法
 
template<typename T, size_t M, size_t N>
Array< T, Moperator* (const Matrix< T, M, N > &a, const Array< T, N > &v)
 矩阵 乘 向量
 
BufferView CreateBufferView (const Buffer &buf)
 创建buffer视图(右值不能默认转换)
 
BufferView CreateBufferView (std::string_view str)
 创建buffer视图
 
BufferView CreateBufferView (char *p, size_t i)
 创建buffer视图
 
BufferView CreateBufferView (unsigned char *p, size_t i)
 
BufferView CreateBufferView (BufferView buf, size_t i)
 
template<typename T, size_t N>
BufferView CreateBufferView (const std::array< T, N > &v)
 
template<typename T>
BufferView CreateBufferView (const std::vector< T > &v)
 
template<IsPod T>
BufferView CreateBufferView (const T &a)
 
void BufferAppend (Buffer &buf, BufferView buf_app)
 追加数据
 
Buffer CreateBuffer (BufferView buf)
 创建副本
 
Buffer CreateBufferHex (std::string_view str)
 从16进制字符串创建buffer
 
template<IsPod T>
void BufferCast (BufferView buf, T &a)
 从16进制字符串创建array
 
template<typename T, typename... Args>
auto get_gc (Args &&...args)
 定义一个GC变量(引用计数内存池)
 
ComponentscreateComponents (std::string_view name={})
 
std::string_view lang (std::string_view tag_name)
 返回一个语言配置的字符串,传入 menu.start
 
std::string_view lang_auto (std::string_view tag_name)
 返回一个语言配置的字符串,传入 @开头表示是语言配置,否则原样返回
 
template<typename... Args>
std::string lang (std::string_view tag_name, Args &&...args)
 返回一个语言配置的字符串,传入 menu.start
 
Layout String2Layout (std::string_view str)
 
Locator createLocatorZero ()
 创建空定位器
 
Locator createLocatorX (float dx, std::size_t num=0, float dy=32.0f, Locator::Mode mode=Locator::Mode::DIRECT)
 创建定位器,横向布局
 
Locator createLocatorY (float dy, std::size_t num=0, float dx=32.0f, Locator::Mode mode=Locator::Mode::DIRECT)
 创建定位器,竖向布局
 
ValueType String2ValueType (std::string_view str)
 
ValueTypeInfo String2ValueTypeEx (std::string_view str)
 
template<typename T>
consteval ValueType ClassType2ValueType ()
 
std::string_view to_string (ValueType v)
 类型转字符串
 
std::string to_string (const Value &v)
 值转字符串
 
std::string_view Type2CppType (ValueType v)
 类型转C++类型字符串
 
std::string Type2CppTypeEx (ValueType v0, ValueType v1, size_t length)
 
void to_json (json &j, const AnimationInfo &info)
 
void from_json (const json &j, AnimationInfo &info)
 
std::string to_string (const SpriteID &id)
 
void as_register_base (AngelScript *as)
 
void as_register_ui (AngelScript *as)
 
void lua_register_base (lua_State *L)
 
void lua_register_system (lua_State *L)
 
void lua_register_file (lua_State *L)
 
void lua_register_gfx (lua_State *L)
 
void lua_register_ui (lua_State *L)
 
void lua_register_factory (lua_State *L)
 
void lua_register_sprite (lua_State *L)
 
void lua_register_text (lua_State *L)
 
void lua_register_memory (lua_State *L)
 
void lua_register_json (lua_State *L)
 
void lua_register_other (lua_State *L)
 
void lua_register_image (lua_State *L)
 
void lua_register_platform (lua_State *L)
 
void lua_register_all (lua_State *L)
 
bool IsBaseType (ScriptVarType type)
 是基础类型
 
std::string_view to_string (ScriptOperator op)
 
bool operator== (const ScriptVar &a, const ScriptVar &b)
 
std::string_view to_string (ScriptToken::Type type)
 
std::string to_string (const ScriptExpr &expr)
 
void TestScript (std::string_view str)
 
void TestScriptAll ()
 
int32_t Android_HandleInput (android_app *app)
 
bool Android_ProcessEvent (android_app *app)
 
void Android_OnAppCmd (android_app *app, int32_t cmd)
 
bool glfwInit ()
 
bool glfwWindowShouldClose (void *window)
 
void glfwGetFramebufferSize (void *window, int *w, int *h)
 
const char ** glfwGetRequiredInstanceExtensions (uint32_t *count)
 
void glfwWaitEvents ()
 
void glfwDestroyWindow (void *window)
 
void glfwTerminate ()
 
void glfwSetCursorPos (void *window, int x, int y)
 
void glfwSetWindowShouldClose (void *window, int)
 
void glfwSetClipboardString (void *, const char *)
 
const char * glfwGetClipboardString (void *)
 
void glfwGetWindowSize (void *window, int *w, int *h)
 
void glfwGetMonitorWorkarea (void *monitor, int *x, int *y, int *w, int *h)
 
void glfwSetWindowPos (void *window, int x, int y)
 
void glfwPollEvents ()
 
gcSound snd_play (std::string_view name, size_t group_id=0, float volume=1.0f)
 播放一个音效
 
bool TestJson ()
 
bool TestString ()
 
bool TestHttp ()
 
bool TestMemory ()
 
bool TestFile ()
 
bool TestImage ()
 
void TestAll ()
 

变量

constexpr size_t SIZE_P2 = sizeof(Position2)
 
constexpr size_t SIZE_P3 = sizeof(Position3)
 
constexpr size_t SIZE_P4 = sizeof(Position4)
 
Httpg_http
 
constexpr size_t NUM_MAX_GAME_PAD = 4
 手柄数量上限
 
Inputg_input
 
constexpr std::array< std::string_view, 9 > DL_LOG_SYSTEM_LEVLE_NAME
 
LogSystemg_log
 
constexpr uint8_t NETWORK_MESSAGE_TAG = 0x1e
 
constexpr bool NETWORK_LOG_CLIENT = true
 
constexpr bool NETWORK_LOG_SERVER = true
 
constexpr bool NETWORK_LOG_CLIENT_UDP = true
 
constexpr bool NETWORK_LOG_SERVER_UDP = true
 
constexpr bool NETWORK_LOG_LOW = true
 
Networkg_net
 
constexpr uint8_t UID_STEP = 16
 单步生成时间(毫秒)
 
constexpr uint64_t UID_YEAR_SECOND_X = 366ull * 24ull * 60ull * 60ull * UID_STEP
 一年生成的数量
 
constexpr uint8_t UID_YEAR = 100
 需要支持多少年
 
constexpr uint8_t UID_BIT_USER = 8
 自定义数据位数
 
constexpr uint8_t UID_BIT_TIME = 40
 时间戳占据位数
 
constexpr uint64_t UID_STEP_COUNT = Math::Pow64(2, 64 - UID_BIT_TIME - UID_BIT_USER)
 单步最大数量
 
constexpr uint64_t UID_POW_2_X = Math::Pow64(2, UID_BIT_TIME)
 时间戳占据位数能表示的上限
 
constexpr Position3 AXIS_X = { 1.0f, 0.0f, 0.0f }
 
constexpr Position3 AXIS_Y = { 0.0f, 1.0f, 0.0f }
 
constexpr Position3 AXIS_Z = { 0.0f, 0.0f, 1.0f }
 
constexpr Position3 AXIS_UP = AXIS_Z
 
constexpr Position3 AXIS_FORWARD = AXIS_X
 
Physicsg_physics
 
constexpr size_t BUFFER_SSO_SIZE = 16
 
BufferPool g_bufferPool
 
constexpr size_t SIZE_STREAM_INPUT_CONTAINER_CHECK = 1000000
 
constexpr bool ASTAR_SHOW_LOG = false
 
Languageg_lang
 
ModManagerg_mod
 
constexpr double DL_TESTER_TIME = 0.2
 测试时间
 
ValueSystemg_value
 
const ValueStruct NULL_VALUE_STRUCT = { "null struct" }
 
const ValueVector NULL_VALUE_VECTOR = { ValueType::NONE }
 
ActionManagerg_action
 
constexpr unsigned ANIMATION_FTIME = 125
 
constexpr Size SIZE_SPRITE_DEFAULT = { 32, 32 }
 
constexpr std::string_view STR_PATH_2D = "2d/"
 
constexpr std::string_view STR_PATH_3D = "3d/"
 
Factoryg_factory
 
constexpr size_t NUM_MAX_FONT = 16
 最大加载字体数
 
FreeTypeg_freetype
 
Graphicsg_gfx
 
constexpr uint32_t VERSION_MODEL_CACHE = 2
 
ModelLoaderg_modelLoader
 
ParticleSystemg_particle
 
constexpr unsigned SIZE_TEXTURE_2D = 4096
 请勿随意修改,当你不清楚原理的时候
 
constexpr Size SIZE_TEXTURE_2D_SIZE = { SIZE_TEXTURE_2D, SIZE_TEXTURE_2D }
 
constexpr size_t NUM_MIPMAP_2D = 8
 
constexpr unsigned SIZE_BORDER_SPRITE = 8
 
constexpr unsigned SIZE_BORDER_FONT = 1
 
constexpr unsigned SIZE_TEXTURE_PACK_DH = 2
 
constexpr float Z_DEFAULT = 0.0f
 
constexpr float Z_DEFAULT_WIDNOW_MIN = 0.10f
 
constexpr float Z_DEFAULT_WIDNOW_MAX = 0.50f
 
constexpr float Z_DEFAULT_UI = 0.55f
 
constexpr float Z_DEFAULT_PANEL = 0.60f
 
constexpr float Z_DEFAULT_GAME = 0.75f
 
constexpr float Z_DEFAULT_BG = 0.98f
 
constexpr float Z_DEFAULT_RENDER_TARGET = 0.99f
 
constexpr Float LENGTH_NORMAL = 32.0f
 
constexpr Position POS_ZERO = { 0, 0 }
 
constexpr Position POS_NORMAL = { LENGTH_NORMAL ,LENGTH_NORMAL }
 
constexpr Quad QUAD_DEFAULT_SPRITE = createQuad(POS_ZERO, POS_NORMAL)
 
constexpr Position SIZE_DEFAULT_SPRITE = { LENGTH_NORMAL, LENGTH_NORMAL }
 
AngelScriptg_as
 
LuaScriptg_lua
 
constexpr ScriptIndex SCRIPT_INDEX_RETURN = (ScriptIndex)-1
 
constexpr ScriptIndexVS SCRIPT_INDEX_VS_0 = 0
 
constexpr ScriptIndexVS SCRIPT_INDEX_VS_ITERAL = (ScriptIndexVS)-3
 
constexpr ScriptIndexVS SCRIPT_INDEX_VS_TEMP = (ScriptIndexVS)-2
 
constexpr ScriptIndexVS SCRIPT_INDEX_VS_ERROR = (ScriptIndexVS)-1
 
ScriptSystemg_script
 
constexpr std::string_view SCRIPT_TEST_BASE
 
constexpr std::string_view SCRIPT_TEST_EXPR
 
constexpr std::string_view SCRIPT_TEST_STRING
 
constexpr std::string_view SCRIPT_TEST_ASSERT
 
constexpr std::string_view SCRIPT_TEST_SCOPE
 
constexpr std::string_view SCRIPT_TEST_VECTOR
 
constexpr std::string_view SCRIPT_TEST_FUNCTION
 
AndroidDatag_android
 
constexpr size_t NUM_MAX_FILE = 256
 可加载音频文件上限
 
Audiog_audio
 
Systemg_system
 
ThreadManagerg_thread
 
Timeg_time
 
UI::Managerg_ui
 
UI::SceneManagerg_scene
 
constexpr size_t NUM_BONE = 4
 
constexpr size_t NUM_MAX_PRIMITIVE = 1024
 
constexpr size_t NUM_MAX_MATERIAL = 256
 
constexpr size_t NUM_MAX_BONE = 128
 
constexpr size_t NUM_MAX_JOINT = 256
 
constexpr size_t NUM_MAX_LIGHT_DIR = 3
 
constexpr size_t NUM_MAX_LIGHT_DOT = 10
 
constexpr size_t NUM_MAX_LIGHT_SPOT = 3
 
constexpr size_t NUM_MAX_LIGHT = NUM_MAX_LIGHT_DIR + NUM_MAX_LIGHT_DOT + NUM_MAX_LIGHT_SPOT
 
constexpr size_t NUM_SHADOW_CASCADE = 4
 
constexpr uint32_t SIZE_SHADOW_IMAGE = 2048
 
constexpr VkFormat FORMAT_SHADOW_IMAGE = VK_FORMAT_D32_SFLOAT
 
constexpr size_t NUM_MAX_DRAW_CALL_2D = 100
 
constexpr size_t NUM_MAX_2D_SPRITE = 402400
 
constexpr size_t NUM_2D_INDEX = 6 * NUM_MAX_2D_SPRITE
 
constexpr size_t NUM_START_2D_VERTEX = 4 * 1024
 
constexpr size_t NUM_MAX_ROOT_COOR = 32
 
constexpr unsigned TIME_FREE_TEXTURE_2D = 60 * 1000
 
constexpr size_t NUM_2D_SAMPLER = 3
 
constexpr bool OPEN_SAMPLE_SHADING = false
 
constexpr bool OPEN_FILL_MODE_NON_SOLID = false
 
constexpr bool ENABLE_VALIDATION_LAYERS = true
 
constexpr size_t NUM_MAX_ACTOR = 10240
 
constexpr size_t NUM_GFX_VERTEX = 1024
 
constexpr size_t INDEX_GFX_3D_NORMAL_DOT = 0
 
constexpr size_t INDEX_GFX_3D_NORMAL_LINE = 1
 
constexpr size_t INDEX_GFX_3D_NORMAL_TRIANGLE = 2
 
constexpr size_t INDEX_GFX_2D_NORMAL_DOT = 3
 
constexpr size_t INDEX_GFX_2D_NORMAL_LINE = 4
 
constexpr size_t INDEX_GFX_2D_NORMAL_TRIANGLE = 5
 
constexpr size_t INDEX_GFX_3D_TRANS_DOT = 6
 
constexpr size_t INDEX_GFX_3D_TRANS_LINE = 7
 
constexpr size_t INDEX_GFX_3D_TRANS_TRIANGLE = 8
 
constexpr size_t INDEX_GFX_2D_TRANS_DOT = 9
 
constexpr size_t INDEX_GFX_2D_TRANS_LINE = 10
 
constexpr size_t INDEX_GFX_2D_TRANS_TRIANGLE = 11
 
constexpr size_t NUM_GFX = 12
 
constexpr size_t NUM_GFX_HALF = 6
 
constexpr size_t NUM_GFX_QUAD = 3
 
constexpr bool USE_MAPPED_2D_UBO = false
 
constexpr VkFormat DL_VK_FORMAT_SURFACE = VK_FORMAT_B8G8R8A8_SRGB
 
constexpr VkFormat DL_VK_FORMAT_SRGB = VK_FORMAT_B8G8R8A8_SRGB
 
constexpr VkFormat DL_VK_FORMAT_UNORM = VK_FORMAT_B8G8R8A8_UNORM
 
constexpr VkFormat DL_VK_FORMAT_SRGB_TEXTURE = VK_FORMAT_R8G8B8A8_SRGB
 
constexpr VkFormat DL_VK_FORMAT_UNORM_TEXTURE = VK_FORMAT_R8G8B8A8_UNORM
 
VKg_vk
 

类型定义说明

◆ BufferList

在文件 dl_net.h97 行定义.

◆ Color

using dl::Color = Array<float, 4>

在文件 dl_type_def.h58 行定义.

◆ Color3F

using dl::Color3F = std::array<float, 3>

在文件 dl_color.h24 行定义.

◆ Float

using dl::Float = float

在文件 dl_type_def.h38 行定义.

◆ FloatTime

using dl::FloatTime = float

在文件 dl_type_def.h57 行定义.

◆ gcActor

using dl::gcActor = GC<Actor>

在文件 dl_actor.h93 行定义.

◆ gcAnimation

在文件 dl_animation.h167 行定义.

◆ gcSound

using dl::gcSound = GC<Sound>

在文件 dl_audio.h75 行定义.

◆ gcSprite

在文件 dl_sprite.h305 行定义.

◆ gcText

using dl::gcText = GC<Text>

在文件 dl_text.h370 行定义.

◆ Guid

using dl::Guid = std::array<uint64_t, 2>

在文件 dl_guid.h24 行定义.

◆ Image

using dl::Image = Vector2<uint32_t, unsigned>

在文件 dl_image.h28 行定义.

◆ Matrix3

using dl::Matrix3 = Matrix<Float, 3, 3>

在文件 dl_matrix.h263 行定义.

◆ Matrix4

using dl::Matrix4 = Matrix<Float, 4, 4>

在文件 dl_matrix.h262 行定义.

◆ Point

using dl::Point = Point2

在文件 dl_type_def.h26 行定义.

◆ Point0

using dl::Point0 = Array<int, 0>

在文件 dl_type_def.h21 行定义.

◆ Point0U

using dl::Point0U = Array<unsigned, 0>

在文件 dl_type_def.h29 行定义.

◆ Point1

using dl::Point1 = Array<int, 1>

在文件 dl_type_def.h22 行定义.

◆ Point1U

using dl::Point1U = Array<unsigned, 1>

在文件 dl_type_def.h30 行定义.

◆ Point2

using dl::Point2 = Array<int, 2>

在文件 dl_type_def.h23 行定义.

◆ Point2U

using dl::Point2U = Array<unsigned, 2>

在文件 dl_type_def.h31 行定义.

◆ Point3

using dl::Point3 = Array<int, 3>

在文件 dl_type_def.h24 行定义.

◆ Point3U

using dl::Point3U = Array<unsigned, 3>

在文件 dl_type_def.h32 行定义.

◆ Point4

using dl::Point4 = Array<int, 4>

在文件 dl_type_def.h25 行定义.

◆ Point4U

using dl::Point4U = Array<unsigned, 4>

在文件 dl_type_def.h33 行定义.

◆ PointU

在文件 dl_type_def.h34 行定义.

◆ Position

在文件 dl_type_def.h44 行定义.

◆ Position0

using dl::Position0 = Array<Float, 0>

在文件 dl_type_def.h39 行定义.

◆ Position1

using dl::Position1 = Array<Float, 1>

在文件 dl_type_def.h40 行定义.

◆ Position2

using dl::Position2 = Array<Float, 2>

在文件 dl_type_def.h41 行定义.

◆ Position3

using dl::Position3 = Array<Float, 3>

在文件 dl_type_def.h42 行定义.

◆ Position4

using dl::Position4 = Array<Float, 4>

在文件 dl_type_def.h43 行定义.

◆ Quad

using dl::Quad = Array<Position, 4>

在文件 dl_type_def.h55 行定义.

◆ Rect

using dl::Rect = Point4

在文件 dl_type_def.h50 行定义.

◆ RectF

在文件 dl_type_def.h52 行定义.

◆ RectU

using dl::RectU = Point4U

在文件 dl_type_def.h51 行定义.

◆ ScriptFloat

using dl::ScriptFloat = double

在文件 dl_script.h29 行定义.

◆ ScriptFunction

using dl::ScriptFunction = std::function<int(ScriptVM&, const ScriptParam&)>

在文件 dl_script.h39 行定义.

◆ ScriptIndex

using dl::ScriptIndex = uint32_t

在文件 dl_script.h27 行定义.

◆ ScriptIndexVS

using dl::ScriptIndexVS = uint8_t

在文件 dl_script.h31 行定义.

◆ ScriptInt

using dl::ScriptInt = int64_t

在文件 dl_script.h28 行定义.

◆ ScriptParam

在文件 dl_script.h38 行定义.

◆ ScriptString

using dl::ScriptString = std::string

在文件 dl_script.h30 行定义.

◆ ScriptTable

using dl::ScriptTable = std::unordered_map<std::string, ScriptVar>

在文件 dl_script.h37 行定义.

◆ ScriptVector

using dl::ScriptVector = std::vector<ScriptVar>

在文件 dl_script.h36 行定义.

◆ Size

using dl::Size = PointU

在文件 dl_type_def.h35 行定义.

◆ SizeT

using dl::SizeT = Array<std::size_t, 2>

< rgba

在文件 dl_type_def.h61 行定义.

◆ TcpMessageList

在文件 dl_net.h99 行定义.

◆ Triangle

在文件 dl_type_def.h54 行定义.

◆ UdpMessageList

在文件 dl_net.h98 行定义.

◆ Uid

using dl::Uid = uint64_t

在文件 dl_guid.h23 行定义.

◆ UV

using dl::UV = Array<float, 2>

在文件 dl_sprite.h47 行定义.

◆ ValueTable

using dl::ValueTable = std::unordered_map<std::string, Value, string_hash, std::equal_to<>>

在文件 dl_value.h372 行定义.

枚举类型说明

◆ AnimationEnd

enum class dl::AnimationEnd
strong
枚举值
STOP 

播完后暂停到最后一帧

DISAPPEAR 

播完后不显示

START 

播完后回到起始

在文件 dl_animation.h27 行定义.

◆ AnimationState

enum class dl::AnimationState
strong
枚举值
NORMAL 
PAUSE 
STOP 

在文件 dl_animation.h21 行定义.

◆ DebugView3D

enum class dl::DebugView3D
strong

调试绘图3d

枚举值
NONE 
DIFFUSE 
NORMAL 
AO 
EMISSIVE 
METALLIC 
ROUGHNESS 
PBR_DIFFUSE 
PBR_F 
PBR_G 
PBR_D 
PBR_SPEC 
REFLECTION 
CASCADE 

在文件 dl_type_user.h55 行定义.

◆ FullScreenMode

enum class dl::FullScreenMode
strong

全屏模式

枚举值
WINDOW 
FULL 
FULL_WINDOW 

在文件 dl_system.h25 行定义.

◆ KeyCode

enum class dl::KeyCode : int
strong
枚举值
UNKNOWN 
SPACE 
APOSTROPHE 
COMMA 
MINUS 
PERIOD 
SLASH 
KEY0 
KEY1 
KEY2 
KEY3 
KEY4 
KEY5 
KEY6 
KEY7 
KEY8 
KEY9 
SEMICOLON 
EQUAL 
LEFT_BRACKET 
BACKSLASH 
RIGHT_BRACKET 
GRAVE_ACCENT 
WORLD_1 
WORLD_2 
ESCAPE 
ENTER 
TAB 
BACKSPACE 
INSERT 
DELETE 
RIGHT 
LEFT 
DOWN 
UP 
PAGE_UP 
PAGE_DOWN 
HOME 
END 
CAPS_LOCK 
SCROLL_LOCK 
NUM_LOCK 
PRINT_SCREEN 
PAUSE 
F1 
F2 
F3 
F4 
F5 
F6 
F7 
F8 
F9 
F10 
F11 
F12 
F13 
F14 
F15 
F16 
F17 
F18 
F19 
F20 
F21 
F22 
F23 
F24 
F25 
KP_0 
KP_1 
KP_2 
KP_3 
KP_4 
KP_5 
KP_6 
KP_7 
KP_8 
KP_9 
KP_DECIMAL 
KP_DIVIDE 
KP_MULTIPLY 
KP_SUBTRACT 
KP_ADD 
KP_ENTER 
KP_EQUAL 
LEFT_SHIFT 
LEFT_CONTROL 
LEFT_ALT 
LEFT_SUPER 
RIGHT_SHIFT 
RIGHT_CONTROL 
RIGHT_ALT 
RIGHT_SUPER 
MENU 
LAST 
MAX_NUM 

在文件 dl_input.h81 行定义.

◆ Layout

enum class dl::Layout
strong
枚举值

x轴移动

y轴移动

XY 

xy同时移动

ORIGIN 

不变位置(主要为了简化计算)

在文件 dl_layout.h18 行定义.

◆ MeshType

enum class dl::MeshType
strong
枚举值
NONE 
BOX 

在文件 dl_mesh.h19 行定义.

◆ MouseCode

enum class dl::MouseCode
strong
枚举值
UNKNOWN 
LEFT 
RIGHT 
MIDDLE 
KEY4 
KEY5 
KEY6 
KEY7 
LAST 
MAX_NUM 

在文件 dl_input.h67 行定义.

◆ PadCode

enum class dl::PadCode
strong
枚举值
UP 
DOWN 
LEFT 
RIGHT 
START 
BACK 
LS 
RS 
LB 
RB 

在文件 dl_input.h26 行定义.

◆ ParticleState

enum class dl::ParticleState
strong

2d粒子状态

枚举值
NORMAL 
WAIT 
STOP 

在文件 dl_particle.h56 行定义.

◆ QueueMode

enum class dl::QueueMode
strong
枚举值
FIFO 
FILO 

在文件 dl_type_def.h105 行定义.

◆ RigidBodyType

enum class dl::RigidBodyType
strong
枚举值
STATIC 

静态物体,如地面

KINEMATIC 

运动学物体,如电机

DYNAMIC 

动态物体,如篮球

在文件 dl_rigid_body.h23 行定义.

◆ ScriptExprTokenType

enum class dl::ScriptExprTokenType
strong

表达式token类型

枚举值
ESET_variable 
ESET_literal 
ESET_operator 

在文件 dl_script.h206 行定义.

◆ ScriptOperator

enum class dl::ScriptOperator : ScriptIndex
strong

操作类型

枚举值
E_assign 
E_add 
E_sub 
E_mul 
E_div 
E_comma 
E_equal 
E_error 

在文件 dl_script.h73 行定义.

◆ ScriptSegmentType

enum class dl::ScriptSegmentType : ScriptIndex
strong
枚举值
E_expr 
E_if 
E_ifelse 
E_else 
E_while 
E_for 
E_vector 
E_table 

在文件 dl_script.h319 行定义.

◆ ScriptVarType

enum class dl::ScriptVarType : ScriptIndex
strong

变量类型(用户层面)

枚举值
E_null 
E_int 
E_float 
E_string 
E_class 
E_vector 
E_table 
E_function 
E_userdata 
E_operator 
E_max 

在文件 dl_script.h48 行定义.

◆ StringType

enum class dl::StringType
strong
枚举值
NORMAL 
INTGER 
FLOAT 

在文件 dl_string.h193 行定义.

◆ SystemStep

enum class dl::SystemStep
strong

运行步骤

枚举值
START 
UPDATE 
RENDER 
RELEASE 

在文件 dl_system.h57 行定义.

◆ TextParam

enum class dl::TextParam
strong

文本参数

枚举值
NORMAL 

正常

OUTLINE 

描边

SHADOW 

阴影

MAX_NUM 

在文件 dl_text.h29 行定义.

◆ ValueType

enum class dl::ValueType
strong

实际类型

枚举值
NONE 
BOOL 
CHAR 
UCHAR 
SHORT 
USHORT 
INT 
UINT 
INT64 
UINT64 
FLOAT 
DOUBLE 
POINTER 
STRUCT 
STRING 
ARRAY 
VECTOR 
MAP 

在文件 dl_value.h25 行定义.

◆ WindowDirection

enum class dl::WindowDirection
strong

屏幕方向

枚举值
UP 
RIGHT 
DOWN 
LEFT 

在文件 dl_system.h32 行定义.

函数说明

◆ Android_HandleInput()

int32_t dl::Android_HandleInput ( android_app * app)

◆ Android_OnAppCmd()

void dl::Android_OnAppCmd ( android_app * app,
int32_t cmd )

◆ Android_ProcessEvent()

bool dl::Android_ProcessEvent ( android_app * app)

◆ arr_last()

template<typename T, size_t N>
T & dl::arr_last ( const T(&) arr[N])
constexpr

返回静态数组长度

注解
使用std::size,类似C::a时才需使用自己

返回数组最后一个元素

在文件 dl_algorithm.h641 行定义.

◆ as_const()

template<typename T>
const T & dl::as_const ( T & a)
inline

在文件 dl_algorithm.h108 行定义.

◆ as_register_base()

void dl::as_register_base ( AngelScript * as)

◆ as_register_ui()

void dl::as_register_ui ( AngelScript * as)

◆ AssembleColor()

uint32_t dl::AssembleColor ( std::array< uint8_t, 4 > arr_col)
constexpr

通道数组转为 转为uint32_t颜色 例如 00, 11, 22, 33 -> 0x00112233

在文件 dl_color.h90 行定义.

◆ BlendColorAlpha()

void dl::BlendColorAlpha ( Color & bg,
const Color & fg )
constexpr

alpha混合

在文件 dl_color.h113 行定义.

◆ BufferAppend()

void dl::BufferAppend ( Buffer & buf,
BufferView buf_app )
inline

追加数据

在文件 dl_buffer.h247 行定义.

◆ BufferCast()

template<IsPod T>
void dl::BufferCast ( BufferView buf,
T & a )
inline

从16进制字符串创建array

在文件 dl_buffer.h283 行定义.

◆ cast_dynamic()

template<typename T>
T dl::cast_dynamic ( void * p)
inline

动态类型强转

注解
记得传入指针进行多态

在文件 dl_algorithm.h83 行定义.

◆ CheckPositive()

template<typename T, typename ... Args>
void dl::CheckPositive ( const T & a,
Args... args )
constexpr

在文件 dl_type_convert.h96 行定义.

◆ clamp()

template<typename T>
T dl::clamp ( const T & x,
const T & a,
const T & b )
constexpr

限制数值到 [a, b]

在文件 dl_algorithm.h32 行定义.

◆ ClassType2ValueType()

template<typename T>
ValueType dl::ClassType2ValueType ( )
consteval

在文件 dl_value.h65 行定义.

◆ colorInverse() [1/2]

void dl::colorInverse ( Color & col)
inline

反色,不包含透明通道

在文件 dl_color.h134 行定义.

◆ colorInverse() [2/2]

Color dl::colorInverse ( const Color & col)
inlinenodiscard

在文件 dl_color.h140 行定义.

◆ colorLerp()

Color dl::colorLerp ( float cur)
inline

颜色插值

在文件 dl_color.h172 行定义.

◆ colorSaturate()

void dl::colorSaturate ( Color & col)
inline

限制颜色值 到[0, 1]

在文件 dl_color.h126 行定义.

◆ constant()

template<typename T>
const T & dl::constant ( T & v)
inline

加上const修饰

在文件 dl_algorithm.h217 行定义.

◆ CreateBuffer()

Buffer dl::CreateBuffer ( BufferView buf)
inline

创建副本

在文件 dl_buffer.h256 行定义.

◆ CreateBufferHex()

Buffer dl::CreateBufferHex ( std::string_view str)

从16进制字符串创建buffer

◆ CreateBufferView() [1/8]

BufferView dl::CreateBufferView ( BufferView buf,
size_t i )
inline

在文件 dl_buffer.h225 行定义.

◆ CreateBufferView() [2/8]

BufferView dl::CreateBufferView ( char * p,
size_t i )
inline

创建buffer视图

在文件 dl_buffer.h217 行定义.

◆ CreateBufferView() [3/8]

BufferView dl::CreateBufferView ( const Buffer & buf)
inline

创建buffer视图(右值不能默认转换)

在文件 dl_buffer.h201 行定义.

◆ CreateBufferView() [4/8]

template<typename T, size_t N>
BufferView dl::CreateBufferView ( const std::array< T, N > & v)

在文件 dl_buffer.h230 行定义.

◆ CreateBufferView() [5/8]

template<typename T>
BufferView dl::CreateBufferView ( const std::vector< T > & v)

在文件 dl_buffer.h235 行定义.

◆ CreateBufferView() [6/8]

template<IsPod T>
BufferView dl::CreateBufferView ( const T & a)

在文件 dl_buffer.h241 行定义.

◆ CreateBufferView() [7/8]

BufferView dl::CreateBufferView ( std::string_view str)
inline

创建buffer视图

在文件 dl_buffer.h212 行定义.

◆ CreateBufferView() [8/8]

BufferView dl::CreateBufferView ( unsigned char * p,
size_t i )
inline

在文件 dl_buffer.h221 行定义.

◆ createColor() [1/6]

Color dl::createColor ( const Color & col,
float a = 1.0f )
constexpr

创建指定透明度颜色

参数
[in]col纯色部分
[in]a指定透明度

在文件 dl_color.h46 行定义.

◆ createColor() [2/6]

Color dl::createColor ( const Color3F & rgb,
float a = 1.0f )
constexpr

创建指定透明度颜色

参数
[in]col纯色部分
[in]a指定透明度

在文件 dl_color.h60 行定义.

◆ createColor() [3/6]

Color dl::createColor ( const Position3 & col,
float a = 1.0f )
constexpr

在文件 dl_color.h50 行定义.

◆ createColor() [4/6]

Color dl::createColor ( std::string_view str)
inline

创建颜色

参数
[in]str十六进制RGBA
返回值
传入空、或失败返回白色

在文件 dl_color.h387 行定义.

◆ createColor() [5/6]

Color dl::createColor ( uint32_t dw_rgba)
constexpr

创建颜色

参数
[in]uint32_t颜色值

在文件 dl_color.h69 行定义.

◆ createColor() [6/6]

Color dl::createColor ( uint8_t R,
uint8_t G,
uint8_t B,
uint8_t A )
constexpr

创建颜色

在文件 dl_color.h82 行定义.

◆ createColorHSV()

Color dl::createColorHSV ( float h,
float s,
float v,
float a = 1.0f )
inline

从HSV颜色模型创建颜色

参数
[in]h色相 (0-360)
[in]s饱和度 (0-1)
[in]v亮度 (0-1)
[in]a透明度 (0-1)

在文件 dl_color.h198 行定义.

◆ createColorRandom()

Color dl::createColorRandom ( float a = 1.0f)
inline

创建随机颜色

参数
[in]a指定透明度

在文件 dl_color.h30 行定义.

◆ createComponents()

Components * dl::createComponents ( std::string_view name = {})
inline

在文件 dl_component.h282 行定义.

◆ createLocatorX()

Locator dl::createLocatorX ( float dx,
std::size_t num = 0,
float dy = 32.0f,
Locator::Mode mode = Locator::Mode::DIRECT )
inline

创建定位器,横向布局

参数
[in]dxx轴偏移
[in]num每行多少个
[in]dyy轴偏移

在文件 dl_locator.h159 行定义.

◆ createLocatorY()

Locator dl::createLocatorY ( float dy,
std::size_t num = 0,
float dx = 32.0f,
Locator::Mode mode = Locator::Mode::DIRECT )
inline

创建定位器,竖向布局

参数
[in]dyy轴偏移
[in]num每列多少个
[in]dxx轴偏移

在文件 dl_locator.h175 行定义.

◆ createLocatorZero()

Locator dl::createLocatorZero ( )
inline

创建空定位器

注解
始终返回start位置

在文件 dl_locator.h143 行定义.

◆ createQuad() [1/9]

Quad dl::createQuad ( const Position & lt,
const Position & rb )
inlineconstexpr

创建一个Quad,通过左上角和右下角的坐标

参数
[in]lt左上角坐标
[in]rb右下角坐标

在文件 dl_type_create.h58 行定义.

◆ createQuad() [2/9]

Quad dl::createQuad ( const Position & p0,
const Position & p1,
const Position & p2,
const Position & p3 )
inlineconstexpr

创建一个Quad

在文件 dl_type_create.h48 行定义.

◆ createQuad() [3/9]

Quad dl::createQuad ( const Position & p0,
const Position & p1,
Float d )
inline

创建一个Quad,通过两点和线条宽度

在文件 dl_type_create.h75 行定义.

◆ createQuad() [4/9]

Quad dl::createQuad ( const QuadParam & param)

创建一个Quad,根据参数

参数
[in]size大小

◆ createQuad() [5/9]

Quad dl::createQuad ( const Rect & rect)
inlineconstexpr

在文件 dl_type_create.h63 行定义.

◆ createQuad() [6/9]

Quad dl::createQuad ( const RectF & rect)
inlineconstexpr

在文件 dl_type_create.h68 行定义.

◆ createQuad() [7/9]

Quad dl::createQuad ( Position size,
bool center = true )
inlineconstexpr

创建一个Quad,可选依据大小居中

参数
[in]size大小

在文件 dl_type_create.h113 行定义.

◆ createQuad() [8/9]

Quad dl::createQuad ( Size size,
bool center = true )
constexpr

创建一个Quad,可选依据大小居中

参数
[in]size大小

在文件 dl_type_create.h131 行定义.

◆ createQuad() [9/9]

template<IsBase T>
Quad dl::createQuad ( T size,
bool center = true )
constexpr

创建一个Quad,可选依据大小居中

参数
[in]size大小

在文件 dl_type_create.h93 行定义.

◆ createRect() [1/4]

Rect dl::createRect ( const Point & lt,
const Point & rb )
constexpr

创建一个Rect,依据左上角和右下角

参数
[in]lt左上角
[in]rb右下角

在文件 dl_type_create.h169 行定义.

◆ createRect() [2/4]

Rect dl::createRect ( const Point & lt,
const Size & size )
constexpr

创建一个Rect,依据左上角和大小

参数
[in]lt左上角
[in]size大小

在文件 dl_type_create.h160 行定义.

◆ createRect() [3/4]

Rect dl::createRect ( const Position & size)
constexpr

在文件 dl_type_create.h151 行定义.

◆ createRect() [4/4]

Rect dl::createRect ( const Size & size)
constexpr

创建一个Rect,依据大小

参数
[in]size大小

在文件 dl_type_create.h147 行定义.

◆ createRectF() [1/2]

RectF dl::createRectF ( const Position & lt,
const Position & size )
constexpr

创建一个RectF,依据左上角和大小

参数
[in]lt左上角
[in]size大小

在文件 dl_type_create.h215 行定义.

◆ createRectF() [2/2]

RectF dl::createRectF ( const Position & size)
constexpr

创建一个RectF,依据大小

参数
[in]size大小

在文件 dl_type_create.h206 行定义.

◆ createRectLTRB()

RectF dl::createRectLTRB ( const Position & lt,
const Position & rb )
constexpr

创建一个RectF,依据左上角和右下角

参数
[in]lt左上角
[in]rb右上角
[in]size大小

在文件 dl_type_create.h225 行定义.

◆ createRectU() [1/3]

RectU dl::createRectU ( const PointU & lt,
const Size & size )
constexpr

创建一个Rect,依据左上角和大小

参数
[in]lt左上角
[in]size大小

在文件 dl_type_create.h196 行定义.

◆ createRectU() [2/3]

RectU dl::createRectU ( const Size & size)
constexpr

创建一个RectU,依据大小

参数
[in]size大小

在文件 dl_type_create.h179 行定义.

◆ createRectU() [3/3]

RectU dl::createRectU ( unsigned size)
constexpr

创建一个正方形RectU,依据大小

参数
[in]size大小

在文件 dl_type_create.h187 行定义.

◆ cross()

template<typename T>
Array< T, 3 > dl::cross ( const Array< T, 3 > & a,
const Array< T, 3 > & b )
constexpr

向量叉乘

在文件 dl_algorithm.h67 行定义.

◆ erase_head_from_last()

template<typename T, typename V>
void dl::erase_head_from_last ( T & container,
const V & a )

从容器container中移除 最后 匹配到的a元素 之前(包含a)的所有元素,如果没有匹配到,则什么都不做。

参数
container操作的容器
[in]a要匹配的元素
备注
{"data/image/cat.png", '/'} -> "cat.png"

在文件 dl_algorithm.h126 行定义.

◆ find_equal()

template<typename C>
auto dl::find_equal ( C & container)

替换容器元素值

返回 重复元素位置,没有返回end

在文件 dl_algorithm.h241 行定义.

◆ for_couple()

template<typename C, typename F>
void dl::for_couple ( const C & container,
F func,
bool ring = false )

成对遍历

参数
[in]container容器
[in]func操作函数
[in]ring为真时,末尾元素 与 首元素成对再操作一次
注解
ring为真时,1个元素操作{0, 0},2个元素操作{0, 1}, {1, 0}

在文件 dl_algorithm.h536 行定义.

◆ for_couple_r()

template<typename C, typename F>
void dl::for_couple_r ( const C & container,
F func,
bool ring = false )

反向成对遍历

注解
参考for_couple

在文件 dl_algorithm.h561 行定义.

◆ for_tree()

template<IsPointer T, typename FC, typename F>
void dl::for_tree ( T root,
FC func_child,
F func )

遍历树(使用栈,深度优先)

参数
[in]root根节点
[in]func_child获取子节点函数
[in]func操作节点函数
注解
注意T为指针类型。可以尝试使用NTree类

在文件 dl_algorithm.h590 行定义.

◆ frac()

template<typename T, typename T1>
T1 dl::frac ( const T & n,
const T & d )
constexpr

在文件 dl_type_def.h88 行定义.

◆ frac_r()

template<typename T>
Float dl::frac_r ( const T & n,
const T & d )

在文件 dl_type_def.h94 行定义.

◆ frac_rt()

template<typename T>
FloatTime dl::frac_rt ( const T & n,
const T & d )

在文件 dl_type_def.h99 行定义.

◆ from_json() [1/2]

void dl::from_json ( const json & j,
AnimationInfo & info )
inline

在文件 dl_animation_info.h70 行定义.

◆ from_json() [2/2]

template<typename T, size_t N>
void dl::from_json ( const json & j,
Array< T, N > & arr )

在文件 dl_json.h139 行定义.

◆ get_gc()

template<typename T, typename... Args>
auto dl::get_gc ( Args &&... args)

定义一个GC变量(引用计数内存池)

参数
[in]T类型名
[in]args构造参数

在文件 dl_memory_pool.h316 行定义.

◆ GetColorChannel()

std::array< uint8_t, 4 > dl::GetColorChannel ( uint32_t dw_col)
constexpr

获取颜色分量,从左到右

在文件 dl_color.h101 行定义.

◆ getColorChannel()

std::array< uint8_t, 4 > dl::getColorChannel ( uint32_t dw_col)
constexpr

32位颜色获取所有通道,按书写顺序拆分 例如 0x00112233 -> 00, 11, 22, 33

在文件 dl_color.h159 行定义.

◆ glfwDestroyWindow()

void dl::glfwDestroyWindow ( void * window)
inline

在文件 dl_android.h105 行定义.

◆ glfwGetClipboardString()

const char * dl::glfwGetClipboardString ( void * )
inline

在文件 dl_android.h130 行定义.

◆ glfwGetFramebufferSize()

void dl::glfwGetFramebufferSize ( void * window,
int * w,
int * h )
inline

在文件 dl_android.h84 行定义.

◆ glfwGetMonitorWorkarea()

void dl::glfwGetMonitorWorkarea ( void * monitor,
int * x,
int * y,
int * w,
int * h )
inline

在文件 dl_android.h142 行定义.

◆ glfwGetRequiredInstanceExtensions()

const char ** dl::glfwGetRequiredInstanceExtensions ( uint32_t * count)
inline

在文件 dl_android.h90 行定义.

◆ glfwGetWindowSize()

void dl::glfwGetWindowSize ( void * window,
int * w,
int * h )
inline

在文件 dl_android.h136 行定义.

◆ glfwInit()

bool dl::glfwInit ( )
inline

在文件 dl_android.h77 行定义.

◆ glfwPollEvents()

void dl::glfwPollEvents ( )
inline

在文件 dl_android.h155 行定义.

◆ glfwSetClipboardString()

void dl::glfwSetClipboardString ( void * ,
const char *  )
inline

在文件 dl_android.h125 行定义.

◆ glfwSetCursorPos()

void dl::glfwSetCursorPos ( void * window,
int x,
int y )
inline

在文件 dl_android.h115 行定义.

◆ glfwSetWindowPos()

void dl::glfwSetWindowPos ( void * window,
int x,
int y )
inline

在文件 dl_android.h150 行定义.

◆ glfwSetWindowShouldClose()

void dl::glfwSetWindowShouldClose ( void * window,
int  )
inline

在文件 dl_android.h120 行定义.

◆ glfwTerminate()

void dl::glfwTerminate ( )
inline

在文件 dl_android.h110 行定义.

◆ glfwWaitEvents()

void dl::glfwWaitEvents ( )
inline

在文件 dl_android.h100 行定义.

◆ glfwWindowShouldClose()

bool dl::glfwWindowShouldClose ( void * window)
inline

在文件 dl_android.h79 行定义.

◆ insert_per_num()

template<typename T, typename V>
T dl::insert_per_num ( const T & container,
V v,
size_t per_num )

隔n个元素就插入1个分割符,首尾不会出现分割符

备注
{ "1234567890", ',', 3} -> 123,456,789,0

在文件 dl_algorithm.h262 行定义.

◆ is_saturate()

template<typename T>
T dl::is_saturate ( const T & x)
constexpr

是否数值在[0, 1]

在文件 dl_algorithm.h58 行定义.

◆ IsBaseType()

bool dl::IsBaseType ( ScriptVarType type)
inline

是基础类型

在文件 dl_script.h63 行定义.

◆ isColorOpaque()

bool dl::isColorOpaque ( const Color & col)
inline

不透明(a通道为1)

在文件 dl_color.h150 行定义.

◆ lang() [1/2]

std::string_view dl::lang ( std::string_view tag_name)

返回一个语言配置的字符串,传入 menu.start

返回值
失败返回特定字符串,并输出错误

◆ lang() [2/2]

template<typename... Args>
std::string dl::lang ( std::string_view tag_name,
Args &&... args )

返回一个语言配置的字符串,传入 menu.start

参数
[in]args
返回值
失败返回特定字符串,并输出错误

在文件 dl_language.h126 行定义.

◆ lang_auto()

std::string_view dl::lang_auto ( std::string_view tag_name)

返回一个语言配置的字符串,传入 @开头表示是语言配置,否则原样返回

返回值
失败返回特定字符串,并输出错误

◆ limit_bigger()

template<typename T, size_t N>
bool dl::limit_bigger ( Array< T, N > & a,
const Array< T, N > & limit )

限制到大于某个值,如果修改了原值则返回true

在文件 dl_algorithm.h93 行定义.

◆ log()

void dl::log ( std::string_view str,
DL_SOURCE_LOCATION  )

以当前设置输出

◆ log_damage0()

void dl::log_damage0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ log_easy()

void dl::log_easy ( std::string_view str)
inline

输出日志

在文件 dl_log.h255 行定义.

◆ log_err0() [1/3]

void dl::log_err0 ( const std::exception & e,
DL_SOURCE_LOCATION  )

特殊类型输出

◆ log_err0() [2/3]

void dl::log_err0 ( const std::system_error & e,
DL_SOURCE_LOCATION  )

◆ log_err0() [3/3]

void dl::log_err0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ log_info0()

void dl::log_info0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ log_msg0()

void dl::log_msg0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ log_notice0()

void dl::log_notice0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ log_pause0()

void dl::log_pause0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ log_test0()

void dl::log_test0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ log_warn0()

void dl::log_warn0 ( std::string_view str,
DL_SOURCE_LOCATION  )

◆ lua_register_all()

void dl::lua_register_all ( lua_State * L)

◆ lua_register_base()

void dl::lua_register_base ( lua_State * L)

◆ lua_register_factory()

void dl::lua_register_factory ( lua_State * L)

◆ lua_register_file()

void dl::lua_register_file ( lua_State * L)

◆ lua_register_gfx()

void dl::lua_register_gfx ( lua_State * L)

◆ lua_register_image()

void dl::lua_register_image ( lua_State * L)

◆ lua_register_json()

void dl::lua_register_json ( lua_State * L)

◆ lua_register_memory()

void dl::lua_register_memory ( lua_State * L)

◆ lua_register_other()

void dl::lua_register_other ( lua_State * L)

◆ lua_register_platform()

void dl::lua_register_platform ( lua_State * L)

◆ lua_register_sprite()

void dl::lua_register_sprite ( lua_State * L)

◆ lua_register_system()

void dl::lua_register_system ( lua_State * L)

◆ lua_register_text()

void dl::lua_register_text ( lua_State * L)

◆ lua_register_ui()

void dl::lua_register_ui ( lua_State * L)

◆ make_sequence()

template<typename T, typename V>
void dl::make_sequence ( T & c,
const std::initializer_list< std::initializer_list< V > > & vec )

生成序列

参数
[in]container容器
注解
前闭后开区间

在文件 dl_algorithm.h512 行定义.

◆ operate_front()

template<PopFrontAble C, typename F>
void dl::operate_front ( C & container,
F func )

从容器container不断取出第一个元素,执行操作

参数
container操作的容器
[in]func对元素执行的操作
注解
将容器置空可以中断执行

在文件 dl_algorithm.h143 行定义.

◆ operator""_c()

Color dl::operator""_c ( unsigned long long x)
inline

在文件 dl_color.h233 行定义.

◆ operator""_f() [1/2]

Float dl::operator""_f ( long double r)
inlineconstexpr

在文件 dl_type_def.h63 行定义.

◆ operator""_f() [2/2]

Float dl::operator""_f ( unsigned long long r)
inlineconstexpr

在文件 dl_type_def.h67 行定义.

◆ operator""_ft() [1/2]

FloatTime dl::operator""_ft ( long double r)
inlineconstexpr

在文件 dl_type_def.h71 行定义.

◆ operator""_ft() [2/2]

FloatTime dl::operator""_ft ( unsigned long long r)
inlineconstexpr

在文件 dl_type_def.h75 行定义.

◆ operator""_zu()

std::size_t dl::operator""_zu ( unsigned long long i)
inlineconstexpr

提前支持标准库写法,不过clang必须带下划线

在文件 dl_type_def.h82 行定义.

◆ operator*() [1/5]

template<typename T, std::size_t N>
Array< T, N > dl::operator* ( const Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h60 行定义.

◆ operator*() [2/5]

template<typename T, std::size_t N>
Array< T, N > dl::operator* ( const Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h121 行定义.

◆ operator*() [3/5]

template<typename T, std::size_t N>
ArrayS2< T, N > dl::operator* ( const ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h217 行定义.

◆ operator*() [4/5]

template<typename T, size_t M, size_t N>
Array< T, M > dl::operator* ( const Matrix< T, M, N > & a,
const Array< T, N > & v )

矩阵 乘 向量

注解
不满足交换律,将向量看为 n x 1的矩阵
返回的还是列向量

在文件 dl_matrix.h304 行定义.

◆ operator*() [5/5]

template<typename T, size_t M, size_t N, size_t P>
Matrix< T, M, N > dl::operator* ( const Matrix< T, M, P > & a,
const Matrix< T, P, N > & b )

矩阵乘法

注解
数学定义:A为m X p矩阵,B为p X n矩阵。得C = AB,其中C为m X n矩阵

在文件 dl_matrix.h283 行定义.

◆ operator*=() [1/3]

template<typename T, std::size_t N>
Array< T, N > & dl::operator*= ( Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h52 行定义.

◆ operator*=() [2/3]

template<typename T, std::size_t N>
Array< T, N > & dl::operator*= ( Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h113 行定义.

◆ operator*=() [3/3]

template<typename T, std::size_t N>
ArrayS2< T, N > & dl::operator*= ( ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h202 行定义.

◆ operator+() [1/6]

template<typename T, std::size_t N>
Array< T, N > dl::operator+ ( const Array< T, N > & a)
constexpr

在文件 dl_type_op.h153 行定义.

◆ operator+() [2/6]

template<typename T, std::size_t N>
Array< T, N > dl::operator+ ( const Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h30 行定义.

◆ operator+() [3/6]

template<typename T, std::size_t N>
Array< T, N > dl::operator+ ( const Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h91 行定义.

◆ operator+() [4/6]

template<typename T, std::size_t N>
ArrayS2< T, N > dl::operator+ ( const ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h161 行定义.

◆ operator+() [5/6]

std::string dl::operator+ ( const std::string & a,
std::string_view b )
inline

在文件 dl_string.h59 行定义.

◆ operator+() [6/6]

std::string dl::operator+ ( std::string_view a,
std::string_view b )
inline

在文件 dl_string.h64 行定义.

◆ operator+=() [1/5]

template<typename T, std::size_t N>
Array< T, N > & dl::operator+= ( Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h22 行定义.

◆ operator+=() [2/5]

template<typename T, std::size_t N>
Array< T, N > & dl::operator+= ( Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h83 行定义.

◆ operator+=() [3/5]

template<typename T, std::size_t N>
ArrayS2< T, N > & dl::operator+= ( ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h146 行定义.

◆ operator+=() [4/5]

std::string & dl::operator+= ( std::string & a,
std::string_view b )
inline

在文件 dl_string.h54 行定义.

◆ operator+=() [5/5]

template<typename T, std::size_t N>
std::vector< T > & dl::operator+= ( std::vector< T > & a,
const std::array< T, N > & b )

在文件 dl_type_op.h163 行定义.

◆ operator-() [1/4]

template<typename T, std::size_t N>
Array< T, N > dl::operator- ( const Array< T, N > & a)
constexpr

在文件 dl_type_op.h144 行定义.

◆ operator-() [2/4]

template<typename T, std::size_t N>
Array< T, N > dl::operator- ( const Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h45 行定义.

◆ operator-() [3/4]

template<typename T, std::size_t N>
Array< T, N > dl::operator- ( const Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h106 行定义.

◆ operator-() [4/4]

template<typename T, std::size_t N>
ArrayS2< T, N > dl::operator- ( const ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h189 行定义.

◆ operator-=() [1/3]

template<typename T, std::size_t N>
Array< T, N > & dl::operator-= ( Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h37 行定义.

◆ operator-=() [2/3]

template<typename T, std::size_t N>
Array< T, N > & dl::operator-= ( Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h98 行定义.

◆ operator-=() [3/3]

template<typename T, std::size_t N>
ArrayS2< T, N > & dl::operator-= ( ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h174 行定义.

◆ operator/() [1/3]

template<typename T, std::size_t N>
Array< T, N > dl::operator/ ( const Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h75 行定义.

◆ operator/() [2/3]

template<typename T, std::size_t N>
Array< T, N > dl::operator/ ( const Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h136 行定义.

◆ operator/() [3/3]

template<typename T, std::size_t N>
ArrayS2< T, N > dl::operator/ ( const ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h245 行定义.

◆ operator/=() [1/3]

template<typename T, std::size_t N>
Array< T, N > & dl::operator/= ( Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_type_op.h67 行定义.

◆ operator/=() [2/3]

template<typename T, std::size_t N>
Array< T, N > & dl::operator/= ( Array< T, N > & a,
const T & b )
constexpr

在文件 dl_type_op.h128 行定义.

◆ operator/=() [3/3]

template<typename T, std::size_t N>
ArrayS2< T, N > & dl::operator/= ( ArrayS2< T, N > & a,
const Array< T, 2 > & b )
constexpr

在文件 dl_array_simd.h230 行定义.

◆ operator==() [1/4]

template<typename T, size_t N>
bool dl::operator== ( const Array< T, N > & a,
const Array< T, N > & b )
constexpr

在文件 dl_array.h346 行定义.

◆ operator==() [2/4]

template<typename T, size_t M, size_t N>
bool dl::operator== ( const Matrix< T, M, N > & a,
const Matrix< T, M, N > & b )

判断相等

在文件 dl_matrix.h268 行定义.

◆ operator==() [3/4]

bool dl::operator== ( const ScriptVar & a,
const ScriptVar & b )
inline

在文件 dl_script.h175 行定义.

◆ operator==() [4/4]

template<size_t N>
bool dl::operator== ( const StringN< N > & a,
std::string_view b )

在文件 dl_string_n.h85 行定义.

◆ Output()

void dl::Output ( std::string_view str)

打印到标准输出、vs、日志文件

◆ pointer()

template<typename T>
T * dl::pointer ( T && x)
inline

查找算法

find,返回下标

注解
失败返回-1

find,返回下标

注解
失败返回y == size

取地址,可用于右值

注解
注意对象生命周期

在文件 dl_algorithm.h208 行定义.

◆ r_insert_per_num()

template<typename T, typename V>
T dl::r_insert_per_num ( const T & container,
V v,
size_t per_num )

从后面往前,隔n个元素就插入1个值,首尾不会出现分割符

备注
{ "123456789", ',', 3} -> 123,456,789

在文件 dl_algorithm.h293 行定义.

◆ saturate()

template<typename T>
T dl::saturate ( const T & x)
constexpr

限制数值到 [0, 1]

在文件 dl_algorithm.h45 行定义.

◆ sign()

template<IsSigned T>
T dl::sign ( const T & v)
constexpr

返回符号,正数返回1、负数返回-1、0返回0

在文件 dl_algorithm.h650 行定义.

◆ simd_m128u_op()

template<size_t N>
ArrayS2< float, N > dl::simd_m128u_op ( simde__m128(* op )(simde__m128, simde__m128),
const ArrayS2< float, N > & a,
const Array< float, 2 > & b )

在文件 dl_array_simd.h74 行定义.

◆ snd_play()

gcSound dl::snd_play ( std::string_view name,
size_t group_id = 0,
float volume = 1.0f )
inline

播放一个音效

参数
[in]name名字
[in]group_id分组id
[in]volume音量

在文件 dl_audio.h162 行定义.

◆ split()

template<typename T, typename V>
void dl::split ( const T & container,
V delimiter,
std::vector< T > & ret )

以 元素 分割 容器

参数
[in]container容器
[in]delimiter分割符
[out]ret返回分割之后的
注解
空容器返回空,其余返回数量必定为分割符数量+1
备注
{} -> {}
{1} -> {1}
{1,2,2,5,} -> {1 2 2 5 0}
{,1,2,2,5} -> {0 1 2 2 5}
{,,1,,,2,2,5} -> {0 0 1 0 0 2 2 5}

在文件 dl_algorithm.h333 行定义.

◆ split_no_empty()

template<typename T, typename V>
void dl::split_no_empty ( const T & container,
V delimiter,
std::vector< T > & ret )

以 元素 分割 容器

参数
[in]container容器
[in]delimiter分割符
[out]ret返回分割之后的
注解
不会构造空元素
备注
{1,2,2,5,} -> {1 2 2 5}
{,1,2,2,5} -> {1 2 2 5}
{,,1,,,2,2,5} -> {1 2 2 5}

在文件 dl_algorithm.h390 行定义.

◆ split_sub()

template<typename T>
void dl::split_sub ( const T & container,
const T & delimiter,
std::vector< T > & ret )

以 子串 分割 容器

参数
[in]container容器
[in]delimiter分割符
[out]ret返回分割之后的
备注
"xxABCxxABCxxABC",xx" -> {"", "ABC", "ABC", "ABC"}

在文件 dl_algorithm.h437 行定义.

◆ str_uid()

template<size_t N>
uint64_t dl::str_uid ( const char(&) str[N])
consteval

固定条件的字符串,生成唯一id

参数
[in]str字符数组
注解
最多10个字符,可包含 字母、数字、下划线、点
与base64一致,下划线替换+,点替换/

在文件 dl_algorithm.h669 行定义.

◆ String2Layout()

Layout dl::String2Layout ( std::string_view str)
inline

在文件 dl_layout.h26 行定义.

◆ String2ValueType()

ValueType dl::String2ValueType ( std::string_view str)

◆ String2ValueTypeEx()

ValueTypeInfo dl::String2ValueTypeEx ( std::string_view str)

◆ TestAll()

void dl::TestAll ( )

在文件 dl_test.h227 行定义.

◆ TestFile()

bool dl::TestFile ( )

在文件 dl_test.h155 行定义.

◆ TestHttp()

bool dl::TestHttp ( )

在文件 dl_test.h105 行定义.

◆ TestImage()

bool dl::TestImage ( )

在文件 dl_test.h192 行定义.

◆ TestJson()

bool dl::TestJson ( )

在文件 dl_test.h29 行定义.

◆ TestMemory()

bool dl::TestMemory ( )

在文件 dl_test.h124 行定义.

◆ TestScript()

void dl::TestScript ( std::string_view str)
inline

在文件 dl_script_test.h78 行定义.

◆ TestScriptAll()

void dl::TestScriptAll ( )
inline

在文件 dl_script_test.h86 行定义.

◆ TestString()

bool dl::TestString ( )

在文件 dl_test.h57 行定义.

◆ to_json() [1/2]

void dl::to_json ( json & j,
const AnimationInfo & info )
inline

在文件 dl_animation_info.h44 行定义.

◆ to_json() [2/2]

template<typename T, size_t N>
void dl::to_json ( json & j,
const Array< T, N > & arr )

在文件 dl_json.h148 行定义.

◆ to_string() [1/17]

std::string dl::to_string ( BufferView buf)

buf转为utf8字符串(不进行检查)

◆ to_string() [2/17]

template<typename T, size_t N>
std::string dl::to_string ( const Array< T, N > & arr,
std::string_view delimiter = ", " )

在文件 dl_string.h106 行定义.

◆ to_string() [3/17]

template<typename T, size_t N>
std::string dl::to_string ( const ArrayS2< T, N > & arr,
std::string_view delimiter = ", " )

在文件 dl_string.h119 行定义.

◆ to_string() [4/17]

std::string dl::to_string ( const Buffer & buf)
inline

在文件 dl_string.h164 行定义.

◆ to_string() [5/17]

std::string dl::to_string ( const ScriptExpr & expr)
inline

在文件 dl_script.h234 行定义.

◆ to_string() [6/17]

std::string dl::to_string ( const SpriteID & id)
inline

在文件 dl_sprite.h63 行定义.

◆ to_string() [7/17]

template<typename T, size_t N>
std::string dl::to_string ( const std::array< T, N > & arr,
std::string_view delimiter = ", " )

array通用to_string

在文件 dl_string.h93 行定义.

◆ to_string() [8/17]

std::string dl::to_string ( const std::string & str)
inline

在文件 dl_string.h84 行定义.

◆ to_string() [9/17]

template<typename T>
std::string dl::to_string ( const std::vector< T > & vec,
std::string_view delimiter = ", " )

vector通用to_string

在文件 dl_string.h139 行定义.

◆ to_string() [10/17]

std::string dl::to_string ( const Value & v)

值转字符串

◆ to_string() [11/17]

std::string dl::to_string ( const Vector2< std::string > & vec2)
inline

在文件 dl_string.h1149 行定义.

◆ to_string() [12/17]

std::string_view dl::to_string ( ScriptOperator op)

◆ to_string() [13/17]

std::string_view dl::to_string ( ScriptToken::Type type)

◆ to_string() [14/17]

std::string dl::to_string ( std::error_code code)

错误码信息

◆ to_string() [15/17]

std::string dl::to_string ( std::exception & e)

异常信息

◆ to_string() [16/17]

template<IsBase T>
std::string dl::to_string ( T v)

to_string包装

注解
小数默认两位

在文件 dl_string.h74 行定义.

◆ to_string() [17/17]

std::string_view dl::to_string ( ValueType v)

类型转字符串

◆ to_string_auto()

std::string dl::to_string_auto ( BufferView buf,
bool add_tag = false )

buf转为字符串,若不为utf8则转为16进制

◆ to_string_check()

std::string dl::to_string_check ( BufferView buf,
bool tips = true )

buf转为utf8字符串(进行检查)

◆ to_string_hex() [1/2]

std::string dl::to_string_hex ( BufferView buf,
bool upper = false,
bool add_tag = false )

buf转为16进制字符串

◆ to_string_hex() [2/2]

template<size_t N>
std::string dl::to_string_hex ( const std::array< std::byte, N > & buf,
bool upper = false,
bool add_tag = false )

buf转为16进制字符串

在文件 dl_string.h183 行定义.

◆ toArray() [1/3]

template<typename T1, typename T, std::size_t N>
Array< T1, N > dl::toArray ( const Array< T, N > & a)
constexpr

在文件 dl_type_convert.h24 行定义.

◆ toArray() [2/3]

template<typename T, std::size_t N>
Array< T, N > dl::toArray ( const std::array< T, N > & a)
constexpr

在文件 dl_type_convert.h34 行定义.

◆ toArray() [3/3]

template<typename T, typename T1, typename ... Args>
Array< T, sizeof...(Args)+1 > dl::toArray ( const T1 & a,
Args... args )
constexpr

在文件 dl_type_convert.h70 行定义.

◆ toArrayImp()

template<typename T, std::size_t N, typename T1, typename ... Args>
void dl::toArrayImp ( Array< T, N > & arr,
const T1 & a,
Args... args )
constexpr

在文件 dl_type_convert.h62 行定义.

◆ toLonger() [1/2]

template<size_t M = 1, typename T, size_t N>
Array< T, N+M > dl::toLonger ( const Array< T, N > & a,
const T & v = {} )
constexpr

长度+M

在文件 dl_type_convert.h212 行定义.

◆ toLonger() [2/2]

template<size_t M = 1, typename T>
Array< T, M+1 > dl::toLonger ( const T & v)
constexpr

在文件 dl_type_convert.h222 行定义.

◆ toPoint() [1/2]

template<typename ... Args>
Array< Point::value_type, sizeof...(Args)> dl::toPoint ( Args... args)
constexpr

转换到Point,变长参数

在文件 dl_type_convert.h89 行定义.

◆ toPoint() [2/2]

template<typename T, std::size_t N>
Array< Point::value_type, N > dl::toPoint ( const Array< T, N > & a)
constexpr

转换到Point,已知长度

在文件 dl_type_convert.h55 行定义.

◆ toPosition() [1/2]

template<typename ... Args>
Array< Position::value_type, sizeof...(Args)> dl::toPosition ( Args... args)
constexpr

转换到Position,变长参数

在文件 dl_type_convert.h80 行定义.

◆ toPosition() [2/2]

template<typename T, std::size_t N>
Array< Position::value_type, N > dl::toPosition ( const Array< T, N > & a)
constexpr

转换到Position,已知长度

在文件 dl_type_convert.h47 行定义.

◆ toShorter() [1/2]

template<size_t M = 1, typename T, size_t N>
Array< T, N - M > dl::toShorter ( const Array< T, N > & a)
constexpr

长度-M

在文件 dl_type_convert.h233 行定义.

◆ toShorter() [2/2]

template<size_t M = 1, typename T, size_t N>
ArrayS2< T, N - M > dl::toShorter ( const ArrayS2< T, N > & a)
constexpr

在文件 dl_array_simd.h259 行定义.

◆ toSize() [1/2]

template<typename ... Args>
Array< Size::value_type, sizeof...(Args)> dl::toSize ( Args... args)
constexpr

转换到Size,变长参数

注解
出现负数触发断言

在文件 dl_type_convert.h107 行定义.

◆ toSize() [2/2]

template<typename T, size_t N>
Array< Size::value_type, N > dl::toSize ( const Array< T, N > & a)
constexpr

在文件 dl_type_convert.h113 行定义.

◆ toSizeDefault()

template<typename T, size_t N>
Array< PointU::value_type, N > dl::toSizeDefault ( const Array< T, N > & a)
constexpr

有符号转无符号,直接转换,负数会直接转为大正数

在文件 dl_type_convert.h147 行定义.

◆ toSizeNeg2Zero()

template<typename T, size_t N>
Array< Size::value_type, N > dl::toSizeNeg2Zero ( const Array< T, N > & a)
constexpr

转换到Size,出现负数时转为0

在文件 dl_type_convert.h128 行定义.

◆ toSizeT() [1/2]

template<typename ... Args>
Array< SizeT::value_type, sizeof...(Args)> dl::toSizeT ( Args... args)
constexpr

转换到Size,变长参数

注解
出现负数触发断言

在文件 dl_type_convert.h160 行定义.

◆ toSizeT() [2/2]

template<typename T, size_t N>
Array< SizeT::value_type, N > dl::toSizeT ( const Array< T, N > & a)
constexpr

在文件 dl_type_convert.h166 行定义.

◆ toSizeTDefault()

template<typename T, size_t N>
Array< SizeT::value_type, N > dl::toSizeTDefault ( const Array< T, N > & a)
constexpr

有符号转无符号,直接转换,负数会直接转为大正数

在文件 dl_type_convert.h200 行定义.

◆ toSizeTNeg2Zero()

template<typename T, size_t N>
Array< SizeT::value_type, N > dl::toSizeTNeg2Zero ( const Array< T, N > & a)
constexpr

转换到Size,出现负数时转为0

在文件 dl_type_convert.h181 行定义.

◆ toVector()

template<typename T>
std::vector< T > dl::toVector ( const T & a,
size_t n )
constexpr

在文件 dl_type_convert.h243 行定义.

◆ Type2CppType()

std::string_view dl::Type2CppType ( ValueType v)

类型转C++类型字符串

◆ Type2CppTypeEx()

std::string dl::Type2CppTypeEx ( ValueType v0,
ValueType v1,
size_t length )

变量说明

◆ ANIMATION_FTIME

unsigned dl::ANIMATION_FTIME = 125
constexpr

在文件 dl_animation_info.h20 行定义.

◆ ASTAR_SHOW_LOG

bool dl::ASTAR_SHOW_LOG = false
constexpr

在文件 dl_astar.h29 行定义.

◆ AXIS_FORWARD

Position3 dl::AXIS_FORWARD = AXIS_X
constexpr

在文件 dl_matrix.h34 行定义.

◆ AXIS_UP

Position3 dl::AXIS_UP = AXIS_Z
constexpr

在文件 dl_matrix.h33 行定义.

◆ AXIS_X

Position3 dl::AXIS_X = { 1.0f, 0.0f, 0.0f }
constexpr

在文件 dl_matrix.h29 行定义.

◆ AXIS_Y

Position3 dl::AXIS_Y = { 0.0f, 1.0f, 0.0f }
constexpr

在文件 dl_matrix.h30 行定义.

◆ AXIS_Z

Position3 dl::AXIS_Z = { 0.0f, 0.0f, 1.0f }
constexpr

在文件 dl_matrix.h31 行定义.

◆ BUFFER_SSO_SIZE

size_t dl::BUFFER_SSO_SIZE = 16
constexpr

在文件 dl_buffer.h26 行定义.

◆ DL_LOG_SYSTEM_LEVLE_NAME

std::array<std::string_view, 9> dl::DL_LOG_SYSTEM_LEVLE_NAME
constexpr
初始值:
= {
"damage", "err", "warn", "notice", "msg", "info", "test", "pause",
}

在文件 dl_log.h67 行定义.

◆ DL_TESTER_TIME

double dl::DL_TESTER_TIME = 0.2
constexpr

测试时间

在文件 dl_tester.h18 行定义.

◆ DL_VK_FORMAT_SRGB

VkFormat dl::DL_VK_FORMAT_SRGB = VK_FORMAT_B8G8R8A8_SRGB
constexpr

在文件 dl_vk.h184 行定义.

◆ DL_VK_FORMAT_SRGB_TEXTURE

VkFormat dl::DL_VK_FORMAT_SRGB_TEXTURE = VK_FORMAT_R8G8B8A8_SRGB
constexpr

在文件 dl_vk.h186 行定义.

◆ DL_VK_FORMAT_SURFACE

VkFormat dl::DL_VK_FORMAT_SURFACE = VK_FORMAT_B8G8R8A8_SRGB
constexpr

在文件 dl_vk.h183 行定义.

◆ DL_VK_FORMAT_UNORM

VkFormat dl::DL_VK_FORMAT_UNORM = VK_FORMAT_B8G8R8A8_UNORM
constexpr

在文件 dl_vk.h185 行定义.

◆ DL_VK_FORMAT_UNORM_TEXTURE

VkFormat dl::DL_VK_FORMAT_UNORM_TEXTURE = VK_FORMAT_R8G8B8A8_UNORM
constexpr

在文件 dl_vk.h187 行定义.

◆ ENABLE_VALIDATION_LAYERS

bool dl::ENABLE_VALIDATION_LAYERS = true
constexpr

在文件 dl_vk.h149 行定义.

◆ FORMAT_SHADOW_IMAGE

VkFormat dl::FORMAT_SHADOW_IMAGE = VK_FORMAT_D32_SFLOAT
constexpr

在文件 dl_vk.h119 行定义.

◆ g_action

ActionManager* dl::g_action
extern

◆ g_android

AndroidData* dl::g_android
extern

◆ g_as

AngelScript* dl::g_as
extern

◆ g_audio

Audio* dl::g_audio
extern

◆ g_bufferPool

BufferPool dl::g_bufferPool
extern

◆ g_factory

Factory* dl::g_factory
extern

◆ g_freetype

FreeType* dl::g_freetype
extern

◆ g_gfx

Graphics* dl::g_gfx
extern

◆ g_http

Http* dl::g_http
extern

◆ g_input

Input* dl::g_input
extern

◆ g_lang

Language* dl::g_lang
extern

◆ g_log

LogSystem* dl::g_log
extern

◆ g_lua

LuaScript* dl::g_lua
extern

◆ g_mod

ModManager* dl::g_mod
extern

◆ g_modelLoader

ModelLoader* dl::g_modelLoader
extern

◆ g_net

Network* dl::g_net
extern

◆ g_particle

ParticleSystem* dl::g_particle
extern

◆ g_physics

Physics* dl::g_physics
extern

◆ g_scene

UI::SceneManager* dl::g_scene
extern

◆ g_script

ScriptSystem* dl::g_script
extern

◆ g_system

System* dl::g_system
extern

◆ g_thread

ThreadManager* dl::g_thread
extern

◆ g_time

Time* dl::g_time
extern

◆ g_ui

UI::Manager* dl::g_ui
extern

◆ g_value

ValueSystem* dl::g_value
extern

◆ g_vk

VK* dl::g_vk
extern

◆ INDEX_GFX_2D_NORMAL_DOT

size_t dl::INDEX_GFX_2D_NORMAL_DOT = 3
constexpr

在文件 dl_vk.h166 行定义.

◆ INDEX_GFX_2D_NORMAL_LINE

size_t dl::INDEX_GFX_2D_NORMAL_LINE = 4
constexpr

在文件 dl_vk.h167 行定义.

◆ INDEX_GFX_2D_NORMAL_TRIANGLE

size_t dl::INDEX_GFX_2D_NORMAL_TRIANGLE = 5
constexpr

在文件 dl_vk.h168 行定义.

◆ INDEX_GFX_2D_TRANS_DOT

size_t dl::INDEX_GFX_2D_TRANS_DOT = 9
constexpr

在文件 dl_vk.h172 行定义.

◆ INDEX_GFX_2D_TRANS_LINE

size_t dl::INDEX_GFX_2D_TRANS_LINE = 10
constexpr

在文件 dl_vk.h173 行定义.

◆ INDEX_GFX_2D_TRANS_TRIANGLE

size_t dl::INDEX_GFX_2D_TRANS_TRIANGLE = 11
constexpr

在文件 dl_vk.h174 行定义.

◆ INDEX_GFX_3D_NORMAL_DOT

size_t dl::INDEX_GFX_3D_NORMAL_DOT = 0
constexpr

在文件 dl_vk.h163 行定义.

◆ INDEX_GFX_3D_NORMAL_LINE

size_t dl::INDEX_GFX_3D_NORMAL_LINE = 1
constexpr

在文件 dl_vk.h164 行定义.

◆ INDEX_GFX_3D_NORMAL_TRIANGLE

size_t dl::INDEX_GFX_3D_NORMAL_TRIANGLE = 2
constexpr

在文件 dl_vk.h165 行定义.

◆ INDEX_GFX_3D_TRANS_DOT

size_t dl::INDEX_GFX_3D_TRANS_DOT = 6
constexpr

在文件 dl_vk.h169 行定义.

◆ INDEX_GFX_3D_TRANS_LINE

size_t dl::INDEX_GFX_3D_TRANS_LINE = 7
constexpr

在文件 dl_vk.h170 行定义.

◆ INDEX_GFX_3D_TRANS_TRIANGLE

size_t dl::INDEX_GFX_3D_TRANS_TRIANGLE = 8
constexpr

在文件 dl_vk.h171 行定义.

◆ LENGTH_NORMAL

Float dl::LENGTH_NORMAL = 32.0f
constexpr

在文件 dl_sprite.h41 行定义.

◆ NETWORK_LOG_CLIENT

bool dl::NETWORK_LOG_CLIENT = true
constexpr

在文件 dl_net.h25 行定义.

◆ NETWORK_LOG_CLIENT_UDP

bool dl::NETWORK_LOG_CLIENT_UDP = true
constexpr

在文件 dl_net.h27 行定义.

◆ NETWORK_LOG_LOW

bool dl::NETWORK_LOG_LOW = true
constexpr

在文件 dl_net.h31 行定义.

◆ NETWORK_LOG_SERVER

bool dl::NETWORK_LOG_SERVER = true
constexpr

在文件 dl_net.h26 行定义.

◆ NETWORK_LOG_SERVER_UDP

bool dl::NETWORK_LOG_SERVER_UDP = true
constexpr

在文件 dl_net.h28 行定义.

◆ NETWORK_MESSAGE_TAG

uint8_t dl::NETWORK_MESSAGE_TAG = 0x1e
constexpr

在文件 dl_net.h24 行定义.

◆ NULL_VALUE_STRUCT

const ValueStruct dl::NULL_VALUE_STRUCT = { "null struct" }

在文件 dl_value.h443 行定义.

◆ NULL_VALUE_VECTOR

const ValueVector dl::NULL_VALUE_VECTOR = { ValueType::NONE }

在文件 dl_value.h444 行定义.

◆ NUM_2D_INDEX

size_t dl::NUM_2D_INDEX = 6 * NUM_MAX_2D_SPRITE
constexpr

在文件 dl_vk.h128 行定义.

◆ NUM_2D_SAMPLER

size_t dl::NUM_2D_SAMPLER = 3
constexpr

在文件 dl_vk.h136 行定义.

◆ NUM_BONE

size_t dl::NUM_BONE = 4
constexpr

在文件 dl_vertex.h75 行定义.

◆ NUM_GFX

size_t dl::NUM_GFX = 12
constexpr

在文件 dl_vk.h175 行定义.

◆ NUM_GFX_HALF

size_t dl::NUM_GFX_HALF = 6
constexpr

在文件 dl_vk.h176 行定义.

◆ NUM_GFX_QUAD

size_t dl::NUM_GFX_QUAD = 3
constexpr

在文件 dl_vk.h177 行定义.

◆ NUM_GFX_VERTEX

size_t dl::NUM_GFX_VERTEX = 1024
constexpr

在文件 dl_vk.h160 行定义.

◆ NUM_MAX_2D_SPRITE

size_t dl::NUM_MAX_2D_SPRITE = 402400
constexpr

在文件 dl_vk.h126 行定义.

◆ NUM_MAX_ACTOR

size_t dl::NUM_MAX_ACTOR = 10240
constexpr

在文件 dl_vk.h157 行定义.

◆ NUM_MAX_BONE

size_t dl::NUM_MAX_BONE = 128
constexpr

在文件 dl_vk.h103 行定义.

◆ NUM_MAX_DRAW_CALL_2D

size_t dl::NUM_MAX_DRAW_CALL_2D = 100
constexpr

在文件 dl_vk.h124 行定义.

◆ NUM_MAX_FILE

size_t dl::NUM_MAX_FILE = 256
constexpr

可加载音频文件上限

在文件 dl_audio.h30 行定义.

◆ NUM_MAX_FONT

size_t dl::NUM_MAX_FONT = 16
constexpr

最大加载字体数

在文件 dl_free_type.h32 行定义.

◆ NUM_MAX_GAME_PAD

size_t dl::NUM_MAX_GAME_PAD = 4
constexpr

手柄数量上限

在文件 dl_input.h24 行定义.

◆ NUM_MAX_JOINT

size_t dl::NUM_MAX_JOINT = 256
constexpr

在文件 dl_vk.h105 行定义.

◆ NUM_MAX_LIGHT

size_t dl::NUM_MAX_LIGHT = NUM_MAX_LIGHT_DIR + NUM_MAX_LIGHT_DOT + NUM_MAX_LIGHT_SPOT
constexpr

在文件 dl_vk.h113 行定义.

◆ NUM_MAX_LIGHT_DIR

size_t dl::NUM_MAX_LIGHT_DIR = 3
constexpr

在文件 dl_vk.h107 行定义.

◆ NUM_MAX_LIGHT_DOT

size_t dl::NUM_MAX_LIGHT_DOT = 10
constexpr

在文件 dl_vk.h109 行定义.

◆ NUM_MAX_LIGHT_SPOT

size_t dl::NUM_MAX_LIGHT_SPOT = 3
constexpr

在文件 dl_vk.h111 行定义.

◆ NUM_MAX_MATERIAL

size_t dl::NUM_MAX_MATERIAL = 256
constexpr

在文件 dl_vk.h101 行定义.

◆ NUM_MAX_PRIMITIVE

size_t dl::NUM_MAX_PRIMITIVE = 1024
constexpr

在文件 dl_vk.h99 行定义.

◆ NUM_MAX_ROOT_COOR

size_t dl::NUM_MAX_ROOT_COOR = 32
constexpr

在文件 dl_vk.h132 行定义.

◆ NUM_MIPMAP_2D

size_t dl::NUM_MIPMAP_2D = 8
constexpr

在文件 dl_render_def.h20 行定义.

◆ NUM_SHADOW_CASCADE

size_t dl::NUM_SHADOW_CASCADE = 4
constexpr

在文件 dl_vk.h115 行定义.

◆ NUM_START_2D_VERTEX

size_t dl::NUM_START_2D_VERTEX = 4 * 1024
constexpr

在文件 dl_vk.h130 行定义.

◆ OPEN_FILL_MODE_NON_SOLID

bool dl::OPEN_FILL_MODE_NON_SOLID = false
constexpr

在文件 dl_vk.h141 行定义.

◆ OPEN_SAMPLE_SHADING

bool dl::OPEN_SAMPLE_SHADING = false
constexpr

在文件 dl_vk.h139 行定义.

◆ POS_NORMAL

Position dl::POS_NORMAL = { LENGTH_NORMAL ,LENGTH_NORMAL }
constexpr

在文件 dl_sprite.h43 行定义.

◆ POS_ZERO

Position dl::POS_ZERO = { 0, 0 }
constexpr

在文件 dl_sprite.h42 行定义.

◆ QUAD_DEFAULT_SPRITE

Quad dl::QUAD_DEFAULT_SPRITE = createQuad(POS_ZERO, POS_NORMAL)
constexpr

在文件 dl_sprite.h44 行定义.

◆ SCRIPT_INDEX_RETURN

ScriptIndex dl::SCRIPT_INDEX_RETURN = (ScriptIndex)-1
constexpr

在文件 dl_script.h41 行定义.

◆ SCRIPT_INDEX_VS_0

ScriptIndexVS dl::SCRIPT_INDEX_VS_0 = 0
constexpr

在文件 dl_script.h42 行定义.

◆ SCRIPT_INDEX_VS_ERROR

ScriptIndexVS dl::SCRIPT_INDEX_VS_ERROR = (ScriptIndexVS)-1
constexpr

在文件 dl_script.h45 行定义.

◆ SCRIPT_INDEX_VS_ITERAL

ScriptIndexVS dl::SCRIPT_INDEX_VS_ITERAL = (ScriptIndexVS)-3
constexpr

在文件 dl_script.h43 行定义.

◆ SCRIPT_INDEX_VS_TEMP

ScriptIndexVS dl::SCRIPT_INDEX_VS_TEMP = (ScriptIndexVS)-2
constexpr

在文件 dl_script.h44 行定义.

◆ SCRIPT_TEST_ASSERT

std::string_view dl::SCRIPT_TEST_ASSERT
constexpr
初始值:
= R"(
a = 1
assert a == 1
assert a == 0
)"

在文件 dl_script_test.h39 行定义.

◆ SCRIPT_TEST_BASE

std::string_view dl::SCRIPT_TEST_BASE
constexpr
初始值:
= R"(
print "hello dl!"
)"

在文件 dl_script_test.h18 行定义.

◆ SCRIPT_TEST_EXPR

std::string_view dl::SCRIPT_TEST_EXPR
constexpr
初始值:
= R"(
a = 0
b = 2
c = 4
d = 6
print a + (b - c) * d / 3
print "结果应该为-4"
)"

在文件 dl_script_test.h22 行定义.

◆ SCRIPT_TEST_FUNCTION

std::string_view dl::SCRIPT_TEST_FUNCTION
constexpr
初始值:
= R"(
function add(a, b)
{
return a + b
}
print(add(2, 3))
)"

在文件 dl_script_test.h70 行定义.

◆ SCRIPT_TEST_SCOPE

std::string_view dl::SCRIPT_TEST_SCOPE
constexpr
初始值:
= R"(
a = 1
{
b = 2
print a
print b
print c
}
{
c = 3
print a
print b
print c
}
print a
print b
print c
)"

在文件 dl_script_test.h45 行定义.

◆ SCRIPT_TEST_STRING

std::string_view dl::SCRIPT_TEST_STRING
constexpr
初始值:
= R"(
a = "hello"
b = "dl"
c = a + b
print a+" "+b+"!"
print c
)"

在文件 dl_script_test.h31 行定义.

◆ SCRIPT_TEST_VECTOR

std::string_view dl::SCRIPT_TEST_VECTOR
constexpr
初始值:
= R"(
a = 13
vec = { 1,3, 5, 7 +1 ,9 *2,11}
print vec
)"

在文件 dl_script_test.h64 行定义.

◆ SIZE_BORDER_FONT

unsigned dl::SIZE_BORDER_FONT = 1
constexpr

在文件 dl_render_def.h22 行定义.

◆ SIZE_BORDER_SPRITE

unsigned dl::SIZE_BORDER_SPRITE = 8
constexpr

在文件 dl_render_def.h21 行定义.

◆ SIZE_DEFAULT_SPRITE

Position dl::SIZE_DEFAULT_SPRITE = { LENGTH_NORMAL, LENGTH_NORMAL }
constexpr

在文件 dl_sprite.h45 行定义.

◆ SIZE_P2

size_t dl::SIZE_P2 = sizeof(Position2)
constexpr

在文件 dl_type_def.h46 行定义.

◆ SIZE_P3

size_t dl::SIZE_P3 = sizeof(Position3)
constexpr

在文件 dl_type_def.h47 行定义.

◆ SIZE_P4

size_t dl::SIZE_P4 = sizeof(Position4)
constexpr

在文件 dl_type_def.h48 行定义.

◆ SIZE_SHADOW_IMAGE

uint32_t dl::SIZE_SHADOW_IMAGE = 2048
constexpr

在文件 dl_vk.h117 行定义.

◆ SIZE_SPRITE_DEFAULT

Size dl::SIZE_SPRITE_DEFAULT = { 32, 32 }
constexpr

在文件 dl_factory.h33 行定义.

◆ SIZE_STREAM_INPUT_CONTAINER_CHECK

size_t dl::SIZE_STREAM_INPUT_CONTAINER_CHECK = 1000000
constexpr

在文件 dl_stream_input.h28 行定义.

◆ SIZE_TEXTURE_2D

unsigned dl::SIZE_TEXTURE_2D = 4096
constexpr

请勿随意修改,当你不清楚原理的时候

在文件 dl_render_def.h18 行定义.

◆ SIZE_TEXTURE_2D_SIZE

Size dl::SIZE_TEXTURE_2D_SIZE = { SIZE_TEXTURE_2D, SIZE_TEXTURE_2D }
constexpr

在文件 dl_render_def.h19 行定义.

◆ SIZE_TEXTURE_PACK_DH

unsigned dl::SIZE_TEXTURE_PACK_DH = 2
constexpr

在文件 dl_render_def.h23 行定义.

◆ STR_PATH_2D

std::string_view dl::STR_PATH_2D = "2d/"
constexpr

在文件 dl_factory.h34 行定义.

◆ STR_PATH_3D

std::string_view dl::STR_PATH_3D = "3d/"
constexpr

在文件 dl_factory.h35 行定义.

◆ TIME_FREE_TEXTURE_2D

unsigned dl::TIME_FREE_TEXTURE_2D = 60 * 1000
constexpr

在文件 dl_vk.h134 行定义.

◆ UID_BIT_TIME

uint8_t dl::UID_BIT_TIME = 40
constexpr

时间戳占据位数

在文件 dl_guid.h35 行定义.

◆ UID_BIT_USER

uint8_t dl::UID_BIT_USER = 8
constexpr

自定义数据位数

在文件 dl_guid.h33 行定义.

◆ UID_POW_2_X

uint64_t dl::UID_POW_2_X = Math::Pow64(2, UID_BIT_TIME)
constexpr

时间戳占据位数能表示的上限

在文件 dl_guid.h39 行定义.

◆ UID_STEP

uint8_t dl::UID_STEP = 16
constexpr

单步生成时间(毫秒)

在文件 dl_guid.h27 行定义.

◆ UID_STEP_COUNT

uint64_t dl::UID_STEP_COUNT = Math::Pow64(2, 64 - UID_BIT_TIME - UID_BIT_USER)
constexpr

单步最大数量

在文件 dl_guid.h37 行定义.

◆ UID_YEAR

uint8_t dl::UID_YEAR = 100
constexpr

需要支持多少年

在文件 dl_guid.h31 行定义.

◆ UID_YEAR_SECOND_X

uint64_t dl::UID_YEAR_SECOND_X = 366ull * 24ull * 60ull * 60ull * UID_STEP
constexpr

一年生成的数量

在文件 dl_guid.h29 行定义.

◆ USE_MAPPED_2D_UBO

bool dl::USE_MAPPED_2D_UBO = false
constexpr

在文件 dl_vk.h180 行定义.

◆ VERSION_MODEL_CACHE

uint32_t dl::VERSION_MODEL_CACHE = 2
constexpr

在文件 dl_model_cache.h23 行定义.

◆ Z_DEFAULT

float dl::Z_DEFAULT = 0.0f
constexpr

在文件 dl_sprite.h25 行定义.

◆ Z_DEFAULT_BG

float dl::Z_DEFAULT_BG = 0.98f
constexpr

在文件 dl_sprite.h36 行定义.

◆ Z_DEFAULT_GAME

float dl::Z_DEFAULT_GAME = 0.75f
constexpr

在文件 dl_sprite.h34 行定义.

◆ Z_DEFAULT_PANEL

float dl::Z_DEFAULT_PANEL = 0.60f
constexpr

在文件 dl_sprite.h32 行定义.

◆ Z_DEFAULT_RENDER_TARGET

float dl::Z_DEFAULT_RENDER_TARGET = 0.99f
constexpr

在文件 dl_sprite.h38 行定义.

◆ Z_DEFAULT_UI

float dl::Z_DEFAULT_UI = 0.55f
constexpr

在文件 dl_sprite.h30 行定义.

◆ Z_DEFAULT_WIDNOW_MAX

float dl::Z_DEFAULT_WIDNOW_MAX = 0.50f
constexpr

在文件 dl_sprite.h28 行定义.

◆ Z_DEFAULT_WIDNOW_MIN

float dl::Z_DEFAULT_WIDNOW_MIN = 0.10f
constexpr

在文件 dl_sprite.h27 行定义.