klob / FablousVR

Providing a library which can help you implement a VrView easily.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple VrView Implement

Providing a library which can help you implement a VrView easily.

Sample

image

Usage

VrLayout

		<com.diandi.klob.vrview.VrLayout
   		 xmlns:android="http://schemas.android.com/apk/res/android"
   		 android:id="@+id/layout_vr"
   		 android:layout_width="match_parent"
  		 android:layout_height="match_parent"
    />

set two renders for the VrView

		mVrRender = new VrRender(this, bitmap);
        mVrRender2 = new VrRender(this, bitmap);
        mVrLayout.setRender(mVrRender,mVrRender2);

and then call

    protected void onResume() {
        super.onResume();
        if (null != mVrLayout) {
            mVrLayout.onResume();
        }

    }

    @Override
    protected void onPause() {
        super.onPause();
        if (null != mVrLayout) {
            mVrLayout.onPause();
        }
    }

#More see the demo or https://developers.google.com/vr/

License

Copyright (C) 2016 klobliu (http://klob.diandi.life).

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Providing a library which can help you implement a VrView easily.


Languages

Language:Java 99.4%Language:GLSL 0.6%