There's no need to keep these private. If you extend SDLActivity, you should know what you're doing.
This commit is contained in:
parent
20ff4d06d8
commit
e8051fbb53
1 changed files with 14 additions and 14 deletions
|
@ -30,24 +30,24 @@ public class SDLActivity extends Activity {
|
||||||
public static boolean mIsPaused = false;
|
public static boolean mIsPaused = false;
|
||||||
|
|
||||||
// Main components
|
// Main components
|
||||||
private static SDLActivity mSingleton;
|
protected static SDLActivity mSingleton;
|
||||||
private static SDLSurface mSurface;
|
protected static SDLSurface mSurface;
|
||||||
private static View mTextEdit;
|
protected static View mTextEdit;
|
||||||
private static ViewGroup mLayout;
|
protected static ViewGroup mLayout;
|
||||||
|
|
||||||
// This is what SDL runs in. It invokes SDL_main(), eventually
|
// This is what SDL runs in. It invokes SDL_main(), eventually
|
||||||
private static Thread mSDLThread;
|
protected static Thread mSDLThread;
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
private static Thread mAudioThread;
|
protected static Thread mAudioThread;
|
||||||
private static AudioTrack mAudioTrack;
|
protected static AudioTrack mAudioTrack;
|
||||||
|
|
||||||
// EGL private objects
|
// EGL private objects
|
||||||
private static EGLContext mEGLContext;
|
protected static EGLContext mEGLContext;
|
||||||
private static EGLSurface mEGLSurface;
|
protected static EGLSurface mEGLSurface;
|
||||||
private static EGLDisplay mEGLDisplay;
|
protected static EGLDisplay mEGLDisplay;
|
||||||
private static EGLConfig mEGLConfig;
|
protected static EGLConfig mEGLConfig;
|
||||||
private static int mGLMajor, mGLMinor;
|
protected static int mGLMajor, mGLMinor;
|
||||||
|
|
||||||
// Load the .so
|
// Load the .so
|
||||||
static {
|
static {
|
||||||
|
@ -493,10 +493,10 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
|
||||||
View.OnKeyListener, View.OnTouchListener, SensorEventListener {
|
View.OnKeyListener, View.OnTouchListener, SensorEventListener {
|
||||||
|
|
||||||
// Sensors
|
// Sensors
|
||||||
private static SensorManager mSensorManager;
|
protected static SensorManager mSensorManager;
|
||||||
|
|
||||||
// Keep track of the surface size to normalize touch events
|
// Keep track of the surface size to normalize touch events
|
||||||
private static float mWidth, mHeight;
|
protected static float mWidth, mHeight;
|
||||||
|
|
||||||
// Startup
|
// Startup
|
||||||
public SDLSurface(Context context) {
|
public SDLSurface(Context context) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue