Hook ISurface function. 1 #include 2 #include 3 4 using namespace vgui; 5 6 ISurface *g_pSurface = 0; 7 8 void (__fastcall *g_pfnCSurface...
分类:
Web程序 时间:
2015-08-19 12:45:53
阅读次数:
239
1553. Caves and Tunnels
Time limit: 3.0 second
Memory limit: 64 MB
After landing on Mars surface, scientists found a strange system of caves connected by tunnels. So they began to research...
分类:
其他好文 时间:
2015-08-19 11:15:07
阅读次数:
255
这里只基本介绍如何播放视频:surfaceview是利用双缓冲区的原理来使得用户可以流畅的观看视频的:比如A、B缓冲区,先由A缓冲区填满推送到设备播放,然后再A播放的时候填满B缓冲区,等A播放完了就播放B缓冲区的内容,如此交换执行。public class MainActivity extends ...
分类:
其他好文 时间:
2015-08-18 21:12:58
阅读次数:
157
参考资料:Android4.4深入浅出之SurfaceFlinger总体结构android/5.1.0_r1 source code onineAndroid图形系统分析与移植--四、Surface Manager(Surface Flinger简介)系统的SurfaceFlinger思路以及代码追...
分类:
移动开发 时间:
2015-08-17 21:14:14
阅读次数:
191
Problem DescriptionThere is a big stone with smooth surface in Tina Town. When people go towards it, the stone surface will be lighted and show its us...
分类:
其他好文 时间:
2015-08-16 02:03:07
阅读次数:
179
SurfaceView是视图(View)的继承类,这个视图里内嵌了一个专门用于绘制的Surface。你可以控制这个Surface的格式和尺寸。Surfaceview控制这个Surface的绘制位置。 surface是纵深排序(Z-ordered)的,这表明它总在自己所在窗口的后面。surfa...
分类:
其他好文 时间:
2015-08-15 11:35:51
阅读次数:
77
#include?"SDL/SDL.h"
#include?<string>
//屏幕属性
const?int?SCREEN_WIDTH?=?640;
const?int?SCREEN_HEIGHT?=?480;
const?int?SCREEN_BPP?=?32;
//能被使用到的面
SDL_Surface?*message?=?...
分类:
其他好文 时间:
2015-08-13 23:53:44
阅读次数:
471
编写shader时的一些建议:1、只计算需要计算的东西;2、通常,需要渲染的像素比顶点数多,而顶点数又比物体数多很多。所以如果可以,尽量将运算从PS移到VS,或直接通过script来设置某些固定值;3、在使用Surface Shader时,可以通过一些指令让shader优化很多。 通常情况下,Su....
分类:
其他好文 时间:
2015-08-10 01:41:46
阅读次数:
146
转载自:http://www.cnblogs.com/xuling/archive/2011/06/06/android.html首先我们先来看下官方API对SurfaceView的介绍SurfaceView的API介绍Provides a dedicated drawing surface emb...
分类:
移动开发 时间:
2015-08-09 13:58:05
阅读次数:
142
Unity内置的shader include files:这些文件都以.cninc结尾, HLSLSupport.cginc:自动包含,一些跨平台编译相关的宏和定义。 UnityCG.cginc:常用的全局变量和函数。 AutoLight.cginc:光影相关帮助函数,surface s...
分类:
编程语言 时间:
2015-08-09 00:22:10
阅读次数:
229