|
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 <, 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 ¶m) |
| 创建一个Quad,根据参数 | |
| constexpr Rect | createRect (const Size &size) |
| 创建一个Rect,依据大小 | |
| constexpr Rect | createRect (const Point <, const Size &size) |
| 创建一个Rect,依据左上角和大小 | |
| constexpr Rect | createRect (const Point <, const Point &rb) |
| 创建一个Rect,依据左上角和右下角 | |
| constexpr RectU | createRectU (const Size &size) |
| 创建一个RectU,依据大小 | |
| constexpr RectU | createRectU (unsigned size) |
| 创建一个正方形RectU,依据大小 | |
| constexpr RectU | createRectU (const PointU <, const Size &size) |
| 创建一个Rect,依据左上角和大小 | |
| constexpr RectF | createRectF (const Position <, 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) |
| using dl::Buffer = std::vector<std::byte> |
在文件 dl_buffer.h 第 22 行定义.
| using dl::BufferList = ListMultiThread<Buffer> |
| using dl::BufferView = std::span<std::byte> |
在文件 dl_buffer.h 第 23 行定义.
| using dl::Color = std::array<float, 4> |
在文件 dl_type_def.h 第 50 行定义.
| using dl::Color3F = std::array<float, 3> |
在文件 dl_color.h 第 23 行定义.
| using dl::Float = float |
在文件 dl_type_def.h 第 37 行定义.
| using dl::FloatTime = float |
在文件 dl_type_def.h 第 49 行定义.
| using dl::gcActor = GC<Actor> |
在文件 dl_actor.h 第 86 行定义.
| using dl::gcAnimation = GC<Animation> |
在文件 dl_animation.h 第 113 行定义.
| using dl::gcSound = GC<Sound> |
在文件 dl_audio.h 第 75 行定义.
| using dl::gcSprite = GC<Sprite> |
在文件 dl_sprite.h 第 225 行定义.
| using dl::gcText = GC<Text> |
在文件 dl_image.h 第 28 行定义.
| using dl::Matrix4 = Matrix<Float, 4, 4> |
在文件 dl_matrix.h 第 231 行定义.
在文件 dl_type_def.h 第 23 行定义.
| using dl::Point0 = std::array<int, 0> |
在文件 dl_type_def.h 第 18 行定义.
| using dl::Point0U = std::array<unsigned, 0> |
在文件 dl_type_def.h 第 27 行定义.
| using dl::Point1 = std::array<int, 1> |
在文件 dl_type_def.h 第 19 行定义.
| using dl::Point1U = std::array<unsigned, 1> |
在文件 dl_type_def.h 第 28 行定义.
| using dl::Point2 = std::array<int, 2> |
在文件 dl_type_def.h 第 20 行定义.
| using dl::Point2U = std::array<unsigned, 2> |
在文件 dl_type_def.h 第 29 行定义.
| using dl::Point3 = std::array<int, 3> |
在文件 dl_type_def.h 第 21 行定义.
| using dl::Point3U = std::array<unsigned, 3> |
在文件 dl_type_def.h 第 30 行定义.
| using dl::Point4 = std::array<int, 4> |
在文件 dl_type_def.h 第 22 行定义.
| using dl::Point4U = std::array<unsigned, 4> |
在文件 dl_type_def.h 第 31 行定义.
| using dl::PointU = Point2U |
在文件 dl_type_def.h 第 32 行定义.
| using dl::Position = Position2 |
在文件 dl_type_def.h 第 43 行定义.
| using dl::Position0 = std::array<Float, 0> |
在文件 dl_type_def.h 第 38 行定义.
| using dl::Position1 = std::array<Float, 1> |
在文件 dl_type_def.h 第 39 行定义.
| using dl::Position2 = std::array<Float, 2> |
在文件 dl_type_def.h 第 40 行定义.
| using dl::Position3 = std::array<Float, 3> |
在文件 dl_type_def.h 第 41 行定义.
| using dl::Position4 = std::array<Float, 4> |
在文件 dl_type_def.h 第 42 行定义.
在文件 dl_type_def.h 第 47 行定义.
在文件 dl_type_def.h 第 25 行定义.
在文件 dl_type_def.h 第 44 行定义.
在文件 dl_type_def.h 第 35 行定义.
| using dl::ScriptFloat = double |
在文件 dl_script.h 第 28 行定义.
| using dl::ScriptFunction = std::function<int(ScriptVM&, const ScriptParam&)> |
在文件 dl_script.h 第 38 行定义.
| using dl::ScriptIndex = uint32_t |
在文件 dl_script.h 第 26 行定义.
| using dl::ScriptIndexVS = uint8_t |
在文件 dl_script.h 第 30 行定义.
| using dl::ScriptInt = int64_t |
在文件 dl_script.h 第 27 行定义.
| using dl::ScriptParam = ScriptVector |
在文件 dl_script.h 第 37 行定义.
| using dl::ScriptString = std::string |
在文件 dl_script.h 第 29 行定义.
| using dl::ScriptTable = std::unordered_map<std::string, ScriptVar> |
在文件 dl_script.h 第 36 行定义.
| using dl::ScriptVector = std::vector<ScriptVar> |
在文件 dl_script.h 第 35 行定义.
在文件 dl_type_def.h 第 34 行定义.
| using dl::SizeT = std::array<std::size_t, 2> |
在文件 dl_type_def.h 第 53 行定义.
| using dl::Triangle = std::array<Position, 3> |
在文件 dl_type_def.h 第 46 行定义.
| using dl::UdpMessageList = ListMultiThread<UdpMessage> |
| using dl::UV = std::array<float, 2> |
在文件 dl_sprite.h 第 37 行定义.
| using dl::ValueTable = std::unordered_map<std::string, Value, string_hash, std::equal_to<>> |
在文件 dl_value.h 第 372 行定义.
|
strong |
| 枚举值 | |
|---|---|
| STOP | 播完后暂停到最后一帧 |
| DISAPPEAR | 播完后不显示 |
| START | 播完后回到起始 |
在文件 dl_animation.h 第 26 行定义.
|
strong |
| 枚举值 | |
|---|---|
| NORMAL | |
| PAUSE | |
| STOP | |
在文件 dl_animation.h 第 20 行定义.
|
strong |
|
strong |
在文件 dl_input.h 第 82 行定义.
|
strong |
| 枚举值 | |
|---|---|
| X | x轴移动 |
| Y | y轴移动 |
| XY | xy同时移动 |
| ORIGIN | 不变位置(主要为了简化计算) |
在文件 dl_layout.h 第 18 行定义.
|
strong |
| 枚举值 | |
|---|---|
| UNKNOWN | |
| LEFT | |
| RIGHT | |
| MIDDLE | |
| KEY4 | |
| KEY5 | |
| KEY6 | |
| KEY7 | |
| LAST | |
| MAX_NUM | |
在文件 dl_input.h 第 68 行定义.
|
strong |
| 枚举值 | |
|---|---|
| UP | |
| DOWN | |
| LEFT | |
| RIGHT | |
| START | |
| BACK | |
| LS | |
| RS | |
| LB | |
| RB | |
| A | |
| B | |
| X | |
| Y | |
在文件 dl_input.h 第 27 行定义.
|
strong |
| 枚举值 | |
|---|---|
| FIFO | |
| FILO | |
在文件 dl_thread_task.h 第 20 行定义.
|
strong |
|
strong |
|
strong |
| 枚举值 | |
|---|---|
| E_expr | |
| E_if | |
| E_ifelse | |
| E_else | |
| E_while | |
| E_for | |
| E_vector | |
| E_table | |
在文件 dl_script.h 第 237 行定义.
|
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 行定义.
|
strong |
| 枚举值 | |
|---|---|
| NORMAL | |
| INTGER | |
| FLOAT | |
在文件 dl_string.h 第 147 行定义.
|
strong |
|
strong |
|
strong |
实际类型
| 枚举值 | |
|---|---|
| NONE | |
| BOOL | |
| CHAR | |
| UCHAR | |
| SHORT | |
| USHORT | |
| INT | |
| UINT | |
| INT64 | |
| UINT64 | |
| FLOAT | |
| DOUBLE | |
| POINTER | |
| STRUCT | |
| STRING | |
| ARRAY | |
| VECTOR | |
| MAP | |
在文件 dl_value.h 第 25 行定义.
在文件 dl_algorithm.h 第 87 行定义.
| void dl::as_register_base | ( | AngelScript * | as | ) |
| void dl::as_register_ui | ( | AngelScript * | as | ) |
|
inline |
追加数据
在文件 dl_buffer.h 第 55 行定义.
|
constexpr |
在文件 dl_type_convert.h 第 86 行定义.
在文件 dl_value.h 第 65 行定义.
|
inline |
反色,不包含透明通道
在文件 dl_color.h 第 94 行定义.
在文件 dl_color.h 第 100 行定义.
|
inline |
颜色插值
在文件 dl_color.h 第 114 行定义.
|
inline |
限制颜色值 到[0, 1]
在文件 dl_color.h 第 86 行定义.
加上const修饰
在文件 dl_algorithm.h 第 196 行定义.
|
inline |
在文件 dl_buffer.h 第 63 行定义.
|
inline |
在文件 dl_buffer.h 第 39 行定义.
|
inline |
创建buffer视图
在文件 dl_buffer.h 第 31 行定义.
|
inline |
在文件 dl_buffer.h 第 44 行定义.
|
inline |
在文件 dl_buffer.h 第 49 行定义.
|
inline |
创建buffer视图
在文件 dl_buffer.h 第 26 行定义.
|
inline |
在文件 dl_buffer.h 第 35 行定义.
|
inline |
|
constexpr |
|
constexpr |
创建颜色
在文件 dl_color.h 第 77 行定义.
|
inline |
|
inline |
在文件 dl_component.h 第 282 行定义.
创建图像
| [in] | size | 大小 |
| [in] | color | 颜色 |
| 用户需要使用delete释放获得的指针,不会返回失败 |
| Image * dl::createImage | ( | std::string_view | path_name | ) |
创建图像
| [in] | path_name | 路径 |
| 用户需要使用delete释放获得的指针,除非失败返回了nullptr |
创建图像 从svg
| [in] | path_name | 路径 |
| [in] | size | 大小 |
| 用户需要使用delete释放获得的指针,除非失败返回了nullptr |
| Image * dl::createImageWebp | ( | BufferView | buf | ) |
| Image * dl::createImageWebp | ( | std::string_view | path_name | ) |
|
inline |
|
inline |
在文件 dl_locator.h 第 155 行定义.
|
inline |
返回start位置
在文件 dl_locator.h 第 166 行定义.
创建一个Quad,通过两点和线条宽度
在文件 dl_type_create.h 第 67 行定义.
在文件 dl_type_create.h 第 55 行定义.
在文件 dl_type_create.h 第 60 行定义.
|
constexpr |
|
constexpr |
向量叉乘
在文件 dl_algorithm.h 第 46 行定义.
从容器container中移除 最后 匹配到的a元素 之前(包含a)的所有元素,如果没有匹配到,则什么都不做。
| container | 操作的容器 | |
| [in] | a | 要匹配的元素 |
在文件 dl_algorithm.h 第 105 行定义.
成对遍历
| [in] | container | 容器 |
| [in] | func | 操作函数 |
| [in] | ring | 为真时,末尾元素 与 首元素成对再操作一次 |
在文件 dl_algorithm.h 第 515 行定义.
遍历树(使用栈,深度优先)
| [in] | root | 根节点 |
| [in] | func_child | 获取子节点函数 |
| [in] | func | 操作节点函数 |
在文件 dl_algorithm.h 第 544 行定义.
在文件 dl_type_def.h 第 80 行定义.
|
inline |
在文件 dl_animation_info.h 第 68 行定义.
| auto dl::get_gc | ( | Args &&... | args | ) |
|
inline |
在文件 dl_wrap_glfw.h 第 56 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 38 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 61 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 44 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 60 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 62 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 34 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 55 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 58 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 63 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 57 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 54 行定义.
|
inline |
在文件 dl_wrap_glfw.h 第 36 行定义.
是否数值在[0, 1]
在文件 dl_algorithm.h 第 37 行定义.
|
inline |
在文件 dl_color.h 第 107 行定义.
|
inline |
| std::string_view dl::lang | ( | std::string_view | tag_name | ) |
返回一个语言配置的字符串,传入 menu.start
| 失败返回特定字符串,并输出错误 |
| std::string_view dl::lang_auto | ( | std::string_view | tag_name | ) |
返回一个语言配置的字符串,传入 @开头表示是语言配置,否则原样返回
| 失败返回特定字符串,并输出错误 |
| bool dl::limit_bigger | ( | std::array< T, N > & | a, |
| const std::array< T, N > & | limit ) |
限制到大于某个值,如果修改了原值则返回true
在文件 dl_algorithm.h 第 72 行定义.
| void dl::log | ( | std::string_view | str | ) |
| void dl::log | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
以当前设置输出
| void dl::log_damage0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_err0 | ( | const std::exception & | e | ) |
| void dl::log_err0 | ( | const std::exception & | e, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_err0 | ( | const std::system_error & | e, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_err0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_info0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_msg0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_notice0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_pause0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_test0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::log_warn0 | ( | std::string_view | str, |
| const std::source_location | location = std::source_location::current() ) |
| void dl::lua_register_all | ( | lua_State * | L | ) |
| void dl::lua_register_base | ( | lua_State * | L | ) |
| void dl::lua_register_factory | ( | lua_State * | L | ) |
| void dl::lua_register_gfx | ( | lua_State * | L | ) |
| void dl::lua_register_system | ( | lua_State * | L | ) |
| void dl::lua_register_ui | ( | lua_State * | L | ) |
| void dl::operate_front | ( | C & | container, |
| F | func ) |
从容器container不断取出第一个元素,执行操作
| container | 操作的容器 | |
| [in] | func | 对元素执行的操作 |
在文件 dl_algorithm.h 第 122 行定义.
|
inline |
在文件 dl_color.h 第 133 行定义.
|
inlineconstexpr |
在文件 dl_type_def.h 第 55 行定义.
|
inlineconstexpr |
在文件 dl_type_def.h 第 59 行定义.
|
inlineconstexpr |
在文件 dl_type_def.h 第 63 行定义.
|
inlineconstexpr |
在文件 dl_type_def.h 第 67 行定义.
|
inlineconstexpr |
提前支持标准库写法,不过clang必须带下划线
在文件 dl_type_def.h 第 74 行定义.
|
constexpr |
在文件 dl_type_op.h 第 59 行定义.
|
constexpr |
在文件 dl_type_op.h 第 120 行定义.
|
constexpr |
在文件 dl_type_op.h 第 51 行定义.
|
constexpr |
在文件 dl_type_op.h 第 112 行定义.
|
constexpr |
在文件 dl_type_op.h 第 152 行定义.
|
constexpr |
在文件 dl_type_op.h 第 29 行定义.
|
constexpr |
在文件 dl_type_op.h 第 90 行定义.
|
inline |
在文件 dl_string.h 第 58 行定义.
|
inline |
在文件 dl_string.h 第 63 行定义.
|
constexpr |
在文件 dl_type_op.h 第 21 行定义.
|
constexpr |
在文件 dl_type_op.h 第 82 行定义.
|
inline |
在文件 dl_string.h 第 53 行定义.
|
constexpr |
在文件 dl_type_op.h 第 143 行定义.
|
constexpr |
在文件 dl_type_op.h 第 44 行定义.
|
constexpr |
在文件 dl_type_op.h 第 105 行定义.
|
constexpr |
在文件 dl_type_op.h 第 36 行定义.
|
constexpr |
在文件 dl_type_op.h 第 97 行定义.
|
constexpr |
在文件 dl_type_op.h 第 74 行定义.
|
constexpr |
在文件 dl_type_op.h 第 135 行定义.
|
constexpr |
在文件 dl_type_op.h 第 66 行定义.
|
constexpr |
在文件 dl_type_op.h 第 127 行定义.
| bool dl::operator== | ( | const Matrix< T, M, N > & | a, |
| const Matrix< T, M, N > & | b ) |
判断相等
在文件 dl_matrix.h 第 236 行定义.
查找算法
find,返回下标
find,返回下标
取地址,可用于右值
在文件 dl_algorithm.h 第 187 行定义.
限制数值到 [0, 1]
在文件 dl_algorithm.h 第 28 行定义.
| bool dl::saveImage | ( | const Image * | img, |
| std::string_view | path_name ) |
保存到图像
|
inline |
在文件 dl_model_loader.h 第 42 行定义.
返回符号,正数返回1、负数返回-1、0返回0
在文件 dl_algorithm.h 第 604 行定义.
|
inline |
以 元素 分割 容器
| [in] | container | 容器 |
| [in] | delimiter | 分割符 |
| [out] | ret | 返回分割之后的 |
在文件 dl_algorithm.h 第 312 行定义.
以 元素 分割 容器
| [in] | container | 容器 |
| [in] | delimiter | 分割符 |
| [out] | ret | 返回分割之后的 |
在文件 dl_algorithm.h 第 369 行定义.
| void dl::split_sub | ( | const T & | container, |
| const T & | delimiter, | ||
| std::vector< T > & | ret ) |
以 子串 分割 容器
| [in] | container | 容器 |
| [in] | delimiter | 分割符 |
| [out] | ret | 返回分割之后的 |
在文件 dl_algorithm.h 第 416 行定义.
|
consteval |
固定条件的字符串,生成唯一id
| [in] | str | 字符数组 |
在文件 dl_algorithm.h 第 623 行定义.
|
inline |
在文件 dl_layout.h 第 26 行定义.
| ValueType dl::String2ValueType | ( | std::string_view | str | ) |
| ValueTypeInfo dl::String2ValueTypeEx | ( | std::string_view | str | ) |
|
inline |
在文件 dl_script_test.h 第 68 行定义.
|
inline |
在文件 dl_script_test.h 第 76 行定义.
|
inline |
在文件 dl_animation_info.h 第 43 行定义.
|
inline |
在文件 dl_script.h 第 173 行定义.
|
inline |
在文件 dl_sprite.h 第 53 行定义.
| std::string dl::to_string | ( | const std::array< T, N > & | arr, |
| std::string_view | delimiter = ", " ) |
array通用to_string
在文件 dl_string.h 第 87 行定义.
| std::string dl::to_string | ( | const Value & | v | ) |
值转字符串
|
inline |
在文件 dl_string.h 第 913 行定义.
| std::string_view dl::to_string | ( | ScriptOperator | op | ) |
| std::string_view dl::to_string | ( | ScriptToken::Type | type | ) |
| std::string dl::to_string | ( | std::error_code | code | ) |
错误码信息
| std::string_view dl::to_string | ( | ValueType | v | ) |
类型转字符串
|
inline |
在文件 dl_string.h 第 127 行定义.
| std::string dl::to_string< BufferView > | ( | BufferView | buf | ) |
buf转为utf8字符串(不进行检查)
| std::string dl::to_string_auto | ( | BufferView | buf, |
| bool | add_tag = false ) |
buf转为字符串,若不为utf8则转为16进制
| std::string dl::to_string_check | ( | BufferView | buf, |
| bool | tips = true ) |
buf转为utf8字符串(进行检查)
| std::string dl::to_string_ex | ( | const std::vector< T > & | vec, |
| std::string_view | delimiter = ", " ) |
vector通用to_string
在文件 dl_string.h 第 103 行定义.
| std::string dl::to_string_hex | ( | BufferView | buf, |
| bool | add_tag = false ) |
buf转为16进制字符串
|
constexpr |
在文件 dl_type_convert.h 第 24 行定义.
|
constexpr |
在文件 dl_type_convert.h 第 60 行定义.
|
constexpr |
在文件 dl_type_convert.h 第 52 行定义.
|
constexpr |
长度+M
在文件 dl_type_convert.h 第 202 行定义.
在文件 dl_type_convert.h 第 212 行定义.
|
constexpr |
转换到Point,变长参数
在文件 dl_type_convert.h 第 79 行定义.
|
constexpr |
转换到Point,已知长度
在文件 dl_type_convert.h 第 45 行定义.
|
constexpr |
转换到Position,变长参数
在文件 dl_type_convert.h 第 70 行定义.
|
constexpr |
转换到Position,已知长度
在文件 dl_type_convert.h 第 37 行定义.
|
constexpr |
长度-M
在文件 dl_type_convert.h 第 223 行定义.
|
constexpr |
|
constexpr |
在文件 dl_type_convert.h 第 103 行定义.
|
constexpr |
有符号转无符号,直接转换,负数会直接转为大正数
在文件 dl_type_convert.h 第 137 行定义.
|
constexpr |
转换到Size,出现负数时转为0
在文件 dl_type_convert.h 第 118 行定义.
|
constexpr |
|
constexpr |
在文件 dl_type_convert.h 第 156 行定义.
|
constexpr |
有符号转无符号,直接转换,负数会直接转为大正数
在文件 dl_type_convert.h 第 190 行定义.
|
constexpr |
转换到Size,出现负数时转为0
在文件 dl_type_convert.h 第 171 行定义.
在文件 dl_type_convert.h 第 233 行定义.
| std::string_view dl::Type2CppType | ( | ValueType | v | ) |
类型转C++类型字符串
|
constexpr |
在文件 dl_animation_info.h 第 20 行定义.
|
constexpr |
在文件 dl_transform.h 第 35 行定义.
|
constexpr |
在文件 dl_transform.h 第 36 行定义.
|
constexpr |
在文件 dl_transform.h 第 37 行定义.
|
constexpr |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
constexpr |
在文件 dl_sprite.h 第 31 行定义.
| const ValueStruct dl::NULL_VALUE_STRUCT = { "null struct" } |
在文件 dl_value.h 第 442 行定义.
| const ValueVector dl::NULL_VALUE_VECTOR = { ValueType::NONE } |
在文件 dl_value.h 第 443 行定义.
|
constexpr |
|
constexpr |
在文件 dl_vertex.h 第 63 行定义.
|
constexpr |
|
constexpr |
|
constexpr |
可加载音频文件上限
在文件 dl_audio.h 第 30 行定义.
|
constexpr |
手柄数量上限
在文件 dl_input.h 第 25 行定义.
|
constexpr |
在文件 dl_render_def.h 第 20 行定义.
|
constexpr |
在文件 dl_sprite.h 第 33 行定义.
|
constexpr |
在文件 dl_sprite.h 第 32 行定义.
|
constexpr |
在文件 dl_sprite.h 第 34 行定义.
|
constexpr |
在文件 dl_script.h 第 40 行定义.
|
constexpr |
在文件 dl_script.h 第 41 行定义.
|
constexpr |
在文件 dl_script.h 第 42 行定义.
|
constexpr |
在文件 dl_script.h 第 43 行定义.
|
constexpr |
在文件 dl_script_test.h 第 37 行定义.
|
constexpr |
在文件 dl_script_test.h 第 18 行定义.
|
constexpr |
在文件 dl_script_test.h 第 22 行定义.
|
constexpr |
在文件 dl_script_test.h 第 43 行定义.
|
constexpr |
在文件 dl_script_test.h 第 31 行定义.
|
constexpr |
在文件 dl_script_test.h 第 62 行定义.
|
constexpr |
在文件 dl_sprite.h 第 35 行定义.
|
constexpr |
在文件 dl_render_def.h 第 21 行定义.
|
constexpr |
在文件 dl_factory.h 第 32 行定义.
|
constexpr |
在文件 dl_stream_input.h 第 28 行定义.
|
constexpr |
请勿随意修改,当你不清楚原理的时候
在文件 dl_render_def.h 第 18 行定义.
|
constexpr |
在文件 dl_render_def.h 第 19 行定义.
|
constexpr |
在文件 dl_render_def.h 第 22 行定义.
|
constexpr |
在文件 dl_factory.h 第 33 行定义.
|
constexpr |
在文件 dl_factory.h 第 34 行定义.
|
constexpr |
在文件 dl_model_cache.h 第 23 行定义.
|
constexpr |
在文件 dl_sprite.h 第 25 行定义.
|
constexpr |
在文件 dl_sprite.h 第 29 行定义.
|
constexpr |
在文件 dl_sprite.h 第 27 行定义.