C# Class Raytrace, ilwasm

Mostra file Open project: WebAssembly/ilwasm

Public Methods

Method Description
f2b ( float v ) : int
fsin ( float v ) : float
fsqrt ( float v ) : float
intersect ( ) : bool
l2g ( float v ) : int
sampleEnv ( Vec3f, dir, Vec3f, ptr ) : void
storeColor ( int x, int y, float r, float g, float b ) : void
vecAdd ( Vec3f, a, Vec3f, b, Vec3f, ptr ) : void
vecDot ( Vec3f, a, Vec3f, b ) : float
vecLen ( Vec3f, ptr ) : float
vecNLDot ( Vec3f, a, Vec3f, b ) : float
vecNormalize ( Vec3f, ptr ) : void
vecScale ( Vec3f, a, float scale, Vec3f, ptr ) : void
vecStore ( float x, float y, float z, Vec3f, ptr ) : void

Private Methods

Method Description
init ( int w, int h, int pFrameBuffer ) : void
renderFrame ( ) : void

Method Details

f2b() public static method

public static f2b ( float v ) : int
v float
return int

fsin() public static method

public static fsin ( float v ) : float
v float
return float

fsqrt() public static method

public static fsqrt ( float v ) : float
v float
return float

intersect() public static method

public static intersect ( ) : bool
return bool

l2g() public static method

public static l2g ( float v ) : int
v float
return int

sampleEnv() public static method

public static sampleEnv ( Vec3f, dir, Vec3f, ptr ) : void
dir Vec3f,
ptr Vec3f,
return void

storeColor() public static method

public static storeColor ( int x, int y, float r, float g, float b ) : void
x int
y int
r float
g float
b float
return void

vecAdd() public static method

public static vecAdd ( Vec3f, a, Vec3f, b, Vec3f, ptr ) : void
a Vec3f,
b Vec3f,
ptr Vec3f,
return void

vecDot() public static method

public static vecDot ( Vec3f, a, Vec3f, b ) : float
a Vec3f,
b Vec3f,
return float

vecLen() public static method

public static vecLen ( Vec3f, ptr ) : float
ptr Vec3f,
return float

vecNLDot() public static method

public static vecNLDot ( Vec3f, a, Vec3f, b ) : float
a Vec3f,
b Vec3f,
return float

vecNormalize() public static method

public static vecNormalize ( Vec3f, ptr ) : void
ptr Vec3f,
return void

vecScale() public static method

public static vecScale ( Vec3f, a, float scale, Vec3f, ptr ) : void
a Vec3f,
scale float
ptr Vec3f,
return void

vecStore() public static method

public static vecStore ( float x, float y, float z, Vec3f, ptr ) : void
x float
y float
z float
ptr Vec3f,
return void