Here is very useful demo.
Take a look at this post.
Then downlowd and import Browser Demo Project.unitypackage.
You can receive a selection by implementing SendMessage, BroadcastMessage or something like that in Browser.cs.
//{ Locate follows into your class | |
public static class ApplicationInfo { | |
public String label; | |
public String name; | |
public String packageName; | |
public Drawable icon; | |
@Override | |
public String toString() { | |
return "label:" + label + " name:" + name + " packageName:" |
// Fullscreen sketch example under multi-screen environment | |
// @see http://processing.org/discourse/beta/num_1185318989.html | |
import java.awt.*; | |
static final int PREFERRED_GRAPHICS_DEVICE_INDEX = 1; //< This value represents the target monitor. | |
Rectangle monitorBounds = new Rectangle(); | |
public void init() { |
/** | |
* Launch an activity. | |
* @param context The context to use. Usually your Application or Activity object. | |
* @param packageName The name of the package that the component exists in. Can not be null. | |
* @param className The name of the class inside of pkg that implements the component. Can not be null. | |
* @see {ANDROID_SDK}/samples/android-{VERSION}/Home/src/com/example/android/home/Home.java | |
*/ | |
private void launch(Context context, String packageName, String className) { | |
if (context == null || packageName == null || className == null) | |
return; |
html, body { | |
margin:0; | |
padding:0; | |
height:100%; | |
} | |
html { | |
background:-webkit-linear-gradient(left, #000, #fff); | |
background: -moz-linear-gradient(left, #000, #fff); | |
background: -o-linear-gradient(left, #000, #fff); |
#!/usr/bin/env ruby | |
ruby -e 'IP="192.168.1.1"; puts "Progress..."; for i in 1454..1500 do; cmd="ping -D -c 1 -s " + i.to_s + " " + IP; s=`#{cmd} 2>&1`; if s.include?("100.0% packet loss") && !s.include?("too") then; puts IP + " was not found"; exit(1); elsif s.include?("too") then ; puts "Max MTU is " + (i - 1).to_s; exit(0) end; end' |
// Obtain a SurfaceView. | |
// SurfaceView surfaceView = (SurfaceView)findViewById(R.id.surfaceView1); | |
Canvas canvas = surfaceView.getHolder().lockCanvas(); | |
canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR); | |
// Draw someting | |
surfaceView.getHolder().unlockCanvasAndPost(canvas); |
As you can see in http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawElements.xml | |
void glDrawElements( GLenum mode, | |
GLsizei count, | |
GLenum type, | |
const GLvoid * indices); | |
type | |
Specifies the type of the values in indices. Must be GL_UNSIGNED_BYTE or GL_UNSIGNED_SHORT. |
Here is very useful demo.
Take a look at this post.
Then downlowd and import Browser Demo Project.unitypackage.
You can receive a selection by implementing SendMessage, BroadcastMessage or something like that in Browser.cs.
function initMap() { | |
var map = new google.maps.Map(document.getElementById('map'), { | |
zoom: 11, | |
center: {lat: 35.681269, lng: 41.876} | |
}); | |
var ctaLayer = new google.maps.KmlLayer({ | |
url: 'http://localhost/tokyost.kml', // NG | |
map: map | |
}); |
. | |
|-- index.html | |
|-- index.js | |
|-- node_modules | |
|-- package.json |