码迷,mamicode.com
首页 > 其他好文
点击交互的四种处理
1、概述     游戏也好,程序也好,只有能与用户交互才有意义。手机上的交互大致可以分为两部分:点击和输入。其中点击更为重要,几乎是游戏中全部的交互。在Cocos2d-x 3.0中,更改了dispatch机制。同时加入了两种新的交互形式:listener 和touchEvent回调。加上先前版本中的点击函数回调,与重写layer层的touch消息响应,构成了一个相对完整的交互模式。先上一...
分类:其他好文   时间:2014-08-05 00:40:08    阅读次数:329
图像全参考客观评价算法比较
Lin Zhang等人在论文《A COMPREHENSIVEEVALUATION OF FULL REFERENCE IMAGE QUALITY ASSESSMENT ALGORITHMS》中,比较了几种全参考图像质量评价算法,在此记录一下他们的结果。下表所示是他们所用的图像库,包含了:TID2013database,TID2008database,CSIQ database,LIVEdataba...
分类:其他好文   时间:2014-08-05 00:39:38    阅读次数:387
数据结构:最小生成树--Prim算法
最小生成树 给定一无向带权图,顶点数是n,要使图连通只需n-1条边,若这n-1条边的权值和最小,则称有这n个顶点和n-1条边构成了图的最小生成树(minimum-cost spanning tree)。 Prim算法 Prim算法是解决最小生成树的常用算法。它采取贪心策略,从指定的顶点开始寻找最小权值的邻接点。图G=,初始时S={V0},把与V0相邻接,且边的权值最小的顶点加入到S。不断地把S中的顶点与V-S中顶点的最小权值边加入,直到所有顶点都已加入到S中。...
分类:其他好文   时间:2014-08-05 00:39:08    阅读次数:313
优先队列
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 // Empty the priority queue and print its contents. 9 templat...
分类:其他好文   时间:2014-08-05 00:38:18    阅读次数:203
A trip through the Graphics Pipeline 2011_01
It’s been awhile since I posted something here, and I figured I might use this spot to explain some general points about graphics hardware and softwa....
分类:其他好文   时间:2014-08-05 00:38:08    阅读次数:279
A trip through the Graphics Pipeline 2011_09_Pixel processing – “join phase”
Welcome back! This post deals with the second half of pixel processing, the “join phase”. The previous phase was all about taking a small number of i....
分类:其他好文   时间:2014-08-05 00:37:58    阅读次数:305
自定义View
在Android的学习中,学会使用自定义的View是一必须会的事情。在最近的一个项目中主要用了两种方式来自定义View。1.让控件继承RelativeLayout,LinearLayout等之类的布局。所以我自己写了一个继承RelativeLayout的例子首先:bottomview.xml ...
分类:其他好文   时间:2014-08-05 00:37:48    阅读次数:428
[LeetCode 题解]: Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-08-05 00:37:38    阅读次数:233
A trip through the Graphics Pipeline 2011_03
At this point, we’ve sent draw calls down from our app all the way through various driver layers and the command processor; now,finallywe’re actual...
分类:其他好文   时间:2014-08-05 00:37:18    阅读次数:343
【C32】c32asm
00.主体视图01.简介名称:C32Asm v0.4.12 完全版v0.4.12 大小:1.89M 应用平台:Windows简介: --== C32Asm v0.4.12 完全版 ==-- 一款非常不错的国产静态反编译工具! C32Asm现具有如下功能: 快速静态反编译PE格式文件(Exe、Dll等...
分类:其他好文   时间:2014-08-05 00:36:08    阅读次数:307
Google SPDY
SPDY(读作“SPeeDY”)是Google开发的基于TCP的应用层协议,用以最小化网络延迟,提升网络速度,优化用户的网络使用体验。SPDY并不是一种用于替代HTTP的协议,而是对HTTP协议的增强。新协议的功能包括数据流的多路复用、请求优先级以及HTTP报头压缩。谷歌表示,引入SPDY协议后,在...
分类:其他好文   时间:2014-08-05 00:35:58    阅读次数:259
Second day in Jumei
因为第一天折腾的太晚太累,实在是精疲力尽了,第二天早上我一觉醒来。。已经要到八点了!!!!公司九点半上班啊!!!然后外面还在下雨。。哎,正式上班第一天要不要这么惨!我火急火燎,快马加鞭,坐着小三轮去了地铁站,分秒必争的换站,终于到了世纪城(终点站),一出站我就招呼上了一辆黑车。黑车就是黑啊,尼玛还要...
分类:其他好文   时间:2014-08-05 00:35:38    阅读次数:215
A trip through the Graphics Pipeline 2011_02
Welcome back. Last part was about vertex shaders, with some coverage of GPU shader units in general. Mostly, they’re just vector processors, but the.....
分类:其他好文   时间:2014-08-05 00:35:28    阅读次数:288
A trip through the Graphics Pipeline 2011_05
After the last post about texture samplers, we’re now back in the 3D frontend. We’re done with vertex shading, so now we can start actually renderi...
分类:其他好文   时间:2014-08-05 00:35:18    阅读次数:306
结构和类的区别
本文转自:http://blog.csdn.net/lianchangshuai/article/details/58102491、结构用于小的数据类型,所有结构派生自System.ValueType类,不能再继承其它基类,同时也不能被继承。而类一般用于大的数据类型如人类,动物类等,支持继承。2、结...
分类:其他好文   时间:2014-08-05 00:34:58    阅读次数:216
A trip through the Graphics Pipeline 2011_07_Z/Stencil processing, 3 different ways
In this installment, I’ll be talking about the (early) Z pipeline and how it interacts with rasterization. Like the last part, the text won’t procee.....
分类:其他好文   时间:2014-08-05 00:34:50    阅读次数:360
A trip through the Graphics Pipeline 2011_11 Stream Out
Welcome back! This time, the focus is going to be on Stream-Out (SO). This is a facility for storing the Output of the Geometry Shader stage to memory...
分类:其他好文   时间:2014-08-05 00:34:38    阅读次数:299
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!