public virtual void append(AsVertexData data)
        {
            mRawData.setOwnProperty("_fixed", false);
            int targetIndex          = (int)(mRawData.getLength());
            AsVector <float> rawData = data.mRawData;
            int rawDataLength        = (int)(rawData.getLength());
            int i = 0;

            for (; i < rawDataLength; ++i)
            {
                mRawData[targetIndex++] = rawData[i];
            }
            mNumVertices = mNumVertices + data.getNumVertices();
            mRawData.setOwnProperty("_fixed", true);
        }
 public AsFragmentFilter(int numPasses, float resolution)
 {
     if(AsCapabilities.getIsDebugger() && AsGlobal.getQualifiedClassName(this) == "starling.filters::FragmentFilter")
     {
         throw new AsAbstractClassError();
     }
     if(numPasses < 1)
     {
         throw new AsArgumentError("At least one pass is required.");
     }
     mNumPasses = numPasses;
     mMarginX = mMarginY = 0.0f;
     mOffsetX = mOffsetY = 0;
     mResolution = resolution;
     mMode = AsFragmentFilterMode.REPLACE;
     mVertexData = new AsVertexData(4);
     mVertexData.setTexCoords(0, 0, 0);
     mVertexData.setTexCoords(1, 1, 0);
     mVertexData.setTexCoords(2, 0, 1);
     mVertexData.setTexCoords(3, 1, 1);
     mIndexData = new AsVector<uint>();
     mIndexData.setOwnProperty("_fixed", true);
     createPrograms();
     AsStarling.getCurrent().getStage3D().addEventListener(AsEvent.CONTEXT3D_CREATE, onContextCreated, false, 0, true);
 }
 public AsFragmentFilter(int numPasses, float resolution)
 {
     if (AsCapabilities.getIsDebugger() && AsGlobal.getQualifiedClassName(this) == "starling.filters::FragmentFilter")
     {
         throw new AsAbstractClassError();
     }
     if (numPasses < 1)
     {
         throw new AsArgumentError("At least one pass is required.");
     }
     mNumPasses  = numPasses;
     mMarginX    = mMarginY = 0.0f;
     mOffsetX    = mOffsetY = 0;
     mResolution = resolution;
     mMode       = AsFragmentFilterMode.REPLACE;
     mVertexData = new AsVertexData(4);
     mVertexData.setTexCoords(0, 0, 0);
     mVertexData.setTexCoords(1, 1, 0);
     mVertexData.setTexCoords(2, 0, 1);
     mVertexData.setTexCoords(3, 1, 1);
     mIndexData = new AsVector <uint>();
     mIndexData.setOwnProperty("_fixed", true);
     createPrograms();
     AsStarling.getCurrent().getStage3D().addEventListener(AsEvent.CONTEXT3D_CREATE, onContextCreated, false, 0, true);
 }