// * // Set the cell pattern of texture. // \param pattern New base of cell construction (default PATTERN_BOTH) // public Cell setPattern(CELL_PATTERN pattern) { mPattern = pattern; return this; }
// * // Default constructor. // \param pBuffer Image buffer where to store the generated image. // public Cell(TextureBuffer pBuffer) : base(pBuffer, "Cell") { mColour = ColourValue.White; mRegularity = 128; mDensity = 8; mMode = CELL_MODE.MODE_GRID; mPattern = CELL_PATTERN.PATTERN_BOTH; mSeed = 5120; }