rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvPerlinNoise Class Reference

Ken Perlin's noise generator. More...

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

List of all members.

Public Member Functions

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

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:
seed The new initial seed value.
void IlvPerlinNoise::noise2 ( IlFloat  x,
IlFloat  y,
IlFloat result 
)

Generates four noise values.

Parameters:
x The x coordinate where to generate noise.
y The y coordinate where to generate noise.
result An array of 4 floating point values that will contain the noise values at this point.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, 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.