mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 20:11:39 +12:00
Even more peach stuff
This commit is contained in:
parent
a78a1a099f
commit
e6880b1564
4 changed files with 17 additions and 6 deletions
|
@ -15,8 +15,8 @@ public class Constants {
|
|||
public static final int INPUT_KEY_Y = 1 << 11;
|
||||
|
||||
public static final int N3DS_WIDTH = 400;
|
||||
public static final int N3DS_HALF_HEIGHT = 240;
|
||||
public static final int N3DS_FULL_HEIGHT = N3DS_HALF_HEIGHT * 2;
|
||||
public static final int N3DS_FULL_HEIGHT = 480;
|
||||
public static final int N3DS_HALF_HEIGHT = N3DS_FULL_HEIGHT / 2;
|
||||
|
||||
public static final String ACTIVITY_PARAMETER_PATH = "path";
|
||||
public static final String LOG_TAG = "pandroid";
|
||||
|
|
|
@ -69,6 +69,9 @@ public class PandaGlRenderer implements GLSurfaceView.Renderer, ConsoleRenderer
|
|||
screenFbo = generateBuffer[0];
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, screenFbo);
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, screenTexture, 0);
|
||||
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) {
|
||||
Log.e(Constants.LOG_TAG, "Framebuffer is not complete");
|
||||
}
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||
|
||||
AlberDriver.Initialize();
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.panda3ds.pandroid.view;
|
|||
|
||||
import android.content.Context;
|
||||
import android.opengl.GLSurfaceView;
|
||||
import android.os.Debug;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import com.panda3ds.pandroid.math.Vector2;
|
||||
|
@ -17,7 +18,9 @@ public class PandaGlSurfaceView extends GLSurfaceView implements TouchScreenNode
|
|||
public PandaGlSurfaceView(Context context, String romPath) {
|
||||
super(context);
|
||||
setEGLContextClientVersion(3);
|
||||
setDebugFlags(DEBUG_LOG_GL_CALLS);
|
||||
if (Debug.isDebuggerConnected()) {
|
||||
setDebugFlags(DEBUG_LOG_GL_CALLS);
|
||||
}
|
||||
renderer = new PandaGlRenderer(romPath);
|
||||
setRenderer(renderer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue