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  Erase
 移除算法
 
namespace  Every
 多对一操作
 
namespace  File
 文件系统
 
namespace  FileCsv
 csv格式解析
 
namespace  FileXlsx
 xlsx格式解析
 
namespace  Fill
 填充算法(不改变容器大小)
 
namespace  Find
 查找算法
 
namespace  Img
 图像操作
 
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  Array2
 二维array 更多...
 
class  ArrayEnum
 枚举类数组 更多...
 
class  Audio
 音频主控 更多...
 
class  AudioLoader
 音频文件解析器 更多...
 
struct  BoundingBox
 
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
 
class  GLFWmonitor
 
class  GLFWwindow
 
class  Graphics
 基础图形绘图 更多...
 
struct  hash_idx
 
class  Http
 http协议 更多...
 
class  Input
 键盘、鼠标、手柄等输入检测 更多...
 
class  JsonConfig
 配置代码生成器 更多...
 
class  Language
 语言管理器 更多...
 
struct  ListMultiThread
 多线程队列 更多...
 
class  Locator
 2d定位器 更多...
 
class  LogLimit
 日志打印限制 更多...
 
class  LogStackTrack
 日志打开调用堆栈 更多...
 
class  LogSystem
 日志系统 更多...
 
class  LuaScript
 lua脚本语言 更多...
 
struct  Material
 材质 更多...
 
class  Matrix
 矩阵 更多...
 
class  MemoryPool
 内存池 更多...
 
class  Midi
 midi系统(低优先级) 更多...
 
class  Mod
 模组 更多...
 
class  Model
 
struct  ModelAnimation
 
struct  ModelAnimationChannel
 动画,包含多个动画通道 更多...
 
class  ModelAnimationInstance
 骨骼数据(多个骨骼) 更多...
 
struct  ModelAnimationKeyFrame
 
struct  ModelAnimationSampler
 
class  ModelCache
 
struct  ModelData
 
class  ModelLoader
 
struct  ModelMesh
 
struct  ModelNode
 
struct  ModelNodeTransform
 
class  ModelObject
 
struct  ModelObjectMaterial
 
struct  ModelObjectSub
 
struct  ModelPrimitive
 
struct  ModelSkin
 
struct  ModelSub
 
struct  ModelTriangleRange
 
class  ModManager
 模组管理器 更多...
 
struct  MsgHead
 网络消息头 更多...
 
class  MultiThreadTask
 多线程任务 更多...
 
class  Network
 网络框架 更多...
 
class  NTree
 N叉树 更多...
 
struct  ParamWindow
 创建窗口参数 更多...
 
class  Physics
 3d刚体物理系统 更多...
 
class  PoolList
 内存池数据 更多...
 
class  Process
 系统进程(平台相关) 更多...
 
struct  QuadParam
 四边形参数设置 更多...
 
struct  QueueFamilyIndices
 
class  Random
 随机数 更多...
 
struct  RenderInfo2D
 绘图信息2d 更多...
 
struct  RenderInfo3D
 绘图信息3d 更多...
 
class  RigidBody
 刚体 更多...
 
class  RigidBodyImp
 
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  Svn
 svn命令封装 更多...
 
class  SvnManager
 svn管理器 更多...
 
struct  SwapChainSupportDetails
 
class  System
 系统 更多...
 
class  Table2
 二维表(低优先级) 更多...
 
class  Text
 2d文本绘制对象 更多...
 
struct  TextNode
 单个字符 更多...
 
struct  Texture
 
class  Thread
 线程 更多...
 
class  ThreadManager
 线程管理器 更多...
 
class  Time
 时间 更多...
 
class  TimerRegular
 计时器,t秒触发一次 更多...
 
class  TimerReverse
 互逆计时器,t秒反转一次 更多...
 
class  Transform
 3d坐标系 更多...
 
struct  UdpMessage
 upd消息 更多...
 
class  UnorderedMap2
 2维unordered_map 更多...
 
class  Value
 任意类型 更多...
 
class  ValueStruct
 结构体 更多...
 
class  ValueSystem
 管理器,注册类型 更多...
 
struct  ValueTypeInfo
 类型信息 更多...
 
class  ValueVector
 变长数组(由于为空时类型丢失,需要成类) 更多...
 
class  Vector2
 2维vector 更多...
 
class  VectorAny
 任意对象容器(组件) 更多...
 
struct  Vertex
 3d顶点 更多...
 
struct  Vertex2D
 2d顶点 更多...
 
struct  VertexBone
 3d顶点(带骨骼) 更多...
 
struct  VertexGfx
 顶点 更多...
 
class  VK
 vulkan底层 更多...
 
struct  WAVEFormat
 wav格式信息 16字节 更多...
 

类型定义

using Color3F = std::array<float, 3>
 
using Point0 = std::array<int, 0>
 
using Point1 = std::array<int, 1>
 
using Point2 = std::array<int, 2>
 
using Point3 = std::array<int, 3>
 
using Point4 = std::array<int, 4>
 
using Point = Point2
 
using Rect = Point4
 
using Point0U = std::array<unsigned, 0>
 
using Point1U = std::array<unsigned, 1>
 
using Point2U = std::array<unsigned, 2>
 
using Point3U = std::array<unsigned, 3>
 
using Point4U = std::array<unsigned, 4>
 
using PointU = Point2U
 
using Size = PointU
 
using RectU = Point4U
 
using Float = float
 
using Position0 = std::array<Float, 0>
 
using Position1 = std::array<Float, 1>
 
using Position2 = std::array<Float, 2>
 
using Position3 = std::array<Float, 3>
 
using Position4 = std::array<Float, 4>
 
using Position = Position2
 
using RectF = Position4
 
using Triangle = std::array<Position, 3>
 
using Quad = std::array<Position, 4>
 
using FloatTime = float
 
using Color = std::array<float, 4>
 
using SizeT = std::array<std::size_t, 2>
 
using BufferList = ListMultiThread<Buffer>
 
using UdpMessageList = ListMultiThread<UdpMessage>
 
using Matrix4 = Matrix<Float, 4, 4>
 
using Buffer = std::vector<std::byte>
 
using BufferView = std::span<std::byte>
 
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>
 
using UV = std::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  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  QueueMode { FIFO , FILO }
 
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  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
}
 操作类型 更多...
 
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  SystemStep { START , UPDATE , RENDER , RELEASE }
 运行步骤 更多...
 

函数

Color createColorRandom (float a=1.0f)
 创建随机颜色
 
constexpr Color createColor (const Color &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)
 创建颜色
 
void colorSaturate (Color &col)
 限制颜色值 到[0, 1]
 
void colorInverse (Color &col)
 反色,不包含透明通道
 
Color colorInverse (const Color &col)
 
bool isColorOpaque (const Color &col)
 
Color colorLerp (float cur)
 颜色插值
 
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<typename T>
std::string to_string (T v)
 to_string包装
 
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>
std::string to_string_ex (const std::vector< T > &vec, std::string_view delimiter=", ")
 vector通用to_string
 
std::string to_string (std::error_code code)
 错误码信息
 
template<>
std::string to_string< BufferView > (BufferView buf)
 buf转为utf8字符串(不进行检查)
 
template<>
std::string to_string< Buffer > (Buffer buf)
 
std::string to_string_check (BufferView buf, bool tips=true)
 buf转为utf8字符串(进行检查)
 
std::string to_string_hex (BufferView buf, 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<typename T1, typename T, std::size_t N>
constexpr std::array< T1, N > toArray (const std::array< T, N > &a)
 
template<typename T, std::size_t N>
constexpr std::array< Position::value_type, N > toPosition (const std::array< T, N > &a)
 转换到Position,已知长度
 
template<typename T, std::size_t N>
constexpr std::array< Point::value_type, N > toPoint (const std::array< T, N > &a)
 转换到Point,已知长度
 
template<typename T, std::size_t N, typename T1, typename ... Args>
constexpr void toArrayImp (std::array< T, N > &arr, const T1 &a, Args... args)
 
template<typename T, typename T1, typename ... Args>
constexpr std::array< T, sizeof...(Args)+1 > toArray (const T1 &a, Args... args)
 
template<typename ... Args>
constexpr std::array< Position::value_type, sizeof...(Args)> toPosition (Args... args)
 转换到Position,变长参数
 
template<typename ... Args>
constexpr std::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 std::array< Size::value_type, sizeof...(Args)> toSize (Args... args)
 转换到Size,变长参数
 
template<typename T, size_t N>
constexpr std::array< Size::value_type, N > toSize (const std::array< T, N > &a)
 
template<typename T, size_t N>
constexpr std::array< Size::value_type, N > toSizeNeg2Zero (const std::array< T, N > &a)
 转换到Size,出现负数时转为0
 
template<typename T, size_t N>
constexpr std::array< PointU::value_type, N > toSizeDefault (const std::array< T, N > &a)
 有符号转无符号,直接转换,负数会直接转为大正数
 
template<typename ... Args>
constexpr std::array< SizeT::value_type, sizeof...(Args)> toSizeT (Args... args)
 转换到Size,变长参数
 
template<typename T, size_t N>
constexpr std::array< SizeT::value_type, N > toSizeT (const std::array< T, N > &a)
 
template<typename T, size_t N>
constexpr std::array< SizeT::value_type, N > toSizeTNeg2Zero (const std::array< T, N > &a)
 转换到Size,出现负数时转为0
 
template<typename T, size_t N>
constexpr std::array< SizeT::value_type, N > toSizeTDefault (const std::array< T, N > &a)
 有符号转无符号,直接转换,负数会直接转为大正数
 
template<size_t M = 1, typename T, size_t N>
constexpr std::array< T, N+M > toLonger (const std::array< T, N > &a, const T &v={})
 长度+M
 
template<size_t M = 1, typename T>
constexpr std::array< T, M+1 > toLonger (const T &v)
 
template<size_t M = 1, typename T, size_t N>
constexpr std::array< T, N - M > toShorter (const std::array< T, N > &a)
 长度-M
 
template<typename T>
constexpr std::vector< T > toVector (const T &a, size_t n)
 
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 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 &lt, const Position &size)
 创建一个Rect,依据左上角和大小
 
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 std::array< T, N > & operator+= (std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator+ (const std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > & operator-= (std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator- (const std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > & operator*= (std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator* (const std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > & operator/= (std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator/ (const std::array< T, N > &a, const std::array< T, N > &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > & operator+= (std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator+ (const std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > & operator-= (std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator- (const std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > & operator*= (std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator* (const std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > & operator/= (std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator/ (const std::array< T, N > &a, const T &b)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator- (const std::array< T, N > &a)
 
template<typename T, std::size_t N>
constexpr std::array< T, N > operator+ (const std::array< T, N > &a)
 
void log_easy (std::string_view str)
 输出日志
 
void log_pause0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log_test0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log_info0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log_msg0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log_notice0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log_warn0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log_err0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log_damage0 (std::string_view str, const std::source_location location=std::source_location::current())
 
void log (std::string_view str, const std::source_location location=std::source_location::current())
 以当前设置输出
 
void log_err0 (const std::exception &e, const std::source_location location=std::source_location::current())
 
void log_err0 (const std::system_error &e, const std::source_location location=std::source_location::current())
 
void log (std::string_view str)
 
void log_pause0 (std::string_view str)
 
void log_test0 (std::string_view str)
 
void log_info0 (std::string_view str)
 
void log_msg0 (std::string_view str)
 
void log_notice0 (std::string_view str)
 
void log_warn0 (std::string_view str)
 
void log_err0 (std::string_view str)
 
void log_damage0 (std::string_view str)
 
void log_err0 (const std::exception &e)
 
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 std::array< T, 3 > cross (const std::array< T, 3 > &a, const std::array< T, 3 > &b)
 向量叉乘
 
template<typename T>
T cast_dynamic (void *p)
 动态类型强转
 
template<typename T, size_t N>
bool limit_bigger (std::array< T, N > &a, const std::array< T, N > &limit)
 限制到大于某个值,如果修改了原值则返回true
 
template<typename T>
const T & as_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>
T * pointer (T &&x)
 查找算法
 
template<typename T>
const T & constant (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<IsPointer T, typename FC, typename F>
void for_tree (T root, FC func_child, F func)
 遍历树(使用栈,深度优先)
 
template<typename T, size_t N>
constexpr T & arr_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, N > operator* (const Matrix< T, M, P > &a, const Matrix< T, P, N > &b)
 矩阵乘法
 
template<typename T, size_t M, size_t N>
std::array< T, M > operator* (const Matrix< T, M, N > &a, const std::array< T, N > &v)
 矩阵 乘 向量
 
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)
 
void BufferAppend (Buffer &buf, BufferView buf_app)
 追加数据
 
Buffer CreateBuffer (BufferView buf)
 
template<typename T, typename... Args>
auto get_gc (Args &&...args)
 定义一个GC变量(引用计数内存池)
 
Components * createComponents (std::string_view name={})
 
std::string_view lang (std::string_view tag, std::string_view name)
 返回一个语言配置的字符串,传入 menu、start
 
std::string_view lang (std::string_view tag_name)
 返回一个语言配置的字符串,传入 menu.start
 
std::string_view lang_auto (std::string_view tag_name)
 返回一个语言配置的字符串,传入 @开头表示是语言配置,否则原样返回
 
Layout String2Layout (std::string_view str)
 
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)
 
Locator createLocatorZero ()
 返回start位置
 
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)
 
Image * createImage (const Size &size, const Color &col)
 创建图像
 
Image * createImage (std::string_view path_name)
 创建图像
 
Image * createImageSvg (std::string_view path_name, const Size &size)
 创建图像 从svg
 
Image * createImageWebp (std::string_view path_name)
 创建图像 从webp
 
Image * createImageWebp (BufferView buf)
 
bool saveImage (const Image *img, std::string_view path_name)
 保存到图像
 
float ShininessToRoughness (float Ypoint)
 
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_gfx (lua_State *L)
 
void lua_register_ui (lua_State *L)
 
void lua_register_factory (lua_State *L)
 
void lua_register_all (lua_State *L)
 
std::string_view to_string (ScriptOperator op)
 
std::string_view to_string (ScriptToken::Type type)
 
std::string to_string (const ScriptExpr &expr)
 
void TestScript (std::string_view str)
 
void TestScriptAll ()
 
gcSound snd_play (std::string_view name, size_t group_id=0, float volume=1.0f)
 播放一个音效
 
bool glfwInit ()
 
bool glfwWindowShouldClose (GLFWwindow *window)
 
void glfwGetFramebufferSize (GLFWwindow *window, int *w, int *h)
 
const char ** glfwGetRequiredInstanceExtensions (uint32_t *count)
 
void glfwWaitEvents ()
 
void glfwPollEvents ()
 
void glfwDestroyWindow (GLFWwindow *window)
 
void glfwTerminate ()
 
void glfwSetCursorPos (GLFWwindow *window, int x, int y)
 
void glfwGetWindowSize (GLFWwindow *window, int *w, int *h)
 
void glfwGetMonitorWorkarea (GLFWmonitor *monitor, int *x, int *y, int *w, int *h)
 
void glfwGetWindowSize (GLFWwindow *window, int x, int y)
 
void glfwSetWindowPos (GLFWwindow *window, int x, int y)
 

变量

Http * g_http
 
constexpr size_t NUM_MAX_GAME_PAD = 4
 手柄数量上限
 
Input * g_input
 
constexpr std::array< std::string_view, 9 > DL_LOG_SYSTEM_LEVLE_NAME
 
LogSystem * g_log
 
constexpr uint32_t NETWORK_MESSAGE_TAG = 0x1efe9722
 
Network * g_net
 
SvnManager * g_svn
 
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 size_t SIZE_STREAM_INPUT_CONTAINER_CHECK = 100000000
 
Language * g_lang
 
ModManager * g_mod
 
ValueSystem g_value
 
const ValueStruct NULL_VALUE_STRUCT = { "null struct" }
 
const ValueVector NULL_VALUE_VECTOR = { ValueType::NONE }
 
ActionManager * g_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/"
 
Factory * g_factory
 
FreeType * g_freetype
 
Graphics * g_gfx
 
constexpr uint32_t VERSION_MODEL_CACHE = 0
 
ModelLoader * g_modelLoader
 
Physics * g_physics
 
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_SPRITE_BORDER = 8
 
constexpr unsigned SIZE_TEXTURE_PACK_DH = 2
 
constexpr float Z_DEFAULT = 0.0f
 
constexpr float Z_DEFAULT_UI = Math::OffsetOrder(Z_DEFAULT)
 
constexpr float Z_DEFAULT_PANEL = Math::OffsetOrder(Z_DEFAULT_UI)
 
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 }
 
AngelScript * g_as
 
LuaScript * g_lua
 
constexpr ScriptIndex SCRIPT_INDEX_NAG_1 = (ScriptIndex)-1
 
constexpr ScriptIndexVS SCRIPT_INDEX_VS_0 = 0
 
constexpr ScriptIndexVS SCRIPT_INDEX_VS_NAG_1 = (ScriptIndexVS)-1
 
constexpr ScriptIndexVS SCRIPT_INDEX_VS_NAG_2 = (ScriptIndexVS)-2
 
ScriptSystem * g_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
 
AndroidData * g_android
 
constexpr size_t NUM_MAX_FILE = 256
 可加载音频文件上限
 
Audio * g_audio
 
Midi * g_midi
 
System * g_system
 
ThreadManager * g_thread
 
Time * g_time
 
UI::Manager * g_ui
 
UI::SceneManager * g_scene
 
constexpr size_t NUM_BONE = 4
 
constexpr size_t NUM_MAX_FRAME_IN_FLIGHT = 2
 
constexpr size_t NUM_MAX_PRIMITIVE = 1024
 
constexpr size_t NUM_MAX_DESCRIPTOR_POOL = NUM_MAX_FRAME_IN_FLIGHT * NUM_MAX_PRIMITIVE * 2
 
constexpr size_t NUM_MAX_MATERIAL = 50
 
constexpr size_t NUM_MAX_BONE = 128
 
constexpr size_t NUM_MAX_JOINT = 256
 
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_MAX_DESCRIPTOR_POOL_2D = NUM_MAX_FRAME_IN_FLIGHT * NUM_MAX_DRAW_CALL_2D
 
constexpr size_t NUM_START_2D_VERTEX = 4 * 1024
 
constexpr size_t NUM_MAX_ROOT_COOR = 32
 
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 std::size_t NUM_GFX = 12
 
constexpr std::size_t NUM_GFX_HALF = NUM_GFX / 2
 
constexpr std::size_t NUM_GFX_QUAD = NUM_GFX / 4
 
constexpr bool USE_MAPPED_2D_UBO = false
 
VK * g_vk
 

类型定义说明

◆ Buffer

using dl::Buffer = std::vector<std::byte>

在文件 dl_buffer.h 第 22 行定义.

◆ BufferList

在文件 dl_net.h 第 77 行定义.

◆ BufferView

using dl::BufferView = std::span<std::byte>

在文件 dl_buffer.h 第 23 行定义.

◆ Color

using dl::Color = std::array<float, 4>

在文件 dl_type_def.h 第 50 行定义.

◆ Color3F

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

在文件 dl_color.h 第 23 行定义.

◆ Float

using dl::Float = float

在文件 dl_type_def.h 第 37 行定义.

◆ FloatTime

using dl::FloatTime = float

在文件 dl_type_def.h 第 49 行定义.

◆ gcActor

using dl::gcActor = GC<Actor>

在文件 dl_actor.h 第 86 行定义.

◆ gcAnimation

在文件 dl_animation.h 第 113 行定义.

◆ gcSound

using dl::gcSound = GC<Sound>

在文件 dl_audio.h 第 75 行定义.

◆ gcSprite

在文件 dl_sprite.h 第 225 行定义.

◆ gcText

using dl::gcText = GC<Text>

在文件 dl_text.h 第 371 行定义.

◆ Image

using dl::Image = Vector2<uint32_t>

在文件 dl_image.h 第 28 行定义.

◆ Matrix4

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

在文件 dl_matrix.h 第 231 行定义.

◆ Point

using dl::Point = Point2

在文件 dl_type_def.h 第 23 行定义.

◆ Point0

using dl::Point0 = std::array<int, 0>

在文件 dl_type_def.h 第 18 行定义.

◆ Point0U

using dl::Point0U = std::array<unsigned, 0>

在文件 dl_type_def.h 第 27 行定义.

◆ Point1

using dl::Point1 = std::array<int, 1>

在文件 dl_type_def.h 第 19 行定义.

◆ Point1U

using dl::Point1U = std::array<unsigned, 1>

在文件 dl_type_def.h 第 28 行定义.

◆ Point2

using dl::Point2 = std::array<int, 2>

在文件 dl_type_def.h 第 20 行定义.

◆ Point2U

using dl::Point2U = std::array<unsigned, 2>

在文件 dl_type_def.h 第 29 行定义.

◆ Point3

using dl::Point3 = std::array<int, 3>

在文件 dl_type_def.h 第 21 行定义.

◆ Point3U

using dl::Point3U = std::array<unsigned, 3>

在文件 dl_type_def.h 第 30 行定义.

◆ Point4

using dl::Point4 = std::array<int, 4>

在文件 dl_type_def.h 第 22 行定义.

◆ Point4U

using dl::Point4U = std::array<unsigned, 4>

在文件 dl_type_def.h 第 31 行定义.

◆ PointU

在文件 dl_type_def.h 第 32 行定义.

◆ Position

在文件 dl_type_def.h 第 43 行定义.

◆ Position0

using dl::Position0 = std::array<Float, 0>

在文件 dl_type_def.h 第 38 行定义.

◆ Position1

using dl::Position1 = std::array<Float, 1>

在文件 dl_type_def.h 第 39 行定义.

◆ Position2

using dl::Position2 = std::array<Float, 2>

在文件 dl_type_def.h 第 40 行定义.

◆ Position3

using dl::Position3 = std::array<Float, 3>

在文件 dl_type_def.h 第 41 行定义.

◆ Position4

using dl::Position4 = std::array<Float, 4>

在文件 dl_type_def.h 第 42 行定义.

◆ Quad

using dl::Quad = std::array<Position, 4>

在文件 dl_type_def.h 第 47 行定义.

◆ Rect

using dl::Rect = Point4

在文件 dl_type_def.h 第 25 行定义.

◆ RectF

在文件 dl_type_def.h 第 44 行定义.

◆ RectU

using dl::RectU = Point4U

在文件 dl_type_def.h 第 35 行定义.

◆ ScriptFloat

using dl::ScriptFloat = double

在文件 dl_script.h 第 28 行定义.

◆ ScriptFunction

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

在文件 dl_script.h 第 38 行定义.

◆ ScriptIndex

using dl::ScriptIndex = uint32_t

在文件 dl_script.h 第 26 行定义.

◆ ScriptIndexVS

using dl::ScriptIndexVS = uint8_t

在文件 dl_script.h 第 30 行定义.

◆ ScriptInt

using dl::ScriptInt = int64_t

在文件 dl_script.h 第 27 行定义.

◆ ScriptParam

在文件 dl_script.h 第 37 行定义.

◆ ScriptString

using dl::ScriptString = std::string

在文件 dl_script.h 第 29 行定义.

◆ ScriptTable

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

在文件 dl_script.h 第 36 行定义.

◆ ScriptVector

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

在文件 dl_script.h 第 35 行定义.

◆ Size

using dl::Size = PointU

在文件 dl_type_def.h 第 34 行定义.

◆ SizeT

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

在文件 dl_type_def.h 第 53 行定义.

◆ Triangle

using dl::Triangle = std::array<Position, 3>

在文件 dl_type_def.h 第 46 行定义.

◆ UdpMessageList

在文件 dl_net.h 第 78 行定义.

◆ UV

using dl::UV = std::array<float, 2>

在文件 dl_sprite.h 第 37 行定义.

◆ ValueTable

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

在文件 dl_value.h 第 372 行定义.

枚举类型说明

◆ AnimationEnd

enum class dl::AnimationEnd
strong
枚举值
STOP 

播完后暂停到最后一帧

DISAPPEAR 

播完后不显示

START 

播完后回到起始

在文件 dl_animation.h 第 26 行定义.

◆ AnimationState

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

在文件 dl_animation.h 第 20 行定义.

◆ FullScreenMode

enum class dl::FullScreenMode
strong

全屏模式

枚举值
WINDOW 
FULL 
FULL_WINDOW 

在文件 dl_system.h 第 24 行定义.

◆ 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 
A 
B 
C 
D 
E 
F 
G 
H 
I 
J 
K 
L 
M 
N 
O 
P 
Q 
R 
S 
T 
U 
V 
W 
X 
Y 
Z 
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.h 第 82 行定义.

◆ Layout

enum class dl::Layout
strong
枚举值
X 

x轴移动

Y 

y轴移动

XY 

xy同时移动

ORIGIN 

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

在文件 dl_layout.h 第 18 行定义.

◆ MouseCode

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

在文件 dl_input.h 第 68 行定义.

◆ PadCode

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

在文件 dl_input.h 第 27 行定义.

◆ QueueMode

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

在文件 dl_thread_task.h 第 20 行定义.

◆ ScriptExprTokenType

enum class dl::ScriptExprTokenType
strong

表达式token类型

枚举值
ESET_variable 
ESET_literal 
ESET_operator 

在文件 dl_script.h 第 145 行定义.

◆ ScriptOperator

enum class dl::ScriptOperator : ScriptIndex
strong

操作类型

枚举值
E_assign 
E_add 
E_sub 
E_mul 
E_div 

在文件 dl_script.h 第 62 行定义.

◆ 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.h 第 237 行定义.

◆ 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.h 第 46 行定义.

◆ StringType

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

在文件 dl_string.h 第 147 行定义.

◆ SystemStep

enum class dl::SystemStep
strong

运行步骤

枚举值
START 
UPDATE 
RENDER 
RELEASE 

在文件 dl_system.h 第 45 行定义.

◆ TextParam

enum class dl::TextParam
strong

文本参数

枚举值
NORMAL 

正常

OUTLINE 

描边

SHADOW 

阴影

MAX_NUM 

在文件 dl_text.h 第 29 行定义.

◆ 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.h 第 25 行定义.

函数说明

◆ arr_last()

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

返回静态数组长度

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

返回数组最后一个元素

在文件 dl_algorithm.h 第 595 行定义.

◆ as_const()

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

在文件 dl_algorithm.h 第 87 行定义.

◆ as_register_base()

void dl::as_register_base ( AngelScript * as)

◆ as_register_ui()

void dl::as_register_ui ( AngelScript * as)

◆ BufferAppend()

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

追加数据

在文件 dl_buffer.h 第 55 行定义.

◆ cast_dynamic()

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

动态类型强转

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

在文件 dl_algorithm.h 第 62 行定义.

◆ CheckPositive()

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

在文件 dl_type_convert.h 第 86 行定义.

◆ ClassType2ValueType()

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

在文件 dl_value.h 第 65 行定义.

◆ colorInverse() [1/2]

void dl::colorInverse ( Color & col)
inline

反色,不包含透明通道

在文件 dl_color.h 第 94 行定义.

◆ colorInverse() [2/2]

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

在文件 dl_color.h 第 100 行定义.

◆ colorLerp()

Color dl::colorLerp ( float cur)
inline

颜色插值

在文件 dl_color.h 第 114 行定义.

◆ colorSaturate()

void dl::colorSaturate ( Color & col)
inline

限制颜色值 到[0, 1]

在文件 dl_color.h 第 86 行定义.

◆ constant()

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

加上const修饰

在文件 dl_algorithm.h 第 196 行定义.

◆ CreateBuffer()

Buffer dl::CreateBuffer ( BufferView buf)
inline

在文件 dl_buffer.h 第 63 行定义.

◆ CreateBufferView() [1/6]

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

在文件 dl_buffer.h 第 39 行定义.

◆ CreateBufferView() [2/6]

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

创建buffer视图

在文件 dl_buffer.h 第 31 行定义.

◆ CreateBufferView() [3/6]

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

在文件 dl_buffer.h 第 44 行定义.

◆ CreateBufferView() [4/6]

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

在文件 dl_buffer.h 第 49 行定义.

◆ CreateBufferView() [5/6]

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

创建buffer视图

在文件 dl_buffer.h 第 26 行定义.

◆ CreateBufferView() [6/6]

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

在文件 dl_buffer.h 第 35 行定义.

◆ createColor() [1/5]

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

创建指定透明度颜色

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

在文件 dl_color.h 第 45 行定义.

◆ createColor() [2/5]

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

创建指定透明度颜色

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

在文件 dl_color.h 第 55 行定义.

◆ createColor() [3/5]

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

创建颜色

参数
[in]str十六进制RGBA
返回值
失败返回白色

在文件 dl_color.h 第 299 行定义.

◆ createColor() [4/5]

Color dl::createColor ( uint32_t dw_rgba)
constexpr

创建颜色

参数
[in]uint32_t颜色值

在文件 dl_color.h 第 64 行定义.

◆ createColor() [5/5]

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

创建颜色

在文件 dl_color.h 第 77 行定义.

◆ createColorRandom()

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

创建随机颜色

参数
[in]a指定透明度

在文件 dl_color.h 第 29 行定义.

◆ createComponents()

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

在文件 dl_component.h 第 282 行定义.

◆ createImage() [1/2]

Image * dl::createImage ( const Size & size,
const Color & col )

创建图像

参数
[in]size大小
[in]color颜色
返回值
用户需要使用delete释放获得的指针,不会返回失败

◆ createImage() [2/2]

Image * dl::createImage ( std::string_view path_name)

创建图像

参数
[in]path_name路径
返回值
用户需要使用delete释放获得的指针,除非失败返回了nullptr

◆ createImageSvg()

Image * dl::createImageSvg ( std::string_view path_name,
const Size & size )

创建图像 从svg

参数
[in]path_name路径
[in]size大小
返回值
用户需要使用delete释放获得的指针,除非失败返回了nullptr

◆ createImageWebp() [1/2]

Image * dl::createImageWebp ( BufferView buf)

◆ createImageWebp() [2/2]

Image * dl::createImageWebp ( std::string_view path_name)

创建图像 从webp

参数
[in]path_name路径
返回值
用户需要使用delete释放获得的指针,除非失败返回了nullptr
待办事项
部分图像直接显示有问题

◆ 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.h 第 144 行定义.

◆ createLocatorY()

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

在文件 dl_locator.h 第 155 行定义.

◆ createLocatorZero()

Locator dl::createLocatorZero ( )
inline

返回start位置

在文件 dl_locator.h 第 166 行定义.

◆ createQuad() [1/8]

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

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

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

在文件 dl_type_create.h 第 50 行定义.

◆ createQuad() [2/8]

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

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

在文件 dl_type_create.h 第 67 行定义.

◆ createQuad() [3/8]

Quad dl::createQuad ( const QuadParam & param)

创建一个Quad,根据参数

参数
[in]size大小

◆ createQuad() [4/8]

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

在文件 dl_type_create.h 第 55 行定义.

◆ createQuad() [5/8]

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

在文件 dl_type_create.h 第 60 行定义.

◆ createQuad() [6/8]

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

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

参数
[in]size大小

在文件 dl_type_create.h 第 106 行定义.

◆ createQuad() [7/8]

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

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

参数
[in]size大小

在文件 dl_type_create.h 第 124 行定义.

◆ createQuad() [8/8]

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

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

参数
[in]size大小

在文件 dl_type_create.h 第 86 行定义.

◆ createRect() [1/3]

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

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

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

在文件 dl_type_create.h 第 158 行定义.

◆ createRect() [2/3]

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

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

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

在文件 dl_type_create.h 第 149 行定义.

◆ createRect() [3/3]

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

创建一个Rect,依据大小

参数
[in]size大小

在文件 dl_type_create.h 第 140 行定义.

◆ createRectF()

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

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

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

在文件 dl_type_create.h 第 196 行定义.

◆ createRectU() [1/3]

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

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

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

在文件 dl_type_create.h 第 185 行定义.

◆ createRectU() [2/3]

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

创建一个RectU,依据大小

参数
[in]size大小

在文件 dl_type_create.h 第 168 行定义.

◆ createRectU() [3/3]

RectU dl::createRectU ( unsigned size)
constexpr

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

参数
[in]size大小

在文件 dl_type_create.h 第 176 行定义.

◆ cross()

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

向量叉乘

在文件 dl_algorithm.h 第 46 行定义.

◆ 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.h 第 105 行定义.

◆ find_equal()

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

替换容器元素值

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

在文件 dl_algorithm.h 第 220 行定义.

◆ 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.h 第 515 行定义.

◆ 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.h 第 544 行定义.

◆ frac()

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

在文件 dl_type_def.h 第 80 行定义.

◆ frac_r()

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

在文件 dl_type_def.h 第 86 行定义.

◆ frac_rt()

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

在文件 dl_type_def.h 第 91 行定义.

◆ from_json()

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

在文件 dl_animation_info.h 第 68 行定义.

◆ get_gc()

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

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

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

在文件 dl_memory_pool.h 第 304 行定义.

◆ glfwDestroyWindow()

void dl::glfwDestroyWindow ( GLFWwindow * window)
inline

在文件 dl_wrap_glfw.h 第 56 行定义.

◆ glfwGetFramebufferSize()

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

在文件 dl_wrap_glfw.h 第 38 行定义.

◆ glfwGetMonitorWorkarea()

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

在文件 dl_wrap_glfw.h 第 61 行定义.

◆ glfwGetRequiredInstanceExtensions()

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

在文件 dl_wrap_glfw.h 第 44 行定义.

◆ glfwGetWindowSize() [1/2]

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

在文件 dl_wrap_glfw.h 第 60 行定义.

◆ glfwGetWindowSize() [2/2]

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

在文件 dl_wrap_glfw.h 第 62 行定义.

◆ glfwInit()

bool dl::glfwInit ( )
inline

在文件 dl_wrap_glfw.h 第 34 行定义.

◆ glfwPollEvents()

void dl::glfwPollEvents ( )
inline

在文件 dl_wrap_glfw.h 第 55 行定义.

◆ glfwSetCursorPos()

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

在文件 dl_wrap_glfw.h 第 58 行定义.

◆ glfwSetWindowPos()

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

在文件 dl_wrap_glfw.h 第 63 行定义.

◆ glfwTerminate()

void dl::glfwTerminate ( )
inline

在文件 dl_wrap_glfw.h 第 57 行定义.

◆ glfwWaitEvents()

void dl::glfwWaitEvents ( )
inline

在文件 dl_wrap_glfw.h 第 54 行定义.

◆ glfwWindowShouldClose()

bool dl::glfwWindowShouldClose ( GLFWwindow * window)
inline

在文件 dl_wrap_glfw.h 第 36 行定义.

◆ 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.h 第 241 行定义.

◆ is_saturate()

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

是否数值在[0, 1]

在文件 dl_algorithm.h 第 37 行定义.

◆ isColorOpaque()

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

在文件 dl_color.h 第 107 行定义.

◆ lang() [1/2]

std::string_view dl::lang ( std::string_view tag,
std::string_view name )
inline

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

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

在文件 dl_language.h 第 96 行定义.

◆ lang() [2/2]

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

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

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

◆ 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 ( std::array< T, N > & a,
const std::array< T, N > & limit )

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

在文件 dl_algorithm.h 第 72 行定义.

◆ log() [1/2]

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

◆ log() [2/2]

void dl::log ( std::string_view str,
const std::source_location location = std::source_location::current() )

以当前设置输出

◆ log_damage0() [1/2]

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

在文件 dl_log.h 第 247 行定义.

◆ log_damage0() [2/2]

void dl::log_damage0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ log_easy()

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

输出日志

在文件 dl_log.h 第 199 行定义.

◆ log_err0() [1/5]

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

◆ log_err0() [2/5]

void dl::log_err0 ( const std::exception & e,
const std::source_location location = std::source_location::current() )

◆ log_err0() [3/5]

void dl::log_err0 ( const std::system_error & e,
const std::source_location location = std::source_location::current() )

◆ log_err0() [4/5]

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

在文件 dl_log.h 第 246 行定义.

◆ log_err0() [5/5]

void dl::log_err0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ log_info0() [1/2]

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

在文件 dl_log.h 第 242 行定义.

◆ log_info0() [2/2]

void dl::log_info0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ log_msg0() [1/2]

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

在文件 dl_log.h 第 243 行定义.

◆ log_msg0() [2/2]

void dl::log_msg0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ log_notice0() [1/2]

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

在文件 dl_log.h 第 244 行定义.

◆ log_notice0() [2/2]

void dl::log_notice0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ log_pause0() [1/2]

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

在文件 dl_log.h 第 240 行定义.

◆ log_pause0() [2/2]

void dl::log_pause0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ log_test0() [1/2]

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

在文件 dl_log.h 第 241 行定义.

◆ log_test0() [2/2]

void dl::log_test0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ log_warn0() [1/2]

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

在文件 dl_log.h 第 245 行定义.

◆ log_warn0() [2/2]

void dl::log_warn0 ( std::string_view str,
const std::source_location location = std::source_location::current() )

◆ 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_gfx()

void dl::lua_register_gfx ( lua_State * L)

◆ lua_register_system()

void dl::lua_register_system ( 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.h 第 491 行定义.

◆ operate_front()

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

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

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

在文件 dl_algorithm.h 第 122 行定义.

◆ operator""_c()

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

在文件 dl_color.h 第 133 行定义.

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

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

在文件 dl_type_def.h 第 55 行定义.

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

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

在文件 dl_type_def.h 第 59 行定义.

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

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

在文件 dl_type_def.h 第 63 行定义.

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

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

在文件 dl_type_def.h 第 67 行定义.

◆ operator""_zu()

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

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

在文件 dl_type_def.h 第 74 行定义.

◆ operator*() [1/4]

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

矩阵 乘 向量

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

在文件 dl_matrix.h 第 272 行定义.

◆ operator*() [2/4]

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.h 第 251 行定义.

◆ operator*() [3/4]

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

在文件 dl_type_op.h 第 59 行定义.

◆ operator*() [4/4]

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

在文件 dl_type_op.h 第 120 行定义.

◆ operator*=() [1/2]

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

在文件 dl_type_op.h 第 51 行定义.

◆ operator*=() [2/2]

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

在文件 dl_type_op.h 第 112 行定义.

◆ operator+() [1/5]

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

在文件 dl_type_op.h 第 152 行定义.

◆ operator+() [2/5]

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

在文件 dl_type_op.h 第 29 行定义.

◆ operator+() [3/5]

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

在文件 dl_type_op.h 第 90 行定义.

◆ operator+() [4/5]

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

在文件 dl_string.h 第 58 行定义.

◆ operator+() [5/5]

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

在文件 dl_string.h 第 63 行定义.

◆ operator+=() [1/3]

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

在文件 dl_type_op.h 第 21 行定义.

◆ operator+=() [2/3]

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

在文件 dl_type_op.h 第 82 行定义.

◆ operator+=() [3/3]

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

在文件 dl_string.h 第 53 行定义.

◆ operator-() [1/3]

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

在文件 dl_type_op.h 第 143 行定义.

◆ operator-() [2/3]

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

在文件 dl_type_op.h 第 44 行定义.

◆ operator-() [3/3]

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

在文件 dl_type_op.h 第 105 行定义.

◆ operator-=() [1/2]

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

在文件 dl_type_op.h 第 36 行定义.

◆ operator-=() [2/2]

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

在文件 dl_type_op.h 第 97 行定义.

◆ operator/() [1/2]

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

在文件 dl_type_op.h 第 74 行定义.

◆ operator/() [2/2]

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

在文件 dl_type_op.h 第 135 行定义.

◆ operator/=() [1/2]

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

在文件 dl_type_op.h 第 66 行定义.

◆ operator/=() [2/2]

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

在文件 dl_type_op.h 第 127 行定义.

◆ operator==()

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.h 第 236 行定义.

◆ pointer()

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

查找算法

find,返回下标

注解
失败返回-1

find,返回下标

注解
失败返回y == size

取地址,可用于右值

注解
注意对象生命周期

在文件 dl_algorithm.h 第 187 行定义.

◆ 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.h 第 272 行定义.

◆ saturate()

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

限制数值到 [0, 1]

在文件 dl_algorithm.h 第 28 行定义.

◆ saveImage()

bool dl::saveImage ( const Image * img,
std::string_view path_name )

保存到图像

◆ ShininessToRoughness()

float dl::ShininessToRoughness ( float Ypoint)
inline

在文件 dl_model_loader.h 第 42 行定义.

◆ sign()

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

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

在文件 dl_algorithm.h 第 604 行定义.

◆ 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.h 第 173 行定义.

◆ 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.h 第 312 行定义.

◆ 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.h 第 369 行定义.

◆ 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.h 第 416 行定义.

◆ str_uid()

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

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

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

在文件 dl_algorithm.h 第 623 行定义.

◆ String2Layout()

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

在文件 dl_layout.h 第 26 行定义.

◆ String2ValueType()

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

◆ String2ValueTypeEx()

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

◆ TestScript()

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

在文件 dl_script_test.h 第 68 行定义.

◆ TestScriptAll()

void dl::TestScriptAll ( )
inline

在文件 dl_script_test.h 第 76 行定义.

◆ to_json()

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

在文件 dl_animation_info.h 第 43 行定义.

◆ to_string() [1/10]

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

在文件 dl_script.h 第 173 行定义.

◆ to_string() [2/10]

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

在文件 dl_sprite.h 第 53 行定义.

◆ to_string() [3/10]

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.h 第 87 行定义.

◆ to_string() [4/10]

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

值转字符串

◆ to_string() [5/10]

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

在文件 dl_string.h 第 913 行定义.

◆ to_string() [6/10]

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

◆ to_string() [7/10]

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

◆ to_string() [8/10]

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

错误码信息

◆ to_string() [9/10]

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

to_string包装

注解
小数默认两位

在文件 dl_string.h 第 73 行定义.

◆ to_string() [10/10]

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

类型转字符串

◆ to_string< Buffer >()

template<>
std::string dl::to_string< Buffer > ( Buffer buf)
inline

在文件 dl_string.h 第 127 行定义.

◆ to_string< BufferView >()

template<>
std::string dl::to_string< BufferView > ( BufferView buf)

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

◆ 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_ex()

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

vector通用to_string

在文件 dl_string.h 第 103 行定义.

◆ to_string_hex()

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

buf转为16进制字符串

◆ toArray() [1/2]

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

在文件 dl_type_convert.h 第 24 行定义.

◆ toArray() [2/2]

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

在文件 dl_type_convert.h 第 60 行定义.

◆ toArrayImp()

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

在文件 dl_type_convert.h 第 52 行定义.

◆ toLonger() [1/2]

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

长度+M

在文件 dl_type_convert.h 第 202 行定义.

◆ toLonger() [2/2]

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

在文件 dl_type_convert.h 第 212 行定义.

◆ toPoint() [1/2]

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

转换到Point,变长参数

在文件 dl_type_convert.h 第 79 行定义.

◆ toPoint() [2/2]

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

转换到Point,已知长度

在文件 dl_type_convert.h 第 45 行定义.

◆ toPosition() [1/2]

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

转换到Position,变长参数

在文件 dl_type_convert.h 第 70 行定义.

◆ toPosition() [2/2]

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

转换到Position,已知长度

在文件 dl_type_convert.h 第 37 行定义.

◆ toShorter()

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

长度-M

在文件 dl_type_convert.h 第 223 行定义.

◆ toSize() [1/2]

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

转换到Size,变长参数

注解
出现负数触发断言

在文件 dl_type_convert.h 第 97 行定义.

◆ toSize() [2/2]

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

在文件 dl_type_convert.h 第 103 行定义.

◆ toSizeDefault()

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

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

在文件 dl_type_convert.h 第 137 行定义.

◆ toSizeNeg2Zero()

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

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

在文件 dl_type_convert.h 第 118 行定义.

◆ toSizeT() [1/2]

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

转换到Size,变长参数

注解
出现负数触发断言

在文件 dl_type_convert.h 第 150 行定义.

◆ toSizeT() [2/2]

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

在文件 dl_type_convert.h 第 156 行定义.

◆ toSizeTDefault()

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

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

在文件 dl_type_convert.h 第 190 行定义.

◆ toSizeTNeg2Zero()

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

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

在文件 dl_type_convert.h 第 171 行定义.

◆ toVector()

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

在文件 dl_type_convert.h 第 233 行定义.

◆ 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.h 第 20 行定义.

◆ AXIS_X

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

在文件 dl_transform.h 第 35 行定义.

◆ AXIS_Y

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

在文件 dl_transform.h 第 36 行定义.

◆ AXIS_Z

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

在文件 dl_transform.h 第 37 行定义.

◆ 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.h 第 31 行定义.

◆ ENABLE_VALIDATION_LAYERS

bool dl::ENABLE_VALIDATION_LAYERS = true
constexpr

在文件 dl_vk.h 第 120 行定义.

◆ 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_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_midi

Midi* dl::g_midi
extern

◆ g_mod

ModManager* dl::g_mod
extern

◆ g_modelLoader

ModelLoader* dl::g_modelLoader
extern

◆ g_net

Network* dl::g_net
extern

◆ g_physics

Physics* dl::g_physics
extern

◆ g_scene

UI::SceneManager* dl::g_scene
extern

◆ g_script

ScriptSystem* dl::g_script
extern

◆ g_svn

SvnManager* dl::g_svn
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

◆ LENGTH_NORMAL

Float dl::LENGTH_NORMAL = 32.0f
constexpr

在文件 dl_sprite.h 第 31 行定义.

◆ NETWORK_MESSAGE_TAG

uint32_t dl::NETWORK_MESSAGE_TAG = 0x1efe9722
constexpr

在文件 dl_net.h 第 24 行定义.

◆ NULL_VALUE_STRUCT

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

在文件 dl_value.h 第 442 行定义.

◆ NULL_VALUE_VECTOR

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

在文件 dl_value.h 第 443 行定义.

◆ NUM_2D_INDEX

size_t dl::NUM_2D_INDEX = 6 * NUM_MAX_2D_SPRITE
constexpr

在文件 dl_vk.h 第 101 行定义.

◆ NUM_BONE

size_t dl::NUM_BONE = 4
constexpr

在文件 dl_vertex.h 第 63 行定义.

◆ NUM_GFX

std::size_t dl::NUM_GFX = 12
constexpr

在文件 dl_vk.h 第 131 行定义.

◆ NUM_GFX_HALF

std::size_t dl::NUM_GFX_HALF = NUM_GFX / 2
constexpr

在文件 dl_vk.h 第 132 行定义.

◆ NUM_GFX_QUAD

std::size_t dl::NUM_GFX_QUAD = NUM_GFX / 4
constexpr

在文件 dl_vk.h 第 133 行定义.

◆ NUM_MAX_2D_SPRITE

size_t dl::NUM_MAX_2D_SPRITE = 402400
constexpr

在文件 dl_vk.h 第 99 行定义.

◆ NUM_MAX_ACTOR

size_t dl::NUM_MAX_ACTOR = 10240
constexpr

在文件 dl_vk.h 第 128 行定义.

◆ NUM_MAX_BONE

size_t dl::NUM_MAX_BONE = 128
constexpr

在文件 dl_vk.h 第 92 行定义.

◆ NUM_MAX_DESCRIPTOR_POOL

size_t dl::NUM_MAX_DESCRIPTOR_POOL = NUM_MAX_FRAME_IN_FLIGHT * NUM_MAX_PRIMITIVE * 2
constexpr

在文件 dl_vk.h 第 88 行定义.

◆ NUM_MAX_DESCRIPTOR_POOL_2D

size_t dl::NUM_MAX_DESCRIPTOR_POOL_2D = NUM_MAX_FRAME_IN_FLIGHT * NUM_MAX_DRAW_CALL_2D
constexpr

在文件 dl_vk.h 第 103 行定义.

◆ NUM_MAX_DRAW_CALL_2D

size_t dl::NUM_MAX_DRAW_CALL_2D = 100
constexpr

在文件 dl_vk.h 第 97 行定义.

◆ NUM_MAX_FILE

size_t dl::NUM_MAX_FILE = 256
constexpr

可加载音频文件上限

在文件 dl_audio.h 第 30 行定义.

◆ NUM_MAX_FRAME_IN_FLIGHT

size_t dl::NUM_MAX_FRAME_IN_FLIGHT = 2
constexpr

在文件 dl_vk.h 第 84 行定义.

◆ NUM_MAX_GAME_PAD

size_t dl::NUM_MAX_GAME_PAD = 4
constexpr

手柄数量上限

在文件 dl_input.h 第 25 行定义.

◆ NUM_MAX_JOINT

size_t dl::NUM_MAX_JOINT = 256
constexpr

在文件 dl_vk.h 第 94 行定义.

◆ NUM_MAX_MATERIAL

size_t dl::NUM_MAX_MATERIAL = 50
constexpr

在文件 dl_vk.h 第 90 行定义.

◆ NUM_MAX_PRIMITIVE

size_t dl::NUM_MAX_PRIMITIVE = 1024
constexpr

在文件 dl_vk.h 第 86 行定义.

◆ NUM_MAX_ROOT_COOR

size_t dl::NUM_MAX_ROOT_COOR = 32
constexpr

在文件 dl_vk.h 第 107 行定义.

◆ NUM_MIPMAP_2D

size_t dl::NUM_MIPMAP_2D = 8
constexpr

在文件 dl_render_def.h 第 20 行定义.

◆ NUM_START_2D_VERTEX

size_t dl::NUM_START_2D_VERTEX = 4 * 1024
constexpr

在文件 dl_vk.h 第 105 行定义.

◆ OPEN_FILL_MODE_NON_SOLID

bool dl::OPEN_FILL_MODE_NON_SOLID = false
constexpr

在文件 dl_vk.h 第 112 行定义.

◆ OPEN_SAMPLE_SHADING

bool dl::OPEN_SAMPLE_SHADING = false
constexpr

在文件 dl_vk.h 第 110 行定义.

◆ POS_NORMAL

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

在文件 dl_sprite.h 第 33 行定义.

◆ POS_ZERO

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

在文件 dl_sprite.h 第 32 行定义.

◆ QUAD_DEFAULT_SPRITE

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

在文件 dl_sprite.h 第 34 行定义.

◆ SCRIPT_INDEX_NAG_1

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

在文件 dl_script.h 第 40 行定义.

◆ SCRIPT_INDEX_VS_0

ScriptIndexVS dl::SCRIPT_INDEX_VS_0 = 0
constexpr

在文件 dl_script.h 第 41 行定义.

◆ SCRIPT_INDEX_VS_NAG_1

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

在文件 dl_script.h 第 42 行定义.

◆ SCRIPT_INDEX_VS_NAG_2

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

在文件 dl_script.h 第 43 行定义.

◆ SCRIPT_TEST_ASSERT

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

在文件 dl_script_test.h 第 37 行定义.

◆ SCRIPT_TEST_BASE

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

在文件 dl_script_test.h 第 18 行定义.

◆ SCRIPT_TEST_EXPR

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

在文件 dl_script_test.h 第 22 行定义.

◆ 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.h 第 43 行定义.

◆ SCRIPT_TEST_STRING

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

在文件 dl_script_test.h 第 31 行定义.

◆ SCRIPT_TEST_VECTOR

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

在文件 dl_script_test.h 第 62 行定义.

◆ SIZE_DEFAULT_SPRITE

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

在文件 dl_sprite.h 第 35 行定义.

◆ SIZE_SPRITE_BORDER

unsigned dl::SIZE_SPRITE_BORDER = 8
constexpr

在文件 dl_render_def.h 第 21 行定义.

◆ SIZE_SPRITE_DEFAULT

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

在文件 dl_factory.h 第 32 行定义.

◆ SIZE_STREAM_INPUT_CONTAINER_CHECK

size_t dl::SIZE_STREAM_INPUT_CONTAINER_CHECK = 100000000
constexpr

在文件 dl_stream_input.h 第 28 行定义.

◆ SIZE_TEXTURE_2D

unsigned dl::SIZE_TEXTURE_2D = 4096
constexpr

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

在文件 dl_render_def.h 第 18 行定义.

◆ SIZE_TEXTURE_2D_SIZE

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

在文件 dl_render_def.h 第 19 行定义.

◆ SIZE_TEXTURE_PACK_DH

unsigned dl::SIZE_TEXTURE_PACK_DH = 2
constexpr

在文件 dl_render_def.h 第 22 行定义.

◆ STR_PATH_2D

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

在文件 dl_factory.h 第 33 行定义.

◆ STR_PATH_3D

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

在文件 dl_factory.h 第 34 行定义.

◆ USE_MAPPED_2D_UBO

bool dl::USE_MAPPED_2D_UBO = false
constexpr

在文件 dl_vk.h 第 136 行定义.

◆ VERSION_MODEL_CACHE

uint32_t dl::VERSION_MODEL_CACHE = 0
constexpr

在文件 dl_model_cache.h 第 23 行定义.

◆ Z_DEFAULT

float dl::Z_DEFAULT = 0.0f
constexpr

在文件 dl_sprite.h 第 25 行定义.

◆ Z_DEFAULT_PANEL

float dl::Z_DEFAULT_PANEL = Math::OffsetOrder(Z_DEFAULT_UI)
constexpr

在文件 dl_sprite.h 第 29 行定义.

◆ Z_DEFAULT_UI

float dl::Z_DEFAULT_UI = Math::OffsetOrder(Z_DEFAULT)
constexpr

在文件 dl_sprite.h 第 27 行定义.