Revision a4d59c0b
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/girl/GirlActivity.java | ||
---|---|---|
44 | 44 |
|
45 | 45 |
setContentView(R.layout.girllayout); |
46 | 46 |
|
47 |
textSwing = (TextView)findViewById(R.id.girlTextSwing);
|
|
48 |
textSize = (TextView)findViewById(R.id.girlTextSize);
|
|
49 |
textHips = (TextView)findViewById(R.id.girlTextHips);
|
|
47 |
textSwing = findViewById(R.id.girlTextSwing); |
|
48 |
textSize = findViewById(R.id.girlTextSize); |
|
49 |
textHips = findViewById(R.id.girlTextHips); |
|
50 | 50 |
|
51 |
SeekBar barSwing = (SeekBar)findViewById(R.id.girlSeekSwing);
|
|
52 |
SeekBar barSize = (SeekBar)findViewById(R.id.girlSeekSize);
|
|
53 |
SeekBar barHips = (SeekBar)findViewById(R.id.girlSeekHips);
|
|
51 |
SeekBar barSwing = findViewById(R.id.girlSeekSwing); |
|
52 |
SeekBar barSize = findViewById(R.id.girlSeekSize); |
|
53 |
SeekBar barHips = findViewById(R.id.girlSeekHips); |
|
54 | 54 |
|
55 | 55 |
barSwing.setOnSeekBarChangeListener(this); |
56 | 56 |
barSize.setOnSeekBarChangeListener(this); |
... | ... | |
70 | 70 |
@Override |
71 | 71 |
protected void onPause() |
72 | 72 |
{ |
73 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.girlSurfaceView);
|
|
73 |
GLSurfaceView view = findViewById(R.id.girlSurfaceView); |
|
74 | 74 |
view.onPause(); |
75 | 75 |
|
76 | 76 |
Distorted.onPause(); |
... | ... | |
84 | 84 |
{ |
85 | 85 |
super.onResume(); |
86 | 86 |
|
87 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.girlSurfaceView);
|
|
87 |
GLSurfaceView view = findViewById(R.id.girlSurfaceView); |
|
88 | 88 |
view.onResume(); |
89 | 89 |
} |
90 | 90 |
|
... | ... | |
103 | 103 |
{ |
104 | 104 |
int v; |
105 | 105 |
float s; |
106 |
GirlSurfaceView view = (GirlSurfaceView) this.findViewById(R.id.girlSurfaceView);
|
|
106 |
GirlSurfaceView view = findViewById(R.id.girlSurfaceView); |
|
107 | 107 |
|
108 | 108 |
switch (bar.getId()) |
109 | 109 |
{ |
Also available in: Unified diff
Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).