Revision ac503d98
Added by Leszek Koltunski over 8 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java | ||
---|---|---|
80 | 80 |
} |
81 | 81 |
|
82 | 82 |
mScreen.attach(mCircleNode[i]); |
83 |
tmp = mCircleNode[i].getBitmap();
|
|
83 |
tmp = (DistortedBitmap)mCircleNode[i].getObject();
|
|
84 | 84 |
tmp.move(positions[2*i], positions[2*i+1], 0); |
85 | 85 |
tmp.rotate( center, mRot, 0.0f, 0.0f, 1.0f); |
86 | 86 |
tmp.chroma(0.8f, new Float3D(colors[3*i],colors[3*i+1], colors[3*i+2])); |
... | ... | |
101 | 101 |
|
102 | 102 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
103 | 103 |
{ |
104 |
DistortedBitmap bmp = mScreen.getBitmap();
|
|
104 |
DistortedBitmap bmp = (DistortedBitmap)mScreen.getObject();
|
|
105 | 105 |
int bmpWidth = bmp.getWidth(); |
106 | 106 |
int bmpHeight = bmp.getHeight(); |
107 | 107 |
|
Also available in: Unified diff
Provide support to add any class derived from DistortedObject to DistortedNode.