i need help
for my android lib i need init my class in b4a with a android.content.Context
because GLSurfaceView have this in the constructor.
android library part in android studio
b4a
for my android lib i need init my class in b4a with a android.content.Context
because GLSurfaceView have this in the constructor.
android library part in android studio
B4X:
import android.content.Context;
import android.opengl.GLSurfaceView;
import android.view.View;
@ShortName("ThreeDimensional")
public class ThreeDimensional {
private GLSurfaceView glView; // use GLSurfaceView
public View Init(Context context)
{
glView = new GLSurfaceView(context); // Allocate a GLSurfaceView
glView.setRenderer(new MyGLRenderer(context)); // Use a custom renderer
return glView;
}
b4a
B4X:
Private Test1 As ThreeDimensional
Test1.Init(???)