摘要: typedef void (*callbackFun)(int a, int b);struct exm { int type; callbackFun fun;};A pointer is a special kind of variable that holds the add... 阅读全文
posted @ 2015-01-04 01:23 StuJnX6ry 阅读(437) 评论(0) 推荐(0) 编辑
摘要: GTK (GIMP Toolkit) 起源於开发用来做为GIMP (General Image Manipulation Program)的一套工具. GTK建立在GDK (GIMP Drawing Kit)的上层, 基本上是将Xlib功能包装起来. 它被称为GIMP toolkit是因为原来是写来... 阅读全文
posted @ 2015-01-04 00:51 StuJnX6ry 阅读(189) 评论(0) 推荐(0) 编辑
摘要: ASCII -> GB2312 -> GBKASCII -> Unicode( Universal Multiple-octet CodedCharacter Set, Abbreviation:UCS)UTF:UCSTransformationFormatUCS-2编码(16进制)UTF-8字节流... 阅读全文
posted @ 2015-01-03 17:21 StuJnX6ry 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 读到0x1A时,fread就认为结束!今天调到的bug,以解决unsigned int16 范围是从0-65535 十六进制是 0X0000 - 0XFFFFint16 范围是 -32768-32767 负数以补码方式储存对一个整数的补码再求补码,等于该整数自身。补码 = 反码+1-5的原码(100... 阅读全文
posted @ 2014-12-30 02:56 StuJnX6ry 阅读(135) 评论(0) 推荐(0) 编辑
摘要: byte[] array={1,2}; int offset = 0; int result = BitConverter.ToInt16(array, offset);---output: result =0x00000201 阅读全文
posted @ 2014-12-27 20:22 StuJnX6ry 阅读(187) 评论(0) 推荐(0) 编辑
摘要: EECMOS Integrated Circuit Design Phase Locked Loop Cadance IC, Hspice;Calibre, LakerVerilogMCU Application MCS-51CSx86 assembly language,C,C++, C#h... 阅读全文
posted @ 2014-12-27 15:42 StuJnX6ry 阅读(181) 评论(0) 推荐(0) 编辑
摘要: FPS 60 time interval:0.01666666666666666666666666666667sFPS 59 time interval:0.01694915254237288135593220338983sdifference value:0.0002824858757062146... 阅读全文
posted @ 2014-12-26 21:17 StuJnX6ry 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 原著:Radu Privantu 译者序:这是一篇讲解如何开发一款MMORPG的入门文章,作者本人也是一款游戏的开发者,文中的内容源于实践,有很高的参考价值。很多人都想拥有自 己的游戏,这篇文章对那些想自己开发游戏的人来说可能是一纸福音,也可能是一盆冷水。无论如何,开发游戏都不是一件简单的事情。以... 阅读全文
posted @ 2014-12-10 18:19 StuJnX6ry 阅读(896) 评论(0) 推荐(0) 编辑
摘要: GLEW由于微软的垄断,Windows不支持新版本OpenGL,因此需要GLEW扩展库辅助。GLEW:OpenGL Extension Wrangler Libraryglew.c 中#define GLEW_BUILD GLEW_STATIC#include "include/GL/glew.h"... 阅读全文
posted @ 2014-10-16 16:40 StuJnX6ry 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Client SidePlatform: Win32 -> Cross-platformPrograming Language: C -> C++Integrated Development Environment: Visual Studio 2013 ->CodeBlocks + MinG... 阅读全文
posted @ 2014-10-16 16:32 StuJnX6ry 阅读(130) 评论(0) 推荐(0) 编辑