File tree Expand file tree Collapse file tree 15 files changed +34
-84
lines changed
androidTest/java/me/ctknight/myapplication
test/java/me/ctknight/myapplication Expand file tree Collapse file tree 15 files changed +34
-84
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,11 @@ apply plugin: 'kotlin-kapt'
5
5
android {
6
6
compileSdkVersion 28
7
7
defaultConfig {
8
- applicationId " me.ctknight.myapplication "
8
+ applicationId " me.ctknight.vrdemo "
9
9
minSdkVersion 24
10
10
targetSdkVersion 28
11
11
versionCode 1
12
12
versionName " 1.0"
13
- testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
14
13
}
15
14
buildTypes {
16
15
release {
@@ -25,14 +24,8 @@ dependencies {
25
24
implementation ' org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.10'
26
25
27
26
implementation ' androidx.appcompat:appcompat:1.0.0-alpha1'
28
- implementation ' androidx.constraintlayout:constraintlayout:1.1.2'
29
-
30
- implementation " org.permissionsdispatcher:permissionsdispatcher:4.3.0"
31
- kapt " org.permissionsdispatcher:permissionsdispatcher-processor:4.3.0"
32
27
33
28
implementation ' com.google.ar:core:1.6.0'
34
- // Adds Google VR spatial audio support
35
- implementation ' com.google.vr:sdk-audio:1.180.0'
36
29
// Required for all Google VR apps
37
30
implementation ' com.google.vr:sdk-base:1.180.0'
38
31
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- package =" me.ctknight.myapplication " >
3
+ package =" me.ctknight.vrdemo " >
4
4
5
5
<uses-permission android : name =" android.permission.CAMERA" />
6
6
<!-- Required for vibration feedback when the trigger action is performed. -->
43
43
android : name =" com.google.ar.core"
44
44
android : value =" required" />
45
45
<activity
46
- android : name =" .ui.MainActivity"
46
+ android : name =" me.ctknight.vrdemo .ui.MainActivity"
47
47
android : configChanges =" orientation|keyboardHidden|screenSize|uiMode|navigation|density"
48
48
android : enableVrMode =" @string/gvr_vr_mode_component"
49
49
android : resizeableActivity =" false"
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication
1
+ package me.ctknight.vrdemo
2
2
3
3
import android.content.Context
4
4
import android.graphics.Bitmap
@@ -9,7 +9,7 @@ import android.opengl.Matrix
9
9
import de.javagl.obj.Mtl
10
10
import de.javagl.obj.Obj
11
11
import de.javagl.obj.ObjData
12
- import me.ctknight.myapplication .utils.ShaderUtil
12
+ import me.ctknight.vrdemo .utils.ShaderUtil
13
13
import java.io.IOException
14
14
import java.nio.FloatBuffer
15
15
import java.nio.ShortBuffer
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication
1
+ package me.ctknight.vrdemo
2
2
3
3
import android.opengl.Matrix
4
4
import android.util.LongSparseArray
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication
1
+ package me.ctknight.vrdemo
2
2
3
3
import android.content.Context
4
4
import android.opengl.GLES20
@@ -10,12 +10,12 @@ import com.google.vr.sdk.base.Eye
10
10
import com.google.vr.sdk.base.GvrView
11
11
import com.google.vr.sdk.base.HeadTransform
12
12
import com.google.vr.sdk.base.Viewport
13
- import me.ctknight.myapplication .drawer.BackgroundRenderer
14
- import me.ctknight.myapplication .drawer.IDrawer
15
- import me.ctknight.myapplication .drawer.SimpleDrawer
16
- import me.ctknight.myapplication .ui.MainActivity
17
- import me.ctknight.myapplication .utils.ShaderUtil
18
- import me.ctknight.myapplication .utils.toViewPoseTranslation
13
+ import me.ctknight.vrdemo .drawer.BackgroundRenderer
14
+ import me.ctknight.vrdemo .drawer.IDrawer
15
+ import me.ctknight.vrdemo .drawer.SimpleDrawer
16
+ import me.ctknight.vrdemo .ui.MainActivity
17
+ import me.ctknight.vrdemo .utils.ShaderUtil
18
+ import me.ctknight.vrdemo .utils.toViewPoseTranslation
19
19
import javax.microedition.khronos.egl.EGLConfig
20
20
21
21
class VRRenderer (
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package me.ctknight.myapplication .drawer
16
+ package me.ctknight.vrdemo .drawer
17
17
18
18
import android.content.Context
19
19
import android.opengl.GLES11Ext
20
20
import android.opengl.GLES20
21
21
import com.google.ar.core.Frame
22
22
import com.google.ar.core.Session
23
- import me.ctknight.myapplication .utils.ShaderUtil
23
+ import me.ctknight.vrdemo .utils.ShaderUtil
24
24
import java.io.IOException
25
25
import java.nio.ByteBuffer
26
26
import java.nio.ByteOrder
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication .drawer
1
+ package me.ctknight.vrdemo .drawer
2
2
3
3
import android.opengl.GLES20
4
4
5
- import me.ctknight.myapplication .ModelData
6
- import me.ctknight.myapplication .Scene
5
+ import me.ctknight.vrdemo .ModelData
6
+ import me.ctknight.vrdemo .Scene
7
7
8
8
abstract class IDrawer {
9
9
abstract fun prepareOnGLThread ()
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication .drawer
1
+ package me.ctknight.vrdemo .drawer
2
2
3
3
import android.content.Context
4
4
import android.opengl.GLES20
5
5
import android.util.Log
6
- import me.ctknight.myapplication .ModelData
7
- import me.ctknight.myapplication .Scene
8
- import me.ctknight.myapplication .utils.ShaderUtil
6
+ import me.ctknight.vrdemo .ModelData
7
+ import me.ctknight.vrdemo .Scene
8
+ import me.ctknight.vrdemo .utils.ShaderUtil
9
9
import java.io.IOException
10
10
11
11
// must be created in GL render thread
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication .ui
1
+ package me.ctknight.vrdemo .ui
2
2
3
3
import android.Manifest
4
4
import android.os.Bundle
@@ -12,10 +12,10 @@ import com.google.ar.core.Session
12
12
import com.google.ar.core.exceptions.*
13
13
import com.google.vr.sdk.base.GvrActivity
14
14
import de.javagl.obj.*
15
- import me.ctknight.myapplication .ModelData
16
- import me.ctknight.myapplication .R
17
- import me.ctknight.myapplication .Scene
18
- import me.ctknight.myapplication .VRRenderer
15
+ import me.ctknight.vrdemo .ModelData
16
+ import me.ctknight.vrdemo .R
17
+ import me.ctknight.vrdemo .Scene
18
+ import me.ctknight.vrdemo .VRRenderer
19
19
import permissions.dispatcher.*
20
20
import java.io.IOException
21
21
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication .ui
1
+ package me.ctknight.vrdemo .ui
2
2
3
3
import android.content.Context
4
4
import android.util.AttributeSet
5
5
import com.google.vr.sdk.base.GvrView
6
- import me.ctknight.myapplication .VRRenderer
6
+ import me.ctknight.vrdemo .VRRenderer
7
7
8
8
class VRView : GvrView {
9
9
Original file line number Diff line number Diff line change 1
- package me.ctknight.myapplication .utils
1
+ package me.ctknight.vrdemo .utils
2
2
3
3
import com.google.ar.core.Pose
4
4
Original file line number Diff line number Diff line change 12
12
* See the License for the specific language governing permissions and
13
13
* limitations under the License.
14
14
*/
15
- package me .ctknight .myapplication .utils ;
15
+ package me .ctknight .vrdemo .utils ;
16
16
17
17
import android .content .Context ;
18
18
import android .opengl .GLES20 ;
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <FrameLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : tools =" http://schemas.android.com/tools"
4
4
android : layout_width =" match_parent"
5
5
android : layout_height =" match_parent"
6
6
tools : context =" .ui.MainActivity" >
7
7
8
- <me .ctknight.myapplication .ui.VRView
8
+ <me .ctknight.vrdemo .ui.VRView
9
9
android : id =" @+id/surface_view"
10
10
android : layout_width =" match_parent"
11
11
android : layout_height =" match_parent" />
12
12
13
- </androidx .constraintlayout.widget.ConstraintLayout >
13
+ </FrameLayout >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments