登录
首页 » Mplabx » photo

photo

于 2017-09-22 发布 文件大小:63KB
0 336
下载积分: 1 下载次数: 1

代码说明:

  Pay online to activate your account Pay online to activate your account

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android open gl 示例代码下载
    [实例简介]Open GL 入门级示例 [实例截图] [核心代码]package com.china.gltry;import javax.microedition.khronos.egl.EGL10;import javax.microedition.khronos.egl.EGL11;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.egl.EGLContext;import javax.microedition.khronos.egl.EGLDisplay;import javax.microedition.khronos.egl.EGLSurface;import javax.microedition.khronos.opengles.GL;import android.view.SurfaceHolder;/** * An EGL helper class. */public class EGLHelper{ public EGLHelper() { } /** * Initialize EGL for a given configuration spec. * @param configSpec */ public void start(int[] configSpec){ /* * Get an EGL instance */ mEgl = (EGL10) EGLContext.getEGL(); /* * Get to the default display. */ mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); /* * We can now initialize EGL for that display */ int[] version = new int[2]; mEgl.eglInitialize(mEglDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, num_config); mEglConfig = configs[0]; /* * Create an OpenGL ES context. This must be done only once, an * OpenGL context is a somewhat heavy object. */ mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); mEglSurface = null; } /* * Create and return an OpenGL surface */ public GL createSurface(SurfaceHolder holder) { /* * The window size has changed, so we need to create a new * surface. */ if (mEglSurface != null) { /* * Unbind and destroy the old EGL surface, if * there is one. */ mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); } /* * Create an EGL surface we can render into. */ mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, holder, null); /* * Before we can issue GL commands, we need to make sure * the context is current and bound to a surface. */ mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); GL gl = mEglContext.getGL(); return gl; } /** * Display the current render surface. * @return false if the context has been lost. */ public boolean swap() { mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); /* * Always check for EGL_CONTEXT_LOST, which means the context * and all associated data were lost (For instance because * the device went to sleep). We need to sleep until we * get a new surface. */ return mEgl.eglGetError() != EGL11.EGL_CONTEXT_LOST; } public void finish() { if (mEglSurface != null) { mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); mEglSurface = null; } if (mEglContext != null) { mEgl.eglDestroyContext(mEglDisplay, mEglContext); mEglContext = null; } if (mEglDisplay != null) { mEgl.eglTerminate(mEglDisplay); mEglDisplay = null; } } EGL10 mEgl; EGLDisplay mEglDisplay; EGLSurface mEglSurface; EGLConfig mEglConfig; EGLContext mEglContext;}
    2015-04-06下载
    积分:1
  • Android_hotfix
    阿里巴巴出品的,安卓移动端,热修复技术文档(Alibaba published , Android Mobile, Hot Repair Technical Documents)
    2020-06-22 22:20:01下载
    积分:1
  • android 白天黑夜模式切换例子源码
    android 白天黑夜模式切换例子源码
    2014-09-28下载
    积分:1
  • Slide
    一个效果非常不错的自定义抽屉。非常实用。(a very pratical custom sliding drawer)
    2013-04-27 11:29:05下载
    积分:1
  • android 高德地图最新API
    搞的地图最新1.4.2 Demo1.将MapApi.jar放到工程libs目录下;如果需要使用矢量地图,将libminimapv320.so放到libs下的armeabi目录下。2.在工程Build Path>Configure Build Path…>libraries 中选择“Add Externel JARs…”,选定MapApi.jar,点击OK,这样就可以将高德地图Android API 库文件引入。然后在工程Build Path>Configure Build Path…>Order and Export 中将引入的库文件MapApi.jar 选中(在Android2.2及以前的版本中必须选中,否则会有问题),点击OK。3.如果遇到问题,可以上问答社区http://api.amap.com/qa/。    
    2013-05-30下载
    积分:1
  • adb
    说明:  ADB to communicate between PC and Android smartphone
    2019-07-05 05:08:36下载
    积分:1
  • 桌面便签程序源码下载 插件示例
    桌面便签程序源码下载 插件示例
    2013-09-17下载
    积分:1
  • Android
    Android开发精要(完整扫描版) 第1章 Android的系统架构/1 第2章 Android源代码的下载和编译/16 第3章 Android组件模型解析/28 第4章 Android的Intent机制/67 第5章 组件生命周期解析/91 第6章 组件间的数据传输/129 第7章 Android控件解析/141 第8章 应用资源/205 第9章 数据存储/226 第10章 网络通信/248 第11章 地理信息服务/269 第12章 多媒体处理/284 第13章 其他重要模块/301(Android Development Essentials (full scan version) Chapter 1 of the Android system architecture/1 Chapter 2 download Android source code and compile/16 Chapter 3 Android component model parsing/28 of Chapter 4 of the Android Intent mechanisms/67 5 Zhang component lifecycle parsing/91 Chapter 6 data transfer between components/129 Chapter 7 Android controls parsing/141 Chapter 8 Application Resources/205 Chapter 9 Data Storage/226 Chapter 10 Network Communications/248 Chapter 11 Geography Information Services/269 Chapter 12 Multimedia Processing/284 Chapter 13 Other important modules/301)
    2013-08-14 15:48:19下载
    积分:1
  • android视频录制(支持闪光灯以及前置后置摄像头拍摄) 实例源码下载
    支持闪光灯、前置、后置摄像头拍摄,有预览功能,非常不错
    2015-03-06下载
    积分:1
  • Android_hotfix
    说明:  阿里巴巴出品的,安卓移动端,热修复技术文档(Alibaba published , Android Mobile, Hot Repair Technical Documents)
    2020-06-22 22:20:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载