Revision abc3054d
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
50 | 50 |
private DistortedBitmap mGirl; |
51 | 51 |
private Static2D pLeft, pRight, pHips; |
52 | 52 |
private Static4D Region, sinkRegion, HipsRegion; |
53 |
private static Dynamic3D diL, diR; |
|
54 |
private static Dynamic1D diHips, diSink; |
|
55 |
private static Static3D v0,v1,v2,v3; |
|
56 |
private static Static1D dBegin, dMiddle, dEnd, s0; |
|
57 |
|
|
53 |
private Dynamic3D diL, diR; |
|
54 |
private Dynamic1D diHips, diSink; |
|
55 |
private Static3D v0,v1,v2,v3; |
|
56 |
private Static1D dBegin, dMiddle, dEnd, s0; |
|
58 | 57 |
private int bmpHeight, bmpWidth; |
59 |
|
|
60 |
private static int boobsSwing; |
|
61 |
private static int hipsSwirl; |
|
62 |
private static float boobsSink; |
|
58 |
private int boobsSwing; |
|
59 |
private int hipsSwirl; |
|
60 |
private float boobsSink; |
|
63 | 61 |
|
64 | 62 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
65 | 63 |
|
66 |
public GirlRenderer(GLSurfaceView v)
|
|
64 |
GirlRenderer(GLSurfaceView v)
|
|
67 | 65 |
{ |
68 | 66 |
mView = v; |
69 | 67 |
|
... | ... | |
122 | 120 |
|
123 | 121 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
124 | 122 |
|
125 |
public static void setHips(int s)
|
|
123 |
void setHips(int s) |
|
126 | 124 |
{ |
127 | 125 |
hipsSwirl = s; |
128 | 126 |
dBegin.set(-hipsSwirl); |
... | ... | |
131 | 129 |
|
132 | 130 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
133 | 131 |
|
134 |
public static void setSize(float s)
|
|
132 |
void setSize(float s) |
|
135 | 133 |
{ |
136 | 134 |
boobsSink = s; |
137 | 135 |
s0.set(boobsSink); |
... | ... | |
139 | 137 |
|
140 | 138 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
141 | 139 |
|
142 |
public static void setSwing(int s)
|
|
140 |
void setSwing(int s) |
|
143 | 141 |
{ |
144 | 142 |
boobsSwing = s; |
145 | 143 |
|
Also available in: Unified diff
Tidy up 'Girl'