Revision 0579fe3a
Added by Leszek Koltunski almost 7 years ago
| src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java | ||
|---|---|---|
| 165 | 165 |
b.setOnClickListener(this); |
| 166 | 166 |
b.setId(rows*mNumCols+cols); |
| 167 | 167 |
b.setLayoutParams(p); |
| 168 |
b.setBackgroundColor(mObjectType==1 ? COLOR_INAC : COLOR_ON);
|
|
| 168 |
b.setBackgroundColor(mObjectType==0 ? COLOR_ON:COLOR_INAC);
|
|
| 169 | 169 |
tr.addView(b, p); |
| 170 | 170 |
mShape[rows*mNumCols+cols] = true; |
| 171 | 171 |
} |
| src/main/java/org/distorted/examples/inflate/InflateActivity.java | ||
|---|---|---|
| 165 | 165 |
b.setOnClickListener(this); |
| 166 | 166 |
b.setId(rows*mNumCols+cols); |
| 167 | 167 |
b.setLayoutParams(p); |
| 168 |
b.setBackgroundColor(mObjectType==1 ? COLOR_INAC : COLOR_ON);
|
|
| 168 |
b.setBackgroundColor(mObjectType==0 ? COLOR_ON:COLOR_INAC);
|
|
| 169 | 169 |
tr.addView(b, p); |
| 170 | 170 |
mShape[rows*mNumCols+cols] = true; |
| 171 | 171 |
} |
| src/main/java/org/distorted/examples/inflate/InflateRenderer.java | ||
|---|---|---|
| 40 | 40 |
|
| 41 | 41 |
class InflateRenderer implements GLSurfaceView.Renderer |
| 42 | 42 |
{
|
| 43 |
private static final float FOV = 30.0f; |
|
| 44 |
private static final float NEAR = 0.1f; |
|
| 45 |
|
|
| 43 | 46 |
private GLSurfaceView mView; |
| 44 | 47 |
private DistortedTexture mTexture; |
| 45 | 48 |
private DistortedEffects mEffects; |
| ... | ... | |
| 87 | 90 |
|
| 88 | 91 |
mScreen = new DistortedScreen(); |
| 89 | 92 |
mScreen.glClearColor(1.0f,1.0f,1.0f,0.0f); |
| 93 |
mScreen.setProjection(FOV, NEAR); |
|
| 90 | 94 |
} |
| 91 | 95 |
|
| 92 | 96 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Some fixes for Sphere; still not completely ok though.