Unity每次在准备数据并通知GPU渲染的过程称为一次Draw
Call。一般情况下,渲染一次拥有一个网格并携带一种材质的物体便会使用一次Draw Call。对于渲染场景中的这些物体,在每一次Draw
Call中除了在通知GPU的渲染上比较耗时之外,切换材质与shader也是非常耗时的操作。Draw...
分类:
其他好文 时间:
2014-05-19 14:17:43
阅读次数:
301
原文出自:方杰|http://fangjie.sinaapp.com/?p=141转载请注明出处学习Android也有一段时间了,感觉大部分的Android应用都有很多类似的组件,所以就打算做了这样一个开源项目,目的是整合一些Android开发常用的组件Demo,方便以后项目中直接拿来用。git地址...
分类:
移动开发 时间:
2014-05-19 09:14:14
阅读次数:
390
Unity3d 镜面反射
网上能找到的基本上是固定管道或表面渲染的shader,
特此翻译为顶点、片段渲染的Shader,
本源码只涉及shader与cs部分,
Editor部分使用NGUI绘制的,
请自行下载NGUI
unity3d 版本:v4.3.1...
分类:
其他好文 时间:
2014-05-18 18:32:29
阅读次数:
389
package com.dhy.phonedial;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflate...
分类:
移动开发 时间:
2014-05-18 15:58:42
阅读次数:
342
原文出自:方杰|http://fangjie.sinaapp.com/?p=141 转载请注明出处
学习Android也有一段时间了,感觉大部分的Android应用都有很多类似的组件,所以就打算做了这样一个开源项目,目的是整合一些Android开发常用的组件Demo,方便以后项目中直接拿来用。git地址:https://github.com/JayFang1993/AndroidUtil
...
分类:
移动开发 时间:
2014-05-18 06:06:04
阅读次数:
395
异常类型为:android.view.WindowManager$BadTokenException:
Unable to add window
我在fragment中public
View onCreateView(LayoutInflater
inflater, ViewGroup
container,Bundle
savedInstanceState) {中试图调用对话框静态工...
分类:
其他好文 时间:
2014-05-18 04:27:35
阅读次数:
240
简介:为什么要用Fragment?使用Fragment可以在一个Activity中实现不同的界面。Fragment与Fragment之间的动画切换,远比Activity与Activity之间的动画切换变化方式多。很多时候,我们通过使用一个Activity,切换多个Fragment。本次博客,主要列举一下Fragment与它的Activity之间进行数据交换的方式。1.Fragment中通过getA...
分类:
移动开发 时间:
2014-05-18 02:53:20
阅读次数:
426
控制焦点Focus on Control 的取值:Alternative
fragment(denoted “alt”) 与 if…then…else对应Option fragment (denoted “opt”) 与
Switch对应Parallel fragment (denoted “par...
分类:
其他好文 时间:
2014-05-17 22:05:02
阅读次数:
298
在本节中,你会学到1、定义接口2、实现接口3、将消息传递给fragment为了重用Fragment UI
组件,在设计中你应该通过定义每一个fragemnt自己的layout和行为,让fragment的自包含和模块化。一旦你定义了这些可重用的Fragment,你可以通过Activity将它们关联起来...
分类:
其他好文 时间:
2014-05-17 14:31:03
阅读次数:
316