- 浏览: 86509 次
- 性别:
- 来自: 无锡
-
最新评论
-
beijishiqidu:
楼主,求OSGI完整版的资料,396212976@qq.com ...
代理模式与装饰模式的区别 -
zxsqi:
为什么我使用spring3.1与hibernate4.1集成时 ...
spring3.1与hibernate4集成配置 -
binshangwen:
>
...
</bean>
spring3.1与hibernate4集成配置 -
切萝卜:
好文,谢谢!我用的是JPA,当然底层是hibernate, e ...
spring3.1与hibernate4集成配置 -
cention:
dp 密度不相关像素(有的显示屏点距小,有的大,为了达到统一效 ...
android的dip,dp,px,in,mm,pt,sp
文章列表
今天随便翻了翻Java数据结构与算法这本书,写了一些常见的简单算法。当练习一下。当然代码不是十分完善,只是演示算法而已。
/**
* 排序、查找算法
* @author sunlong
*
*/
public class OrderArray {
private int[] arr;
private int length;
public OrderArray(int size){
arr = new int[size];
length = 0;
}
/**
* 未检查边界,有序插入
* @param value
...
Historically, programmers always designed computer interfaces in terms of pixels. For example, you mightmake a field 300 pixels wide, allow 5 pixels of spacing between columns, and define icons 16-by-16 pixels in size. The problem is that if you run that program on new displays with more and more dot ...
学
opengl
的基本上都会搜到
nehe
写的教程,很多地方都是这个教程的改写。我从两个星期前开始自学
opengl
,到目前总算略懂一二。因为最终想要用在
android
上面,所以我打算把
nehe
的教程移植到
android
平台上面讲解。同时也想与那些和我一起想在
android
上做游戏的朋友分享。本文章是菜鸟级别的,如果有误请指正。
本篇对应
nehe
的第一篇:
OPENGL
窗口
本文假设大家会建立
android
应用程序了,也会大概使用
activity
,所以这些就不介绍了。
...
glEdgeFlag作用
- 博客分类:
- OPENGL
glBegin(GL_TRIANGLES);
glVertex3f(0.5f, 0.5f, -0.5f);
glVertex3f(0.5f, -0.5f, -0.5f);
glEdgeFlag(GL_FALSE);
glVertex3f(-0.5f, -0.5f, -0.5f);
glVertex3f(0.5f, 0.5f, -0.5f);
glEdgeFlag(GL_TRUE);
glVertex3f(-0.5f, -0.5f, -0.5f);
glVertex3f(-0.5f, 0.5f, -0.5f);
glEnd();
glEdgeFlag作用是设置一个点是否是 ...
我在网上找了好久好久,没有找到相关资料……
经过我苦思冥想,好好捉摸,终于搞定独家秘籍……当然可能大牛早会了。这个技巧需要改动源代码。
怕有bug的同学不要用这招了,下面就是修改方案,基于ext3.1.1。
修改ext-all-debug.js的51719行,修改成如下
var noAppend = tn.allowChildren === false ;//|| tn.isLeaf();
另外叶子节点属性要有allowChildren=true
实验证明是有效的,由此带来的负面效应我是不知道滴~~我就不截图了,over
If the Container is already rendered when add is called, you may need to call doLayout to refresh the view which causes any unrendered child Components to be rendered. This is required so that you can add multiple child components if needed while only refreshing the layout once. For example:
var tb ...