-
Android-mobile-development-source
Android移动开发与入门进阶源代码,各章实例(android moblile development code)
- 2011-12-12 09:27:30下载
- 积分:1
-
《电工学》(第六版)上册+秦曾煌主编
说明: 电路基础教学, 做嵌入式开发需要的基本的电路知识.(Basic circuit teaching)
- 2020-12-23 10:53:23下载
- 积分:1
-
chuankou
开发环境为Keil,用51单片机完成串口通讯,完成收发字符串的功能(The development environment for the Keil, with 51 single-chip microcomputer serial communication, complete transceiver string function)
- 2011-12-28 23:39:43下载
- 积分:1
-
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
-
beijingyinyueshixianfangfa
android 的 背景音乐 是 实现方法 ,游戏里面 可以用此方法来实现背景音乐(android' s background music is implementation, the game which you can use this method to achieve the background music)
- 2011-08-08 10:36:40下载
- 积分:1
-
Altium
超全的AD库
包含了比较全的一些常用库文件,常用51单片机以及C8051F系列,还有一些常用的IC(Ultra-wide AD library contains more full of some commonly used libraries, common C8051F series microcontrollers and 51, there are some common IC)
- 2021-03-25 12:19:13下载
- 积分:1
-
RDA5807m_51driver
基于FM芯片RDA5807的51单片机的FM收音机,通过IIC协议控制芯片实现调台、调音量功能。(Based on FM 51 MCU chip RDA5807 FM radio, through the IIC protocol control chip to realize the radio, the tuning function.)
- 2016-01-05 16:41:06下载
- 积分:1
-
18b20
这是一个厅在DS18B20数字温度计的C程序,精确度达到0.5摄氏度(This is a digital thermometer DS18B20 Office of C procedures, accuracy of 0.5 degrees Celsius)
- 2007-12-23 16:44:45下载
- 积分:1
-
Office2016jhgj_V10.2.0_XiTongZhiJia
we try to have a test for a game
- 2017-11-24 15:32:23下载
- 积分:1
-
OPNET MANET仿真实例
OPNET MANET仿真实例
- 2021-05-06下载
- 积分:1