加载中
eglMakeCurrent, eglSwapBuffers, glFlush, glFinish

I have been interested in OpenGL ES 2.0 for years and today I want to share some of my experience. eglMakeCurrent First of all, do you remember the function eglMakeCurrent, its ...

2016/04/14 22:12
2.8K
OpenGL中FBO的概念及其应用

FBO一个最常见的应用就是:渲染到纹理(render to texture),通过这项技术可以实现发光效果,环境映射,阴影映射等很炫的效果。 OpenGL中的Frame Buffer Object(FBO)扩展,被推荐用于把数据渲...

2016/02/19 22:00
1K
Don't Call Yourself A Programmer, And Other Career

If there was one course I could add to every engineering education, it wouldn’t involve compilers or gates or time complexity. It would be Realities Of Your Industry 101, beca...

2016/02/13 22:38
163
Android System.Load vs System.LoadLibrary

其实,网上已经有很多地方已经讨论过,System.Load 和 System.LoadLibrary 的差异了,比如这里: http://stackoverflow.com/questions/7016391/difference-between-system-load-and-system-l...

2015/11/24 23:42
1.7W
Looper.myLooper().quit() 报 NullPointerException

在调用 Looper.myLooper().quit() 的时候发现报 NullPointerException,通过 Android Studio 发现如下提示: 查阅了 Looper 的源码: /** * Return the Looper object associated w...

2015/11/10 22:44
2.4K
Android中的GraphicBuffer同步机制-Fence

Fence是一种同步机制,在Android里主要用于图形系统中GraphicBuffer的同步。那它和已有同步机制相比有什么特点呢?它主要被用来处理跨硬件的情况,尤其是CPU,GPU和HWC之间的同步,另外它还可...

2015/10/10 18:17
2.4K
javah 找不到 Android 系统类

在使用 javah 命令的时候,发现直接使用: javah -d outputdir -jni xxx.xxx.MyClass 会出现: 错误: 找不到类 android.hardware.Camera。 因为我的 MyClass 里面引用了 android.hardware.C...

2015/10/09 17:39
336
Android native 代码打印当前时间

#include <time.h> /* return current time in milliseconds */ long get_current_ms() { struct timespec res; clock_gettime(CLOCK_REALTIME, &res); return 1000 * res.tv_s...

2015/10/03 12:51
1.4K
Android 4.4(KitKat)中的设计模式-Graphics子系统

本文主要从设计模式角度简单地侃下Android4.4(KitKat)的Graphics子系统。可以看到在KitKat中Google对code还是整理过的,比如替换了像SurfaceTexture这种第一眼看到不知所云的东西,去掉了像I...

2015/09/20 19:05
407
非Root权限的Android上运行可执行文件

使用 NDK 编译可执行文件,即 Android.mk 文件应该是编译 target 应该是 BUILD_EXECUTABLE include $(BUILD_EXECUTABLE) 假设,编出的目标为 helloworld 1. 将 helloworld push 到手机的 /s...

2015/08/25 23:22
6K
Android SurfaceView vs TextureView

This page is intended to briefly introduce the differences between SurfaceView and TextureView. SurfaceView and TextureView Both SurfaceView and TextureView are inherited from a...

2015/08/23 11:19
1.2K
Custom ViewGroups

Android provides a few ViewGroups like LinearLayout, RelativeLayout, FrameLayout to position child Views. These general purpose ViewGroups have quite a lot of options in them. F...

2015/08/20 09:56
49
与Status Bar和Navigation Bar相关的一些东西

与StatusBar和NavigationBar相关的东西有两种,一是控制它们的显示与隐藏,二是控制它们的透明与否及背景。 在2.3及以前,StatusBar只能显示与隐藏,即全屏模式,通过WindowManager.LayoutP...

2015/08/20 01:24
716
Android中View的绘制过程 onMeasure方法简述

Android中View的绘制过程   当Activity获得焦点时,它将被要求绘制自己的布局,Android framework将会处理绘制过程,Activity只需提供它的布局的根节点。   绘制过程从布局的根节点开始,...

2015/08/19 23:04
496

没有更多内容

加载失败,请刷新页面

返回顶部
顶部