该文被密码保护。 阅读全文
posted @ 2024-03-19 02:29 洛笔达 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 问题代码 #include <memory> #include <stdio.h> using namespace std; class A; class B { public: B() { printf("B()\n"); } ~B() { printf("~B()\n"); } void pri 阅读全文
posted @ 2024-01-13 20:44 洛笔达 阅读(32) 评论(0) 推荐(1) 编辑
摘要: 这些工具都有各自的优缺点,最好用的工具取决于你的具体需求和偏好。以下是它们的简要介绍: Bazel:Bazel 是一个由 Google 开发的构建工具,主要用于构建大型、复杂的软件项目。Bazel 的主要优点包括高速、可扩展性好、构建结果可重复、支持多语言等等。Bazel 适用于大型项目和工程师数量 阅读全文
posted @ 2023-02-15 11:17 洛笔达 阅读(1974) 评论(0) 推荐(1) 编辑
摘要: # 安装和使用 autoreconf 是一个用于重新生成 configure 脚本的工具。它通常用于更新源代码仓库中的自动构建系统,以适应代码更改或依赖关系的变化。 在使用 autoreconf 之前,您需要先安装必要的开发工具,如 autoconf,automake 和 libtool。您可以使用 阅读全文
posted @ 2023-02-10 15:00 洛笔达 阅读(9491) 评论(0) 推荐(0) 编辑
摘要: 转载自 https://zhuanlan.zhihu.com/p/143361527 如何维护和重构超大类,类是会增长和变化的。 理想的类实际工作中的类 一个类是一个清晰的抽象,只处理明确的责任, 但在实际工作中,类会不断成长扩展。随着责任不断增加,类就会变成一团乱麻。 提炼信号 拥有大量函数和数据 阅读全文
posted @ 2023-01-13 12:01 洛笔达 阅读(65) 评论(0) 推荐(0) 编辑
摘要: # 搭建RTMP server ### install nginx ``` wget https://nginx.org/download/nginx-1.20.1.tar.gz tar -zxvf nginx-1.20.1.tar.gz wget https://github.com/arut/n 阅读全文
posted @ 2023-01-12 14:29 洛笔达 阅读(158) 评论(0) 推荐(0) 编辑
摘要: vukan 兼容性 Nvidia https://vulkan.gpuinfo.org/listdevicescoverage.php?extension=VK_KHR_external_memory_win32&platform=all vulkan最早可以支持GTX680 (2012年) 参考 阅读全文
posted @ 2022-12-06 16:32 洛笔达 阅读(92) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2022-12-02 14:28 洛笔达 阅读(0) 评论(0) 推荐(0) 编辑
摘要: glm 中乘法和求逆运算的结果 // 5 6 * 1 3 // 2 4 glm::vec2 x(5, 6); glm::mat2 m(1, 2, 3, 4); //memory locates 1 2 3 4 too printf("X: %.2f %.2f\n", x[0], x[1]); pri 阅读全文
posted @ 2022-10-27 20:07 洛笔达 阅读(152) 评论(0) 推荐(0) 编辑
摘要: define 的骚用法 可以实现模板 define 字符串连接以及变量名分段联结用法 #define A(x) test_##x A(int8) --> test_int8 test_int8(1) #define B(x) #@x B(t) --> 't' #define C(x) #x C(te 阅读全文
posted @ 2022-09-27 12:26 洛笔达 阅读(518) 评论(0) 推荐(0) 编辑