Revision 89a0d841
Added by Leszek Koltunski over 8 years ago
src/main/java/org/distorted/examples/bean/BeanRenderer.java | ||
---|---|---|
83 | 83 |
|
84 | 84 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
85 | 85 |
{ |
86 |
mBean.abortAllEffects(Distorted.TYPE_MATR);
|
|
86 |
mBean.abortAllEffects(Distorted.TYPE_PRE);
|
|
87 | 87 |
|
88 | 88 |
if( bmpHeight/bmpWidth > height/width ) |
89 | 89 |
{ |
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
60 | 60 |
|
61 | 61 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
62 | 62 |
{ |
63 |
mSuccess.abortAllEffects(Distorted.TYPE_MATR);
|
|
63 |
mSuccess.abortAllEffects(Distorted.TYPE_PRE);
|
|
64 | 64 |
|
65 | 65 |
if( bmpHeight/bmpWidth > height/width ) |
66 | 66 |
{ |
src/main/java/org/distorted/examples/cubes/CubesRenderer.java | ||
---|---|---|
78 | 78 |
{ |
79 | 79 |
mScreenMin = width<height ? width:height; |
80 | 80 |
|
81 |
mCubes.abortAllEffects(Distorted.TYPE_MATR);
|
|
81 |
mCubes.abortAllEffects(Distorted.TYPE_PRE);
|
|
82 | 82 |
|
83 | 83 |
if( mRows/mCols > height/width ) |
84 | 84 |
{ |
src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java | ||
---|---|---|
92 | 92 |
{ |
93 | 93 |
for(int i=NUM-1; i>=0; i--) |
94 | 94 |
{ |
95 |
bmp[i].abortAllEffects(Distorted.TYPE_MATR);
|
|
95 |
bmp[i].abortAllEffects(Distorted.TYPE_PRE);
|
|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
if( bmpHeight/(NUM*bmpWidth) > height/width ) |
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java | ||
---|---|---|
78 | 78 |
{ |
79 | 79 |
for(int i=NUM-1; i>=0; i--) |
80 | 80 |
{ |
81 |
bmp[i].abortAllEffects(Distorted.TYPE_MATR);
|
|
81 |
bmp[i].abortAllEffects(Distorted.TYPE_PRE);
|
|
82 | 82 |
} |
83 | 83 |
|
84 | 84 |
if( bmpHeight/(NUM*bmpWidth) > height/width ) |
src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java | ||
---|---|---|
78 | 78 |
|
79 | 79 |
public static void setMatrixEffects() |
80 | 80 |
{ |
81 |
mCube.abortAllEffects(Distorted.TYPE_MATR);
|
|
81 |
mCube.abortAllEffects(Distorted.TYPE_PRE);
|
|
82 | 82 |
|
83 | 83 |
for( int i=0; i<=order.length-1 ; i++ ) |
84 | 84 |
{ |
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
50 | 50 |
|
51 | 51 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
52 | 52 |
{ |
53 |
mLisa.abortAllEffects(Distorted.TYPE_MATR);
|
|
53 |
mLisa.abortAllEffects(Distorted.TYPE_PRE);
|
|
54 | 54 |
|
55 | 55 |
if( lisaHeight/lisaWidth > height/width ) |
56 | 56 |
{ |
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
148 | 148 |
|
149 | 149 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
150 | 150 |
{ |
151 |
mGirl.abortAllEffects(Distorted.TYPE_MATR);
|
|
151 |
mGirl.abortAllEffects(Distorted.TYPE_PRE);
|
|
152 | 152 |
|
153 | 153 |
if( bmpHeight/bmpWidth > height/width ) |
154 | 154 |
{ |
src/main/java/org/distorted/examples/interpolator/InterpolatorRenderer.java | ||
---|---|---|
65 | 65 |
|
66 | 66 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
67 | 67 |
{ |
68 |
mBackground.abortAllEffects(Distorted.TYPE_MATR);
|
|
68 |
mBackground.abortAllEffects(Distorted.TYPE_PRE);
|
|
69 | 69 |
mBackground.scale((float)width/texWidth,(float)height/texHeight,1); |
70 | 70 |
Distorted.onSurfaceChanged(width, height); |
71 | 71 |
InterpolatorSurfaceView.setScreenSize(width,height); |
src/main/java/org/distorted/examples/listener/ListenerRenderer.java | ||
---|---|---|
84 | 84 |
|
85 | 85 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
86 | 86 |
{ |
87 |
water.abortAllEffects(Distorted.TYPE_MATR);
|
|
87 |
water.abortAllEffects(Distorted.TYPE_PRE);
|
|
88 | 88 |
|
89 | 89 |
if( bmpHeight/bmpWidth > height/width ) |
90 | 90 |
{ |
src/main/java/org/distorted/examples/macroblock/MacroblockRenderer.java | ||
---|---|---|
113 | 113 |
diRotate.add(new Float1D( 0)); |
114 | 114 |
diRotate.add(new Float1D(360)); |
115 | 115 |
|
116 |
macroblock.abortAllEffects(Distorted.TYPE_MATR);
|
|
116 |
macroblock.abortAllEffects(Distorted.TYPE_PRE);
|
|
117 | 117 |
|
118 | 118 |
macroblock.move(diMove); |
119 | 119 |
macroblock.scale(diScale); |
src/main/java/org/distorted/examples/monalisa/MonaLisaRenderer.java | ||
---|---|---|
60 | 60 |
|
61 | 61 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
62 | 62 |
{ |
63 |
monaLisa.abortAllEffects(Distorted.TYPE_MATR);
|
|
63 |
monaLisa.abortAllEffects(Distorted.TYPE_PRE);
|
|
64 | 64 |
|
65 | 65 |
if( bmpHeight/bmpWidth > height/width ) |
66 | 66 |
{ |
src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.java | ||
---|---|---|
80 | 80 |
|
81 | 81 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
82 | 82 |
{ |
83 |
mBackground.abortAllEffects(Distorted.TYPE_MATR);
|
|
83 |
mBackground.abortAllEffects(Distorted.TYPE_PRE);
|
|
84 | 84 |
mBackground.scale((float)width/texWidth,(float)height/texHeight,1); |
85 | 85 |
|
86 | 86 |
Distorted.onSurfaceChanged(width, height); |
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
105 | 105 |
int bmpWidth = bmp.getWidth(); |
106 | 106 |
int bmpHeight = bmp.getHeight(); |
107 | 107 |
|
108 |
bmp.abortAllEffects(Distorted.TYPE_MATR);
|
|
108 |
bmp.abortAllEffects(Distorted.TYPE_PRE);
|
|
109 | 109 |
|
110 | 110 |
if( bmpHeight/bmpWidth > height/width ) |
111 | 111 |
{ |
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
---|---|---|
205 | 205 |
{ |
206 | 206 |
Log.d(TAG, "surfaceChanged " + width + "x" + height); |
207 | 207 |
|
208 |
monaLisa.abortAllEffects(Distorted.TYPE_MATR);
|
|
208 |
monaLisa.abortAllEffects(Distorted.TYPE_PRE);
|
|
209 | 209 |
|
210 | 210 |
if( bmpHeight/bmpWidth > height/width ) |
211 | 211 |
{ |
src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java | ||
---|---|---|
76 | 76 |
|
77 | 77 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
78 | 78 |
{ |
79 |
mCube.abortAllEffects(Distorted.TYPE_MATR);
|
|
79 |
mCube.abortAllEffects(Distorted.TYPE_PRE);
|
|
80 | 80 |
|
81 | 81 |
if( width > height ) |
82 | 82 |
{ |
src/main/java/org/distorted/examples/scratchpad/ScratchpadRenderer.java | ||
---|---|---|
75 | 75 |
|
76 | 76 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
77 | 77 |
{ |
78 |
mBackground.abortAllEffects(Distorted.TYPE_MATR);
|
|
78 |
mBackground.abortAllEffects(Distorted.TYPE_PRE);
|
|
79 | 79 |
mBackground.scale((float)width/texWidth,(float)height/texHeight,1); |
80 | 80 |
Distorted.onSurfaceChanged(width,height); |
81 | 81 |
ScratchpadSurfaceView.setScreenSize(width,height); |
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
56 | 56 |
{ |
57 |
sinkBmp.abortAllEffects(Distorted.TYPE_MATR);
|
|
57 |
sinkBmp.abortAllEffects(Distorted.TYPE_PRE);
|
|
58 | 58 |
|
59 | 59 |
if( bmpHeight/bmpWidth > height/width ) |
60 | 60 |
{ |
src/main/res/values/strings.xml | ||
---|---|---|
2 | 2 |
<resources> |
3 | 3 |
<string name="app_name">Distorted Examples</string> |
4 | 4 |
<string name="toc">Table of Contents</string> |
5 |
<string name="tocHeader">Welcome to the Distorted Examples!\nCode, tutorials: http://distorted.org/</string>
|
|
5 |
<string name="tocHeader">Welcome to the Distorted Examples!\nCode, Tutorials, Wiki: http://distorted.org/</string>
|
|
6 | 6 |
|
7 | 7 |
<string name="continu">Continue</string> |
8 | 8 |
<string name="rows">Rows</string> |
Also available in: Unified diff
Beginnings of support for PostShader effects (SavePNG, SaveMP4)