start bluestack or emulator install app on it start the app
connect adb to emulator
$ adb connect localhost:5555
get 'pid' of your app .Dont forget to run it first in emulator
function instanceOf (subject, super) | |
super = tostring(super) | |
local mt = getmetatable(subject) | |
while true do | |
if mt == nil then return false end | |
if tostring(mt) == super then return true end | |
mt = getmetatable(mt) |
--- Animal.lua | |
-- | |
-- A simple example of a base class usng the classes library. | |
-- | |
-- @author PaulMoore | |
-- | |
-- Copyright (C) 2011 by Strange Ideas Software | |
-- | |
-- Permission is hereby granted, free of charge, to any person obtaining a copy | |
-- of this software and associated documentation files (the "Software"), to deal |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.widget.VideoView; | |
public class ScalableVideoView extends VideoView { | |
private int mVideoWidth; | |
private int mVideoHeight; | |
private DisplayMode displayMode = DisplayMode.ORIGINAL; |
using UnityEngine; | |
public static class ConfigurableJointExtensions | |
{ | |
/// <summary> | |
/// Sets a joint's targetRotation to match a given local rotation. | |
/// The joint transform's local rotation must be cached on Start and passed into this method. | |
/// </summary> | |
public static void SetTargetRotationLocal (this ConfigurableJoint joint, Quaternion targetLocalRotation, Quaternion startLocalRotation) | |
{ |
start bluestack or emulator install app on it start the app
connect adb to emulator
$ adb connect localhost:5555
get 'pid' of your app .Dont forget to run it first in emulator
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.drawable.VectorDrawable; | |
import android.os.Build; | |
import android.support.annotation.DrawableRes; | |
import android.support.graphics.drawable.VectorDrawableCompat; |
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2 | |
/* | |
* Copyright (c) 2012 Arvin Schnell <[email protected]> | |
* Copyright (c) 2012 Rob Clark <[email protected]> | |
* Copyright (c) 2017 Miouyouyou <Myy> <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation |
VAO* load_model(const char* path) { | |
// import model | |
const struct aiScene* scene = aiImportFile(path, aiProcess_Triangulate); // http://assimp.sourceforge.net/lib_html/structai_scene.html | |
if(scene->mNumMeshes <= 0) { | |
aiReleaseImport(scene); | |
return 0; | |
} | |
struct aiMesh* mesh = *scene->mMeshes; // http://assimp.sourceforge.net/lib_html/structai_mesh.html |
README.MD from https://github.com/FlightBlaze/Newtoo
Newtoo is the brand new rendering engine for web browsers. Its idea is high perfomance, standard compilance and low memory consumption. It designed to use in web browser Magenta.
Newtoo tries to show a page faster than to load it completely.