com.supermap.ar.areffect.preset
Class Skybox
- java.lang.Object
-
- <any>
-
- com.supermap.ar.areffect.preset.Skybox
-
public class Skybox extends <any>
Circular sky-surrounding box
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
Skybox.DataType
-
Constructor Summary
Constructors Constructor and Description Skybox(MatType matType)
Construction method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
drawSkyBox(float radius)
Draws a spherevoid
drawSkyBox(Vector offset, float radius)
Draws a spherevoid
loadSource(android.graphics.Bitmap bitmap)
void
loadSource(int resourceId)
void
loadSource(android.media.MediaPlayer mediaPlayer)
Skybox
setTextureMap(android.graphics.Bitmap textureMap)
Setting the texture map
-
-
-
Constructor Detail
-
Skybox
public Skybox(MatType matType)
Construction method- Parameters:
matType
- texture type (transparent/opaque)
-
-
Method Detail
-
loadSource
public void loadSource(android.media.MediaPlayer mediaPlayer)
-
loadSource
public void loadSource(android.graphics.Bitmap bitmap)
-
loadSource
public void loadSource(int resourceId)
-
drawSkyBox
public void drawSkyBox(Vector offset, float radius)
Draws a sphere- Parameters:
offset
- the offset (relative to the parent node)radius
- sphere radius
-
drawSkyBox
public void drawSkyBox(float radius)
Draws a sphere- Parameters:
radius
- sphere radius
-
setTextureMap
public Skybox setTextureMap(android.graphics.Bitmap textureMap)
Setting the texture map- Parameters:
textureMap
-- Returns:
-
-