上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 48 下一页
摘要: pthread_cond_wait() 用于阻塞当前线程,等待别的线程使用pthread_cond_signal()或pthread_cond_broadcast来唤醒它。 pthread_cond_wait() 必须与pthread_mutex 配套使用。pthread_cond_wait()函数 阅读全文
posted @ 2018-03-19 15:59 yongfengnice 阅读(220) 评论(0) 推荐(0)
摘要: 1. 下载NDK https://developer.android.google.cn/ndk/downloads/index.html 2. 配置profile 1) 编辑 sudo vi vim /etc/profile 2)添加ANDROID_NDK=/mnt/c/linux/android 阅读全文
posted @ 2018-03-15 14:21 yongfengnice 阅读(905) 评论(0) 推荐(0)
摘要: 命令:sudo apt-get update 阅读全文
posted @ 2018-03-14 23:58 yongfengnice 阅读(439) 评论(0) 推荐(0)
摘要: 1. 先命令查看glew: apt-cache search glew 显示结果: suyf@DESKTOP-QGC4M3L:/usr/bin$ apt-cache search glewlibglew-dbg - OpenGL Extension Wrangler (debugging symbo 阅读全文
posted @ 2018-03-14 16:47 yongfengnice 阅读(4643) 评论(0) 推荐(0)
摘要: 1. 我的Android.mk文件如下: LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := test #构建生成的so动态库的名称LOCAL_SRC_FILES := test.c #这个文件里使用到cpufeature 阅读全文
posted @ 2018-03-13 15:10 yongfengnice 阅读(1270) 评论(0) 推荐(0)
摘要: private AudioManager mAudioManager;private AudioManager.OnAudioFocusChangeListener mFocusChangeListener; @Override protected void onPause() { super.on 阅读全文
posted @ 2018-02-01 15:48 yongfengnice 阅读(280) 评论(0) 推荐(0)
摘要: 布局中包含有EditText时,页面一进来键盘就自动弹起,但是有时这不是我们需要的,下面给出页面一进来不要键盘就自动弹起的解决方法: 方法1:java里延时调用hideKeyBoard方法,不够优雅。这里不说了,百度一大把。 方法2:xml和java代码结合 方法解决 1)在xml里面的 EditT 阅读全文
posted @ 2017-12-25 16:32 yongfengnice 阅读(519) 评论(0) 推荐(0)
摘要: Android Studio 查找aar依赖的顺序: Searched in the following locations: file:/E:/android_studio/sdk/extras/m2repository//netframe-debug//netframe-debug-.pom f 阅读全文
posted @ 2017-12-23 19:06 yongfengnice 阅读(859) 评论(0) 推荐(0)
摘要: From LTexture.cpp #include "LTexture.h" #include <IL/il.h> #include <IL/ilu.h> GLenum DEFAULT_TEXTURE_WRAP = GL_REPEAT; bool LTexture::loadTextureFrom 阅读全文
posted @ 2017-12-05 18:12 yongfengnice 阅读(1286) 评论(0) 推荐(0)
摘要: LTexture.cpp void LTexture::render( GLfloat x, GLfloat y, LFRect* clip ){ if( mTextureID != 0 ) { GLfloat texTop = 0.f; GLfloat texBottom = (GLfloat)m 阅读全文
posted @ 2017-11-28 17:57 yongfengnice 阅读(251) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 48 下一页