Project

General

Profile

« Previous | Next » 

Revision ae755eda

Added by Leszek Koltunski over 3 years ago

Make the texture multi-row: avoid the maximum texture size.

View differences:

src/main/java/org/distorted/objects/TwistyDino.java
209 209

  
210 210
///////////////////////////////////////////////////////////////////////////////////////////////////
211 211

  
212
  void createFaceTexture(Canvas canvas, Paint paint, int face, int left)
212
  void createFaceTexture(Canvas canvas, Paint paint, int face, int left, int top)
213 213
    {
214 214
    float F = 0.5f;
215 215
    float R = 0.025f;
......
217 217
    float[] vertices = { -F,F/3, 0,-2*F/3, +F,F/3 };
218 218

  
219 219
    FactorySticker factory = FactorySticker.getInstance();
220
    factory.drawRoundedPolygon(canvas, paint, left, vertices, S, FACE_COLORS[face], R);
220
    factory.drawRoundedPolygon(canvas, paint, left, top, vertices, S, FACE_COLORS[face], R);
221 221
    }
222 222

  
223 223
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff