mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-08-09 01:28:45 +00:00
fx
This commit is contained in:
parent
61935cdd6e
commit
113e825898
1 changed files with 37 additions and 34 deletions
|
@ -3,6 +3,7 @@ package com.panda3ds.pandroid.view;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.opengl.GLSurfaceView;
|
import android.opengl.GLSurfaceView;
|
||||||
import android.os.Debug;
|
import android.os.Debug;
|
||||||
|
import android.view.SurfaceHolder;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import com.panda3ds.pandroid.math.Vector2;
|
import com.panda3ds.pandroid.math.Vector2;
|
||||||
|
@ -25,7 +26,9 @@ public class PandaGlSurfaceView extends GLSurfaceView implements TouchScreenNode
|
||||||
setRenderer(renderer);
|
setRenderer(renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConsoleRenderer getRenderer() { return renderer; }
|
public ConsoleRenderer getRenderer() {
|
||||||
|
return renderer;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||||
|
@ -49,7 +52,7 @@ public class PandaGlSurfaceView extends GLSurfaceView implements TouchScreenNode
|
||||||
public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) {
|
public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) {
|
||||||
super.onSurfaceChanged(holder, format, width, height);
|
super.onSurfaceChanged(holder, format, width, height);
|
||||||
// Update the dimensions in the renderer when the surface changes
|
// Update the dimensions in the renderer when the surface changes
|
||||||
renderer.onSurfaceChanged(newWidth, newHeight);
|
renderer.onSurfaceChanged(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue