【如何降低Unity程序的Drawcall】 Unity can combine a number of objects at runtime and draws them together with a single draw call. This operation is called “ba....
分类:
其他好文 时间:
2014-10-09 22:00:07
阅读次数:
1796
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Draw...
分类:
Web程序 时间:
2014-10-09 02:19:07
阅读次数:
202
简单工厂模式属于类的创建型模式,适合用来对大量具有共同接口的类进行实例化,它可以推迟到运行的时候才动态决定要创建哪个类的实例,而不是在编译时就必须知道要实例化哪个类。
python:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Circle(object):
def draw(self):
print 'dra...
分类:
编程语言 时间:
2014-10-09 01:40:38
阅读次数:
229
总结 Android 自定义EditText输入框 带清空按钮
当用户输入字符后 EditText会自动在输入框的内部右侧出现删除按钮
重写EditText达到简化布局的效果
效果图:
继承EditText
package com.example.myedittexttest;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Draw...
分类:
移动开发 时间:
2014-10-07 12:37:13
阅读次数:
293
android前台渲染,主要是重写view的ondraw方法,在canvas里操作自定义MyView类package com.ssln;import android.annotation.SuppressLint;import android.content.Context;import andro...
分类:
移动开发 时间:
2014-10-01 00:06:50
阅读次数:
196
1,利用combobox创建色带,首先draw private void comboBox1_DrawItem(object sender, DrawItemEventArgs e) { Rectangle rec= e.Bounds; rec.Width = rec.Width /array.Le...
分类:
其他好文 时间:
2014-09-30 22:51:30
阅读次数:
311
====================问题描述==================== 我现在有一个需求,要自定义View,初始化的时候调用了onDraw方法,完后我自定义一个方法,调用该方法的时候,要重新调用onDraw方法,但我用postInvalidate无效,代码如下:启动类:
publi...
分类:
其他好文 时间:
2014-09-30 19:35:39
阅读次数:
257
In linux, you can use the ncurses library to use the terminal as a text buffer: move the cursor around, and write text. It can also draw windows and o...
分类:
其他好文 时间:
2014-09-30 18:43:59
阅读次数:
154
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Draw...
分类:
其他好文 时间:
2014-09-30 17:12:39
阅读次数:
165
在Unity中,每次引擎准备数据并通知GPU的过程称为一次Draw Call。Draw Call值越低,会得到更好的渲染性能。NGUI 查看Draw工具(NGUI-OPEN-Draw Call Tool)NGUI 方面的Draw Call 优化:(1) 打包图集一、每个材质/纹理的渲染一定是会产生D...
分类:
其他好文 时间:
2014-09-30 15:03:29
阅读次数:
304