NW4F Eft
Loading...
Searching...
No Matches
nw::eft::PtclRandom Class Reference

#include <eft_Random.h>

Public Member Functions

 PtclRandom ()
void SetSeed (u32 val)
const nw::math::VEC3GetVec3 ()
const nw::math::VEC3GetNormalizedVec3 ()
u32 GetU32Direct ()
f32 GetF32 ()
s32 GetS32 ()
s32 GetS32 (int val)

Static Public Member Functions

static void CreateRandomTbl (Heap *heap)
static void DestroyRandomTbl (Heap *heap)
static RandomGetGlobalRandom ()

Private Types

enum  { cNumVec3Tbl = 512 , cNumVec3TblMask = cNumVec3Tbl - 1 }

Private Attributes

u16 mVec3RndIx
u16 mNormalizedVec3RndIx
u32 mRnd

Static Private Attributes

static nw::math::VEC3mVec3Tbl
static nw::math::VEC3mNormalizedVec3Tbl
static Random gRandom

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
cNumVec3Tbl 
cNumVec3TblMask 

Constructor & Destructor Documentation

◆ PtclRandom()

nw::eft::PtclRandom::PtclRandom ( )

Member Function Documentation

◆ CreateRandomTbl()

void nw::eft::PtclRandom::CreateRandomTbl ( Heap * heap)
static

◆ DestroyRandomTbl()

void nw::eft::PtclRandom::DestroyRandomTbl ( Heap * heap)
static

◆ SetSeed()

void nw::eft::PtclRandom::SetSeed ( u32 val)
inline

◆ GetVec3()

const nw::math::VEC3 & nw::eft::PtclRandom::GetVec3 ( )
inline

◆ GetNormalizedVec3()

const nw::math::VEC3 & nw::eft::PtclRandom::GetNormalizedVec3 ( )
inline

◆ GetU32Direct()

u32 nw::eft::PtclRandom::GetU32Direct ( )
inline

◆ GetF32()

f32 nw::eft::PtclRandom::GetF32 ( )
inline

◆ GetS32() [1/2]

s32 nw::eft::PtclRandom::GetS32 ( )
inline

◆ GetS32() [2/2]

s32 nw::eft::PtclRandom::GetS32 ( int val)
inline

◆ GetGlobalRandom()

Random * nw::eft::PtclRandom::GetGlobalRandom ( )
static

Member Data Documentation

◆ mVec3Tbl

math::VEC3 * nw::eft::PtclRandom::mVec3Tbl
staticprivate

◆ mNormalizedVec3Tbl

math::VEC3 * nw::eft::PtclRandom::mNormalizedVec3Tbl
staticprivate

◆ mVec3RndIx

u16 nw::eft::PtclRandom::mVec3RndIx
private

◆ mNormalizedVec3RndIx

u16 nw::eft::PtclRandom::mNormalizedVec3RndIx
private

◆ mRnd

u32 nw::eft::PtclRandom::mRnd
private

◆ gRandom

Random nw::eft::PtclRandom::gRandom
staticprivate