1、 Overview 2、 Understanding Shader definition:code that define what the material can do in the environment classification: Surface Shader——容易编写,受光照等因 ...
分类:
编程语言 时间:
2017-03-10 23:39:47
阅读次数:
176
Here's a new data type called an SDL Surface. An SDL surface is just an image data type that contains the pixels of an image along with all data neede ...
分类:
其他好文 时间:
2017-02-14 00:58:47
阅读次数:
177
完成源码(开发版) <!DOCTYPE HTML> <html> <head> <title>Rose</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body style="m ...
分类:
其他好文 时间:
2017-02-12 12:40:50
阅读次数:
160
题目: Nowadays spaceships are never launched from the Earth's surface. There is a huge spaceport placed in the geostationary orbit and connected to the ...
分类:
其他好文 时间:
2017-02-09 20:22:22
阅读次数:
206
Q1:在IE打开时会展示占位符? A1:将box img src给个默认空白图片。 Q2:首次打开该页面时OK,再次打开任然展示占位符? A2:js 清缓存,jsp添加: 或者ajax清缓存 我只增加了第一个!记录 ...
分类:
Web程序 时间:
2017-02-07 16:12:04
阅读次数:
199
一、什么是SurfaceView 官方文档: SurfaceView是视图(View)的继承类,这个视图里内嵌了一个专门用于绘制的Surface。你可以控制这个Surface的格式和尺寸。Surfaceview控制这个Surface的绘制位置。 surface是纵深排序(Z-ordered)的,这表 ...
分类:
其他好文 时间:
2017-02-07 12:31:43
阅读次数:
232
注:Java系统服务与本地系统服务标注反了 1、Linux内核 Android系统启动时,首先通过BootLoader(系统加载器)加载Linux内核,在Linux加载启动时,首先初始化内核,再调用init进程。 2、Daemon进程 init进程会分别启动USB Daemon、ADB Daemon ...
分类:
移动开发 时间:
2017-02-06 13:07:42
阅读次数:
177
FFmpeg DXVA2解码得到的数据使用surface来承载的,surface限制很多,如果能用纹理来渲染的话,那我们就可以充分开发D3D,比如可以用坐标变换来实现电子放大的功能,还可以用坐标变换来实现视频图像任意角度的旋转等功能。而对于我来说,最重要的是纹理渲染可以使得解码后的数据能够用像素着色... ...
分类:
其他好文 时间:
2017-01-20 22:14:01
阅读次数:
1224
surfaceview的黑色背景会挡住其父的背景,现在把surfaceview的背景设为透明,既可以看到所绘的3D物体,又可以看到背景。 在onSurfaceCreated里,调用GLES20.glClearColor(0f, 0f, 0f, 0f);alpha为0,即透明。 然后,对surface ...
分类:
移动开发 时间:
2017-01-08 15:11:33
阅读次数:
274
已经N久N久没有码文了,趁着今天不加班,仔细回想了走过的这一年,貌似有的只是加班、重复的加班、重复重复的加班,难得有闲暇的时间去整理一下日常相关的排错及工作中相关的经验技巧等,甚是惋惜;在我所认为的技术过往中,我更希望每个阶段都留下些什么,或许这是一种习惯、..
分类:
其他好文 时间:
2016-12-25 21:20:55
阅读次数:
4718