Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cRandomPerlin256 Class Reference

#include <cRandomPerlin.h>

Inheritance diagram for GrayLib::cRandomPerlin256:
GrayLib::cRandomPerlinBase

Public Member Functions

 cRandomPerlin256 (cRandomFloat &rnd)
 
HRESULT CreateData2D (float *pData, int size, float freq, float &fMin, float &fMax)
 
HRESULT CreateFileTexture (const FILECHAR_t *pszFilename, int size, float freq)
 
- Public Member Functions inherited from GrayLib::cRandomPerlinBase
 UNITTEST2_PREDEF (cRandomPerlin)
 

Public Attributes

int m_p [k_SIZE+k_SIZE]
 permutation table. More...
 
float m_g2 [k_SIZE+k_SIZE][2]
 

Static Public Attributes

static const int k_SIZE = 256
 

Additional Inherited Members

- Static Public Member Functions inherited from GrayLib::cRandomPerlinBase
static void normalize2 (float v[2])
 
static void normalize3 (float v[3])
 
- Protected Member Functions inherited from GrayLib::cRandomPerlinBase
 cRandomPerlinBase (cRandomFloat &rnd)
 
float GRAYCALL SCurve (float a)
 
float GRAYCALL LinearInterpolation (float t, float a, float b)
 
float GRAYCALL RandomFloat ()
 
void GRAYCALL Setup (float i, int &b0, int &b1, float &r0, float &r1)
 
- Protected Attributes inherited from GrayLib::cRandomPerlinBase
cRandomFloatm_rnd
 

Detailed Description

??? Isn't this all Mostly Duplicated in cRandomPerlin4096 ??? Merge these 2 back together?

Constructor & Destructor Documentation

◆ cRandomPerlin256()

GrayLib::cRandomPerlin256::cRandomPerlin256 ( cRandomFloat rnd)

Member Function Documentation

◆ CreateData2D()

HRESULT GrayLib::cRandomPerlin256::CreateData2D ( float *  pData,
int  size,
float  freq,
float &  fMin,
float &  fMax 
)

ASSUME pData = size*size.

◆ CreateFileTexture()

HRESULT GrayLib::cRandomPerlin256::CreateFileTexture ( const FILECHAR_t pszFilename,
int  size,
float  freq 
)

Save a BMP file with a random texture. pszFilePath = full path

Member Data Documentation

◆ k_SIZE

const int GrayLib::cRandomPerlin256::k_SIZE = 256
static

◆ m_g2

float GrayLib::cRandomPerlin256::m_g2[k_SIZE+k_SIZE][2]

◆ m_p

int GrayLib::cRandomPerlin256::m_p[k_SIZE+k_SIZE]

permutation table.


The documentation for this class was generated from the following files: