Style: Apply clang-format to wrongly formatted files
This commit is contained in:
parent
7e8cffc03f
commit
bfd1f09ac5
2 changed files with 8 additions and 8 deletions
|
@ -279,7 +279,7 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
|
||||||
// ...add to FrameLayout
|
// ...add to FrameLayout
|
||||||
layout.addView(edittext);
|
layout.addView(edittext);
|
||||||
|
|
||||||
mView = new GodotView(getApplication(), io, use_gl3, use_32_bits, use_debug_opengl,this);
|
mView = new GodotView(getApplication(), io, use_gl3, use_32_bits, use_debug_opengl, this);
|
||||||
layout.addView(mView, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
|
layout.addView(mView, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
|
||||||
edittext.setView(mView);
|
edittext.setView(mView);
|
||||||
io.setEdit(edittext);
|
io.setEdit(edittext);
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class GodotView extends GLSurfaceView implements InputDeviceListener {
|
||||||
private Godot activity;
|
private Godot activity;
|
||||||
|
|
||||||
private InputManagerCompat mInputManager;
|
private InputManagerCompat mInputManager;
|
||||||
public GodotView(Context context, GodotIO p_io, boolean p_use_gl3, boolean p_use_32_bits, boolean p_use_debug_opengl,Godot p_activity) {
|
public GodotView(Context context, GodotIO p_io, boolean p_use_gl3, boolean p_use_32_bits, boolean p_use_debug_opengl, Godot p_activity) {
|
||||||
super(context);
|
super(context);
|
||||||
ctx = context;
|
ctx = context;
|
||||||
io = p_io;
|
io = p_io;
|
||||||
|
@ -434,9 +434,9 @@ public class GodotView extends GLSurfaceView implements InputDeviceListener {
|
||||||
setRenderer(new Renderer());
|
setRenderer(new Renderer());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final int _EGL_CONTEXT_FLAGS_KHR = 0x30FC;
|
private static final int _EGL_CONTEXT_FLAGS_KHR = 0x30FC;
|
||||||
private static final int _EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR= 0x00000001;
|
private static final int _EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR = 0x00000001;
|
||||||
|
|
||||||
private static class ContextFactory implements GLSurfaceView.EGLContextFactory {
|
private static class ContextFactory implements GLSurfaceView.EGLContextFactory {
|
||||||
private static int EGL_CONTEXT_CLIENT_VERSION = 0x3098;
|
private static int EGL_CONTEXT_CLIENT_VERSION = 0x3098;
|
||||||
public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) {
|
public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) {
|
||||||
|
@ -448,9 +448,9 @@ public class GodotView extends GLSurfaceView implements InputDeviceListener {
|
||||||
checkEglError("Before eglCreateContext", egl);
|
checkEglError("Before eglCreateContext", egl);
|
||||||
EGLContext context;
|
EGLContext context;
|
||||||
if (use_debug_opengl) {
|
if (use_debug_opengl) {
|
||||||
int[] attrib_list2 = { EGL_CONTEXT_CLIENT_VERSION, 2,_EGL_CONTEXT_FLAGS_KHR,_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR, EGL10.EGL_NONE };
|
int[] attrib_list2 = { EGL_CONTEXT_CLIENT_VERSION, 2, _EGL_CONTEXT_FLAGS_KHR, _EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR, EGL10.EGL_NONE };
|
||||||
int[] attrib_list3 = { EGL_CONTEXT_CLIENT_VERSION, 3,_EGL_CONTEXT_FLAGS_KHR,_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR, EGL10.EGL_NONE };
|
int[] attrib_list3 = { EGL_CONTEXT_CLIENT_VERSION, 3, _EGL_CONTEXT_FLAGS_KHR, _EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR, EGL10.EGL_NONE };
|
||||||
context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, use_gl3 ? attrib_list3 : attrib_list2);
|
context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, use_gl3 ? attrib_list3 : attrib_list2);
|
||||||
} else {
|
} else {
|
||||||
int[] attrib_list2 = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE };
|
int[] attrib_list2 = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE };
|
||||||
int[] attrib_list3 = { EGL_CONTEXT_CLIENT_VERSION, 3, EGL10.EGL_NONE };
|
int[] attrib_list3 = { EGL_CONTEXT_CLIENT_VERSION, 3, EGL10.EGL_NONE };
|
||||||
|
|
Loading…
Reference in a new issue