Revision 9b9440a0
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
52 | 52 |
class CheckRenderer implements GLSurfaceView.Renderer |
53 | 53 |
{ |
54 | 54 |
private static final String TAG = "CheckRenderer"; |
55 |
private static String compilationResult; |
|
56 |
private static String compilationTitle; |
|
55 | 57 |
|
56 | 58 |
private GLSurfaceView mView; |
57 | 59 |
private DistortedBitmap mSuccess; |
58 | 60 |
private int bmpHeight, bmpWidth; |
59 | 61 |
|
60 |
public static String compilationResult; |
|
61 |
public static String compilationTitle; |
|
62 |
|
|
63 | 62 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
64 | 63 |
|
65 |
public CheckRenderer(GLSurfaceView view)
|
|
64 |
CheckRenderer(GLSurfaceView view)
|
|
66 | 65 |
{ |
67 | 66 |
mView = view; |
68 | 67 |
|
69 |
Distorted.setMaxVertex(CheckActivity.getMaxV()); |
|
70 |
Distorted.setMaxFragment(CheckActivity.getMaxF()); |
|
68 |
CheckActivity act = (CheckActivity)mView.getContext(); |
|
69 |
|
|
70 |
Distorted.setMaxVertex(act.getMaxV()); |
|
71 |
Distorted.setMaxFragment(act.getMaxF()); |
|
71 | 72 |
} |
72 | 73 |
|
73 | 74 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Remove unneeded 'statics' from the 'Check' app