随笔分类 -  程序开发

摘要:文章来源:https://0xrick.github.io/win-internals/pe4/ 目录简介NT Headers(IMAGE_NT_HEADERS)签名 SignatureFile Header(IMAGE_FILE_HEADER)Optional Header (IMAGE_OPTI 阅读全文
posted @ 2024-11-29 16:15 dewxin 阅读(159) 评论(0) 推荐(0)
摘要:https://0xrick.github.io/win-internals/pe3/ 目录简介DOS Header概览结构DOS Stub概览Rich Header 简介 上一篇文章我们简单地看了一下PE文件结构,这篇文章我们会讨论PE文件结构中的前两部分,DOS Header以及DOS Stub 阅读全文
posted @ 2024-11-28 22:04 dewxin 阅读(136) 评论(0) 推荐(0)
摘要:文章来源:https://0xrick.github.io/win-internals/pe2/ 目录简介PE文件结构预览Dos HeaderDOS StubNT HeadersSection HeadersSections总结 简介 该篇文章的目标是,在不涉及细节的情况下,简单介绍一下PE文件格式 阅读全文
posted @ 2024-11-28 21:08 dewxin 阅读(191) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/9271805/net-module-vs-assembly In .net the difference between an assembly and module is that a module does not con 阅读全文
posted @ 2024-11-27 21:13 dewxin 阅读(21) 评论(0) 推荐(0)
摘要:可以使用 SerializedProperty.NextVisible 函数 这里会返回 序列化的,并且在Inspector中可见的属性。 注意参数表示是否切换成子对象的属性。 第一步操作必须是true。 接着这个参数不一定强制实现, 如果一直是false,在访问完本层对象的property后,即使 阅读全文
posted @ 2024-11-13 21:51 dewxin 阅读(67) 评论(0) 推荐(0)
摘要:什么是枚举 the action of mentioning a number of things one by one 枚举的意思就是一个接一个提及一系列事物。 其中,这些事物需要有名字,才能被提及。以及需要有唯一标识该事物的方法。 形式一:Enum类 官方的枚举类型是最常用的枚举。每个枚举会生成 阅读全文
posted @ 2024-11-05 16:24 dewxin 阅读(38) 评论(0) 推荐(0)
摘要:本文参考了 https://www.cnblogs.com/Jean90/p/16193938.html 简介 PlayerLoop是Unity提供用于修改游戏循环中系统组成的接口。我们可以分别通过PlayerLoop.GetCurrentPlayerLoop和PlayerLoop.SetPlaye 阅读全文
posted @ 2024-06-24 21:27 dewxin 阅读(358) 评论(0) 推荐(0)
摘要:背景 使用Unity编辑器时,我们有时候会将服务端的一些信息通过Unity编辑,但由于这部分内容属于服务端,客户端仅限于编辑器中的编辑,我们并不希望将这部分内容打包出去。因此我们需要在打包时将其隐藏或者删除,但是又不影响编辑器的编辑。 打包相关的回调接口 IPreprocessBuildWithRe 阅读全文
posted @ 2024-06-10 20:17 dewxin 阅读(239) 评论(2) 推荐(0)
摘要:stackalloc 官方文档 https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/stackalloc A stackalloc expression allocates a block of m 阅读全文
posted @ 2024-06-08 20:54 dewxin 阅读(538) 评论(0) 推荐(0)
摘要:网友的笔记 https://blog.csdn.net/u012322710/article/details/50858216 Fiter mode过滤器模式 因为贴图在屏幕里肯定会存在放大,缩小的情况,这种时候就会出现锯齿。 今天看到一个视频有讲解到这一块。 在UNITY3D中点开一张贴图,Fit 阅读全文
posted @ 2024-05-23 16:28 dewxin 阅读(1338) 评论(0) 推荐(0)
摘要:最终效果 步骤 进入梦幻西游所在文件夹,打开font目录,拷贝华康圆体hkyt.ttf到Unity工程目录。 打开FontMaker,生成对应字体asset。此时的效果如下 可以看到,效果还不错,但是看着有点累。用腾讯QQ的截图软件可以对比细节。可以发现网易的字体普遍有明亮的结构。所以肯定调高了亮度 阅读全文
posted @ 2024-05-05 16:28 dewxin 阅读(173) 评论(0) 推荐(0)
摘要:原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-4.html 目录字间距调整对子 Kerning pairs应用字间距调整 Applying kerning The term kerning refers to specific info 阅读全文
posted @ 2024-03-29 01:16 dewxin 阅读(279) 评论(0) 推荐(0)
摘要:原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-3.html 目录基线,笔位置以及布局 Baseline, pens and layouts排版参数和包围盒 Typographic metrics and bounding boxes定位 阅读全文
posted @ 2024-03-27 16:34 dewxin 阅读(542) 评论(0) 推荐(0)
摘要:原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-7.html 目录矢量坐标 和 像素坐标 Vectorial versus pixel coordinatesFT_Bitmap描述符 The FT_Bitmap descriptor将轮廓 阅读全文
posted @ 2024-03-26 21:43 dewxin 阅读(285) 评论(0) 推荐(0)
摘要:FreeType是一款免费用于渲染字体的开源库。 在使用该类库时,最好先过一遍官方文档,其中FreeType Glyph Conventions部分的文章必读。 编译 我们可以进入下载界面,点击任意一个地址下载源码。 这里笔者使用的是2.13.2版本,解压后会获得一个freetype-2.13.2文 阅读全文
posted @ 2024-03-26 19:52 dewxin 阅读(5103) 评论(0) 推荐(0)
摘要:原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-2.html 目录像素,点,以及设备分辨率 Pixels, points, and device resolutions矢量表示 Vectorial representationHintin 阅读全文
posted @ 2024-03-24 21:44 dewxin 阅读(140) 评论(0) 推荐(0)
摘要:原文地址 https://freetype.org/freetype2/docs/glyphs/glyphs-1.html 目录字体文件,格式以及信息 (Font files, format and information)字符图形和映射 Character images and mappings字 阅读全文
posted @ 2024-03-23 23:56 dewxin 阅读(65) 评论(0) 推荐(0)
摘要:需求描述 我们需要实现一个类似英雄联盟中的技能CD遮罩,施放技能后,技能遮罩占满技能图标,随着时间推移,技能遮罩顺时针减少遮挡面积,CD结束时,遮罩应完全消失。 需求分析 由于每个时刻,都会有一条线从中心点射向上面那条边的中点,我们自然可以想到将遮罩面片分为8个三角形。 并且我们只需要按照给定的角度 阅读全文
posted @ 2024-02-22 22:46 dewxin 阅读(108) 评论(0) 推荐(0)
摘要:原文地址 https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-graphics-pipeline-2011-index/ Welcome. This is the index page for a series of blog po 阅读全文
posted @ 2024-02-18 14:10 dewxin 阅读(31) 评论(0) 推荐(0)