摘要: 正好在实现一个Vector2类型: template<typename T> struct Vector2; template<typename T> Vector2<T> operator+(const Vector2<T>& v1, const Vector2<T>& v2); template 阅读全文
posted @ 2021-04-21 10:30 威化饼干 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 虚析构函数是可以声明的,这意味着需要由于子类来实现接口的析构函数。 reference: https://blog.csdn.net/wufeifan_learner/article/details/88804072 class A{ public: A(){ cout<<"构造函数A"<<endl 阅读全文
posted @ 2021-03-24 23:56 威化饼干 阅读(0) 评论(0) 推荐(0) 编辑
摘要: template < typename TO, typename FROM > inline TO union_cast( FROM value ) { union { FROM from; TO to; } convert; convert.from = value; return convert 阅读全文
posted @ 2021-02-02 18:23 威化饼干 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 可以在任何地方建立RC文件 如果建立的RC文件没有在Properties中设置为Included In Project的话,Instance中是不会包含这个文件的 Resource.h是VS会默认使用的方式,也就是通过宏定义一个ID,并通过ID找到RC文件中对应的文件名 资产需要和RC文件呆在同一个 阅读全文
posted @ 2021-01-20 23:03 威化饼干 阅读(76) 评论(0) 推荐(0) 编辑
摘要: Link to StackOverflow: Why does the C++ map type argument require an empty constructor when using [] by Nick Bolton? Q: Not a major issue, just annoyi 阅读全文
posted @ 2019-07-12 09:57 威化饼干 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 线与面相交的计算 https://zh.wikipedia.org/wiki/%E7%BA%BF%E9%9D%A2%E4%BA%A4%E7%82%B9 什么是参数方程? 参数是参变数的简称。它是研究运动等一类问题中产生的。质点运动时,它的位置必然与时间有关系,也就是说,质的坐标x,y与时间t之间有函 阅读全文
posted @ 2019-04-18 04:08 威化饼干 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 请简述Unity中的四种坐标系 "http://liuqingwen.me/blog/2017/07/31/understanding coordinate system in unity3d/" 阅读全文
posted @ 2019-04-12 09:32 威化饼干 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Entitas Learning Document You can find Entitas project in there "Entitas for Unity Github" There are a short, simple introduction for new in Entitas F 阅读全文
posted @ 2019-03-18 10:47 威化饼干 阅读(384) 评论(0) 推荐(0) 编辑
摘要: Compiler Error C2719 'parameter': formal parameter with __declspec(align(' ')) won't be aligned The align __declspec modifier is not permitted on func 阅读全文
posted @ 2019-01-27 19:03 威化饼干 阅读(979) 评论(0) 推荐(0) 编辑
摘要: [TOC] Loads the shader files and makes it usable to DirectX and the GPU 加载着色器文件并使其可用于DirectX和GPU Now we will start with one of the more important func 阅读全文
posted @ 2019-01-26 23:17 威化饼干 阅读(1243) 评论(0) 推荐(0) 编辑