hushaojie04 / libgdx

Automatically exported from code.google.com/p/libgdx
0 stars 0 forks source link

PolygonRegion Constructor don't have body #1101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PolygonRegion have two constructor but the one don't have body...

    /** Creates a PolygonRegion by reading in the vertices and texture coordinates from the external file. TextureRegion can come
     * from an atlas.
     * @param region the region used for drawing
     * @param file polygon shape definition file */
    public PolygonRegion (TextureRegion region, FileHandle file) {
        this.region = region;

        if (file == null) throw new IllegalArgumentException("region cannot be null.");

        loadPolygonDefinition(file);
    }

    /** Creates a PolygonRegin by triangulating the polygon coordinates in vertices and calculates uvs based on that. TextureRegion
     * can come from an atlas.
     * @param region the region used for drawing
     * @param vertices contains 2D polygon coordinates in pixels relative to source region */
    public PolygonRegion (TextureRegion region, float[] vertices) {

    }

Original issue reported on code.google.com by haka8...@gmail.com on 24 Oct 2012 at 11:55

GoogleCodeExporter commented 9 years ago

Original comment by badlogicgames on 24 Oct 2012 at 11:56