Searched defs:polyLength (Results 1 - 3 of 3) sorted by relevance
/frameworks/base/libs/hwui/ |
H A D | ShadowTessellator.cpp | 121 * @param polyLength The length of the polygon in terms of number of vertices. 124 Vector2 ShadowTessellator::centroid2d(const Vector2* poly, int polyLength) { argument 127 int p1 = polyLength - 1; 129 for (int p2 = 0; p2 < polyLength; p2++) {
|
H A D | SpotShadow.cpp | 235 * @param polyLength The number of vertices of the polygon. 238 void SpotShadow::sort(Vector2* poly, int polyLength, const Vector2& center) { argument 239 quicksortCirc(poly, 0, polyLength - 1, center); 371 * @param polyLength number of vertexes of the occluding polygon 376 float lightSize, const Vector3* poly, int polyLength, const Vector3& polyCentroid, 382 if (CC_UNLIKELY(polyLength < 3)) { 388 OutlineData outlineData[polyLength]; 406 projectCasterToOutline(outlineData[polyLength - 1].position, lightCenter, 407 poly[polyLength - 1]); 410 int currentNormalIndex = polyLength 375 createSpotShadow(bool isCasterOpaque, const Vector3& lightCenter, float lightSize, const Vector3* poly, int polyLength, const Vector3& polyCentroid, VertexBuffer& shadowTriangleStrip) argument 653 findPolyIndex(bool isPositiveCross, int startPolyIndex, const Vector2& umbraDir, const Vector2* polyToCentroid, int polyLength) argument 778 genPolyToCentroid(const Vector2* poly2d, int polyLength, const Vector2& centroid, Vector2* polyToCentroid) argument 800 getCloserVertex(const Vector2& umbraVertex, const Vector2& centroid, const Vector2* poly2d, int polyLength, const Vector2* polyToCentroid, bool isPositiveCross, int& previousPolyIndex) argument 835 generateTriangleStrip(bool isCasterOpaque, float shadowStrengthScale, Vector2* penumbra, int penumbraLength, Vector2* umbra, int umbraLength, const Vector3* poly, int polyLength, VertexBuffer& shadowTriangleStrip, const Vector2& centroid) argument 1031 dumpPolygon(const Vector2* poly, int polyLength, const char* polyName) argument 1040 dumpPolygon(const Vector3* poly, int polyLength, const char* polyName) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/ |
H A D | SpotShadow.java | 23 private static float rayIntersectPoly(@NonNull float[] poly, int polyLength, float px, float py, argument 25 int p1 = polyLength - 1; 26 for (int p2 = 0; p2 < polyLength; p2++) { 279 public static void sort(@NonNull float[] poly, int polyLength, @NonNull float[] ctr) { argument 280 quicksortCircle(poly, 0, polyLength - 1, ctr); 452 * @param polyLength The vertices number of light polygon. 460 @NonNull float[] poly, int polyLength, int rays, int layers, float strength, 462 float[] shadowRegion = new float[lightPolyLength * polyLength * 2]; 463 float[] outline = new float[polyLength * 2]; 464 float[] umbra = new float[polyLength * lightPolyLengt 459 calcShadow(@onNull float[] lightPoly, int lightPolyLength, @NonNull float[] poly, int polyLength, int rays, int layers, float strength, @NonNull float[] retStrips) argument [all...] |
Completed in 914 milliseconds