KiCad PCB EDA Suite
Loading...
Searching...
No Matches
3d_fastmath.cpp File Reference
#include "3d_fastmath.h"

Go to the source code of this file.

Functions

float Fast_RandFloat ()
 
int Fast_rand (void)
 
void Fast_srand (unsigned int seed)
 

Variables

static int s_randSeed = 1
 
static unsigned long int s_nextRandSeed = 1
 

Function Documentation

◆ Fast_rand()

int Fast_rand ( void  )

Definition at line 58 of file 3d_fastmath.cpp.

References s_nextRandSeed.

Referenced by POST_SHADER_SSAO::Shade().

◆ Fast_RandFloat()

float Fast_RandFloat ( )

◆ Fast_srand()

void Fast_srand ( unsigned int  seed)

Definition at line 65 of file 3d_fastmath.cpp.

References s_nextRandSeed.

Variable Documentation

◆ s_nextRandSeed

unsigned long int s_nextRandSeed = 1
static

Definition at line 56 of file 3d_fastmath.cpp.

Referenced by Fast_rand(), and Fast_srand().

◆ s_randSeed

int s_randSeed = 1
static

Definition at line 41 of file 3d_fastmath.cpp.

Referenced by Fast_RandFloat().