Giter VIP home page Giter VIP logo

ndkbook_2nd's Introduction

「AndroidNDK ネイティブプログラミング 第2版」サンプルコード集

「AndroidNDKネイティブプログラミング 第2版」に掲載したサンプルコード、その検証用に作成されたコードです。

開発環境

Eclipse, ADTr20, Android NDKr8bを利用しています。環境構築は本書第1章に書かれています。

ファイルについて

Chapter別に分けてあります。

ch01/

  • AddApp/ 加算演算(Javaのみ)
  • AppAppJni/ 加算演算(Java,C/C++)

ch02/

  • JniApp/ JNI関数のサンプルコード集

ch03/

  • GLNativeActivity NativeActivity&OpenGL|ES1.1でスプライト表示

ch04/

  • CubeDroid11/ 立方体表示(NativeActivity, OpenGL|ES1.1)
  • cubedroid20/ 立方体表示(NativeActivity, OpenGL|ES2.0)
  • NativeBitmap/ NativeBitmapサンプル(セピア調変換)

ch06/

  • NativeMediaPlayer ネイティブメディアプレイヤーを使ったシンプルな動画プレイヤー

ch07/

  • InputCheck/ タッチパネル、センサーからのデータ取得、表示
  • AccessAssets/ Assetsマネージャを利用したファイル読み込み
  • createfont/ InputCheckで表示しているフォント作成(本書中には登場しない)

ch08/

  • CrashApp/ 故意にクラッシュするアプリ(CheckJni向け)

ch09/

  • CpuInfo/ アプリが動作しているCPU情報を取得、表示

ch11/

  • NeonApp/ NEON命令を利用した場合、しなかった場合を比較する

ch12/

  • CubeDroidTex/ libpngを利用してpng画像をテクスチャとした立方体を表示
  • NativeLua/ libluaを組み込んだアプリ
  • libpng-android/ androidむけにビルドしたlibpng
  • lua/ android向けにビルドしたLua

ライセンス

ここのコードはすべてApache License 2.0とします。

NOTICE

このプロジェクトには部分的に、Android Open Source Projectのコードを含んでいます。

This product includes software developed as part of The Android Open Source Project (http://source.android.com).

ndkbook_2nd's People

Contributors

demuyan avatar

Forkers

schoolforbasics

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.