![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cRandomPerlin.h>
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) |
![]() | |
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 void | normalize2 (float v[2]) |
static void | normalize3 (float v[3]) |
![]() | |
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) |
![]() | |
cRandomFloat & | m_rnd |
??? Isn't this all Mostly Duplicated in cRandomPerlin4096 ??? Merge these 2 back together?
GrayLib::cRandomPerlin256::cRandomPerlin256 | ( | cRandomFloat & | rnd | ) |
HRESULT GrayLib::cRandomPerlin256::CreateData2D | ( | float * | pData, |
int | size, | ||
float | freq, | ||
float & | fMin, | ||
float & | fMax | ||
) |
ASSUME pData = size*size.
HRESULT GrayLib::cRandomPerlin256::CreateFileTexture | ( | const FILECHAR_t * | pszFilename, |
int | size, | ||
float | freq | ||
) |
Save a BMP file with a random texture. pszFilePath = full path
|
static |