rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions
IlvPerlinNoise Class Reference

Ken Perlin's noise generator. More...

#include <ilviews/bitmaps/filters/noise.h>

Public Member Functions

 IlvPerlinNoise (IlInt seed=0)
 Constructor. More...
 
void init (IlInt seed)
 Initializes the noise generator with the given seed. More...
 
void noise2 (IlFloat x, IlFloat y, IlFloat *result)
 Generates four noise values. More...
 

Detailed Description

Ken Perlin's noise generator.

Library: ilvbmpflt

This class lets you generate noise using Ken Perlin's method. Four values are generated.

Constructor & Destructor Documentation

IlvPerlinNoise::IlvPerlinNoise ( IlInt  seed = 0)

Constructor.

Initializes a new instance of the class IlvPerlinNoise.

Member Function Documentation

void IlvPerlinNoise::init ( IlInt  seed)

Initializes the noise generator with the given seed.

Parameters
seedThe new initial seed value.
void IlvPerlinNoise::noise2 ( IlFloat  x,
IlFloat  y,
IlFloat result 
)

Generates four noise values.

Parameters
xThe x coordinate where to generate noise.
yThe y coordinate where to generate noise.
resultAn array of 4 floating point values that will contain the noise values at this point.

© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.