android - Shader 着色器 翻译
2012-05-23 11:47
281 查看
Shader is the based class for objects that return horizontal spans of colors during drawing. A subclass of Shader is installed in a Paint calling paint.setShader(shader). After that any object (other than a bitmap) that is drawn with that paint will get
its color(s) from the shader.
Shader类作为基类主要是返回绘制时的水平距离,它的子类可以通过Paint.setShader(shader)添加到Paint里,然后获取shader的颜色进行绘制。
构造函数
Shader()
方法
public boolean getLocalMatrix
Return true if the shader has a non-identity local matrix.
localM :If not null, it is set to the shader's local matrix.
如果shader有一个不一致的本地矩阵时返回true;
localM 如果不为空,设置localM为shader的本地矩阵。
setLocalMatrix(Matrix localM)
Set the shader's local matrix. Passing null will reset the shader's matrix to identity
localM The shader's new local matrix, or null to specify identity
设置shader的本地矩阵,设置null时将重设shader的矩阵为本地矩阵
localM shader的新矩阵,为null时指定为本地矩阵。
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
当垃圾回收器发现一直没有被引用的实例时被调用。
its color(s) from the shader.
Shader类作为基类主要是返回绘制时的水平距离,它的子类可以通过Paint.setShader(shader)添加到Paint里,然后获取shader的颜色进行绘制。
构造函数
Shader()
方法
public boolean getLocalMatrix
(Matrix localM)
Return true if the shader has a non-identity local matrix.localM :If not null, it is set to the shader's local matrix.
如果shader有一个不一致的本地矩阵时返回true;
localM 如果不为空,设置localM为shader的本地矩阵。
setLocalMatrix(Matrix localM)
Set the shader's local matrix. Passing null will reset the shader's matrix to identity
localM The shader's new local matrix, or null to specify identity
设置shader的本地矩阵,设置null时将重设shader的矩阵为本地矩阵
localM shader的新矩阵,为null时指定为本地矩阵。
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
当垃圾回收器发现一直没有被引用的实例时被调用。
相关文章推荐
- Unity3D Shader官方教程翻译(十九)----Shader语法,编写表面着色器
- Unity3D Shader官方教程翻译(十九)----Shader语法,编写表面着色器
- Unity3D Shader官方教程翻译(十九)----Shader语法,编写表面着色器
- Android 图片特效处理:Shader着色器、渲染
- OpenGL播放yuv数据流(着色器SHADER)-android(一)
- 着色器shader官方文档翻译
- Unity3D Shader官方教程翻译(十九)----Shader语法,编写表面着色器
- Unity3D Shader官方教程翻译(十九)----Shader语法,编写表面着色器
- Unity3D Shader官方教程翻译(二十)----Shader语法,表面着色器示例
- Android着色器Shader介绍
- open.gl 翻译之 显卡图形管线(pipeline)和着色器(shader)
- Unity3D Shader官方教程翻译(十九)----Shader语法,编写表面着色器
- 【翻译】【西川善司】GPU和Shader技术的基础知识 (一共有99回,翻译中)
- 【菜鸟翻译】Creating an Android Project
- Android官方文档翻译 十一 2.4Overlaying the Action Bar
- Android Support Library 23.2有哪些新东西(官网博客翻译)
- android OpenGL ES开发之shader
- shader进阶 多个着色器混合以及drawcall优化
- Android开发文档翻译之-Services
- Unity3D Shader官方教程翻译(十八)----Shader语法 另外一些命令(分类)