Revision 100e2da7
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/flag/FlagSurfaceView.java | ||
---|---|---|
22 | 22 |
import android.content.Context; |
23 | 23 |
import android.opengl.GLSurfaceView; |
24 | 24 |
import android.os.Build; |
25 |
import android.util.AttributeSet; |
|
25 | 26 |
import android.view.MotionEvent; |
26 |
import android.widget.Toast; |
|
27 |
|
|
28 |
import org.distorted.examples.R; |
|
29 | 27 |
|
30 | 28 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
31 | 29 |
|
... | ... | |
36 | 34 |
|
37 | 35 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
38 | 36 |
|
39 |
public FlagSurfaceView(Context c) |
|
37 |
public FlagSurfaceView(Context c, AttributeSet attrs)
|
|
40 | 38 |
{ |
41 |
super(c); |
|
39 |
super(c,attrs);
|
|
42 | 40 |
|
43 | 41 |
mX = -1; |
44 | 42 |
mY = -1; |
... | ... | |
55 | 53 |
mRenderer = new FlagRenderer(this); |
56 | 54 |
|
57 | 55 |
setRenderer(mRenderer); |
58 |
|
|
59 |
Toast.makeText(c, R.string.example_rotate_toast , Toast.LENGTH_SHORT).show(); |
|
60 | 56 |
} |
61 | 57 |
} |
62 | 58 |
|
Also available in: Unified diff
Progress with the 'Flag' test app.