1 2 3 4 5 ··· 17 下一页

2018年5月8日

渲染一个变色矩形

摘要: #define GLEW_STATIC #include #include #include using namespace std; void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode) { // 当用户按下ESC键,我们设置window窗口的WindowShould... 阅读全文

posted @ 2018-05-08 19:23 lakeone 阅读(273) 评论(0) 推荐(0) 编辑

2018年5月7日

第一个程序,三角形

摘要: #define GLEW_STATIC #include #include #include using namespace std; void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode) { // 当用户按下ESC键,我们设置window窗口的WindowShouldCl... 阅读全文

posted @ 2018-05-07 21:41 lakeone 阅读(159) 评论(0) 推荐(0) 编辑

2017年8月28日

python函数默认值只初始化一次

摘要: 当在函数中定义默认值时,值初始化只会进行一次,就是执行到def methodname时执行。看下面代码: 两次方法调用输出的时间都为同一个值,而不是我们预想当前执行时间。对于上面这种情况,建议用下面的方式实现: 阅读全文

posted @ 2017-08-28 10:03 lakeone 阅读(3313) 评论(0) 推荐(0) 编辑

2017年8月25日

python模块导入原理

摘要: 转自:http://blog.csdn.net/u012422440/article/details/41791433 今日在自学Python,借此机会,正好重新开始写博文,既可以巩固python的知识,也可顺便提高一下文笔。 一、python模块基础 言归正传,Python的模块是python语言 阅读全文

posted @ 2017-08-25 19:17 lakeone 阅读(3087) 评论(0) 推荐(1) 编辑

2017年8月19日

游戏视野系统算法 (FOV using recursive shadowcasting)

摘要: 原理 http://www.roguebasin.com/index.php?title=FOV_using_recursive_shadowcasting python代码实现 http://www.roguebasin.com/index.php?title=Python_shadowcasti 阅读全文

posted @ 2017-08-19 16:07 lakeone 阅读(903) 评论(0) 推荐(0) 编辑

2017年7月19日

Packing data with Python

摘要: Defining how a sequence of bytes sits in a memory buffer or on disk can be challenging from time to time. Since everything that you’ll work with is a 阅读全文

posted @ 2017-07-19 13:55 lakeone 阅读(255) 评论(0) 推荐(0) 编辑

常用的 TCP KeepAlive 参数

摘要: 转自:http://dola.xinfan.org/?p=359 我们知道 TCP 协议有检测连接状态的机制,当连接不活跃的时候,连接双方会通过一定的算法检测连接是否正常。这个机制就是 TCP 的 KeepAlive 算法。 如果不使用 KeepAlive 算法检测连接状态,会导致单方面断开连接后, 阅读全文

posted @ 2017-07-19 11:07 lakeone 阅读(5481) 评论(0) 推荐(0) 编辑

2017年6月12日

C#读写内置类型的数据时是否原子操作

摘要: Reads and writes of the following data types are atomic: bool, char, byte, sbyte, short, ushort, uint, int, float, and reference types. Reads and writ 阅读全文

posted @ 2017-06-12 22:26 lakeone 阅读(1425) 评论(0) 推荐(1) 编辑

2017年4月23日

Unity API笔记

摘要: 1. 返回某范围的随机数 Random.Range method. static float Range(float min, float max); returns a float – returns a random number contained inside the range limit 阅读全文

posted @ 2017-04-23 13:16 lakeone 阅读(131) 评论(0) 推荐(0) 编辑

2017年4月15日

一些值得学习的Unity教程

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2017-04-15 18:06 lakeone 阅读(20) 评论(1) 推荐(0) 编辑

1 2 3 4 5 ··· 17 下一页

导航