From cd3520439271014e68bb18fc5ff65174f9782796 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sun, 25 Nov 2018 03:05:22 +0100 Subject: [PATCH] Samples: AndroidTextureOES - properly convert enum and use RGN_DEFAULT --- Samples/AndroidTextureOES/MainActivity.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Samples/AndroidTextureOES/MainActivity.java b/Samples/AndroidTextureOES/MainActivity.java index 36d4996c10e..ed5857dbe49 100644 --- a/Samples/AndroidTextureOES/MainActivity.java +++ b/Samples/AndroidTextureOES/MainActivity.java @@ -93,10 +93,7 @@ private void initializeScene() { cameraNode.attachObject(camera); cameraNode.setPosition(0f, 0f, 15f); - final MaterialPtr material = MaterialManager.getSingleton().create( - "PlaneMat", - ResourceGroupManager.getDEFAULT_RESOURCE_GROUP_NAME() - ); + final MaterialPtr material = MaterialManager.getSingleton().create("PlaneMat", Ogre.getRGN_DEFAULT()); final Pass pass = material.getTechniques().get(0).getPass(0); pass.setDepthCheckEnabled(false); @@ -104,8 +101,7 @@ private void initializeScene() { pass.setLightingEnabled(false); final TexturePtr texturePtr = TextureManager.getSingleton().createManual( - "SomeTexture", - "General", + "SomeTexture", Ogre.getRGN_DEFAULT(), TextureType.TEX_TYPE_EXTERNAL_OES, 1080, 1920, @@ -125,7 +121,7 @@ private void initializeScene() { // 90 deg rotate: rect.setUVs(new Vector2(0, 1), new Vector2(1, 1), new Vector2(0, 0), new Vector2(1, 0)); rect.setMaterial(material); - rect.setRenderQueueGroup((short) OgreJNI.RENDER_QUEUE_BACKGROUND_get()); + rect.setRenderQueueGroup((short)RenderQueueGroupID.RENDER_QUEUE_BACKGROUND.swigValue()); rect.setBoundingBox(bb); final SceneNode rectNode = scnMgr.getRootSceneNode().createChildSceneNode();