clarify
This commit is contained in:
1 parent
c716ccd94d
commit
b216ac7859
2 files changed
+15
-10
No files matched your search
@@ -22,16 +22,6 @@ class RenderGLView(context: Context):
|
||||
setRenderer(this)
|
||||
}
|
||||
|
||||
override fun onSurfaceCreated(gl: GL10?, config: EGLConfig?) {
|
||||
// A new context needs fresh rlgl resources, including after pause/resume
|
||||
renderSet(F.didPrepareAndroidGL, true)
|
||||
}
|
||||
|
||||
override fun onSurfaceChanged(gl: GL10?, width: Int, height: Int) {
|
||||
val ps = renderPixelSize(width, height)
|
||||
renderSet(F.reshapePixelSize, ps)
|
||||
}
|
||||
|
||||
override fun onDrawFrame(gl: GL10?) {
|
||||
renderDraw(RenderVM.shared!!)
|
||||
}
|
||||
@@ -41,4 +31,14 @@ class RenderGLView(context: Context):
|
||||
queueEvent { renderSet(F.willDeinit, true) }
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onSurfaceChanged(gl: GL10?, width: Int, height: Int) {
|
||||
val ps = renderPixelSize(width, height)
|
||||
renderSet(F.reshapePixelSize, ps)
|
||||
}
|
||||
|
||||
override fun onSurfaceCreated(gl: GL10?, config: EGLConfig?) {
|
||||
// A new context needs fresh rlgl resources, including after pause/resume
|
||||
renderSet(F.didPrepareAndroidGL, true)
|
||||
}
|
||||
}
|
||||
@@ -220,6 +220,11 @@ Sort imports, includes and equivalent dependency declarations alphabetically on
|
||||
all platforms, unless compiler requirements mandate a different order. Preserve
|
||||
required ordering between implementation macros and their associated includes.
|
||||
|
||||
Sort methods alphabetically by name within each class or object on all platforms,
|
||||
including lifecycle callbacks such as RenderGLView's onDrawFrame, onPause,
|
||||
onSurfaceChanged and onSurfaceCreated. Keep constructors and initialization blocks
|
||||
before the methods, and preserve any declaration order required by the compiler.
|
||||
|
||||
Resolve links to understand ownership; do not edit through copied duplicates.
|
||||
|
||||
If a component file has different implementations across platforms or languages,
|
||||
|
||||
Reference in new issue
Block a user