v0.3.1a: updated deprecated method usage
This commit is contained in:
committed by
Evan Debenham
parent
a077406c8e
commit
669ebb9794
@@ -88,13 +88,13 @@ public class Flare extends Visual {
|
||||
for (int i=0; i < nRays; i++) {
|
||||
|
||||
float a = i * 3.1415926f * 2 / nRays;
|
||||
v[0] = FloatMath.cos( a ) * radius;
|
||||
v[1] = FloatMath.sin( a ) * radius;
|
||||
v[0] = (float)Math.cos( a ) * radius;
|
||||
v[1] = (float)Math.sin( a ) * radius;
|
||||
vertices.put( v );
|
||||
|
||||
a += 3.1415926f * 2 / nRays / 2;
|
||||
v[0] = FloatMath.cos( a ) * radius;
|
||||
v[1] = FloatMath.sin( a ) * radius;
|
||||
v[0] = (float)Math.cos( a ) * radius;
|
||||
v[1] = (float)Math.sin( a ) * radius;
|
||||
vertices.put( v );
|
||||
|
||||
indices.put( (short)0 );
|
||||
|
||||
Reference in New Issue
Block a user