citro3d  1.2.0
Functions
light.c File Reference
#include "internal.h"
Include dependency graph for light.c:

Functions

void C3Di_LightMtlBlend (C3D_Light *light)
 
int C3D_LightInit (C3D_Light *light, C3D_LightEnv *env)
 
void C3D_LightEnable (C3D_Light *light, bool enable)
 
void C3D_LightTwoSideDiffuse (C3D_Light *light, bool enable)
 
void C3D_LightGeoFactor (C3D_Light *light, int id, bool enable)
 
void C3D_LightAmbient (C3D_Light *light, float r, float g, float b)
 
void C3D_LightDiffuse (C3D_Light *light, float r, float g, float b)
 
void C3D_LightSpecular0 (C3D_Light *light, float r, float g, float b)
 
void C3D_LightSpecular1 (C3D_Light *light, float r, float g, float b)
 
void C3D_LightPosition (C3D_Light *light, C3D_FVec *pos)
 
static void C3Di_EnableCommon (C3D_Light *light, bool enable, u32 bit)
 
void C3D_LightShadowEnable (C3D_Light *light, bool enable)
 
void C3D_LightSpotEnable (C3D_Light *light, bool enable)
 
static u16 floattofix2_11 (float x)
 
void C3D_LightSpotDir (C3D_Light *light, float x, float y, float z)
 
void C3D_LightSpotLut (C3D_Light *light, C3D_LightLut *lut)
 
void C3D_LightDistAttnEnable (C3D_Light *light, bool enable)
 
void C3D_LightDistAttn (C3D_Light *light, C3D_LightLutDA *lut)
 

Function Documentation

◆ C3D_LightAmbient()

void C3D_LightAmbient ( C3D_Light *  light,
float  r,
float  g,
float  b 
)

◆ C3D_LightDiffuse()

void C3D_LightDiffuse ( C3D_Light *  light,
float  r,
float  g,
float  b 
)

◆ C3D_LightDistAttn()

void C3D_LightDistAttn ( C3D_Light *  light,
C3D_LightLutDA lut 
)

◆ C3D_LightDistAttnEnable()

void C3D_LightDistAttnEnable ( C3D_Light *  light,
bool  enable 
)

◆ C3D_LightEnable()

void C3D_LightEnable ( C3D_Light *  light,
bool  enable 
)

◆ C3D_LightGeoFactor()

void C3D_LightGeoFactor ( C3D_Light *  light,
int  id,
bool  enable 
)

◆ C3D_LightInit()

int C3D_LightInit ( C3D_Light *  light,
C3D_LightEnv *  env 
)

◆ C3D_LightPosition()

void C3D_LightPosition ( C3D_Light *  light,
C3D_FVec pos 
)

◆ C3D_LightShadowEnable()

void C3D_LightShadowEnable ( C3D_Light *  light,
bool  enable 
)

◆ C3D_LightSpecular0()

void C3D_LightSpecular0 ( C3D_Light *  light,
float  r,
float  g,
float  b 
)

◆ C3D_LightSpecular1()

void C3D_LightSpecular1 ( C3D_Light *  light,
float  r,
float  g,
float  b 
)

◆ C3D_LightSpotDir()

void C3D_LightSpotDir ( C3D_Light *  light,
float  x,
float  y,
float  z 
)

◆ C3D_LightSpotEnable()

void C3D_LightSpotEnable ( C3D_Light *  light,
bool  enable 
)

◆ C3D_LightSpotLut()

void C3D_LightSpotLut ( C3D_Light *  light,
C3D_LightLut lut 
)

◆ C3D_LightTwoSideDiffuse()

void C3D_LightTwoSideDiffuse ( C3D_Light *  light,
bool  enable 
)

◆ C3Di_EnableCommon()

static void C3Di_EnableCommon ( C3D_Light *  light,
bool  enable,
u32  bit 
)
static

◆ C3Di_LightMtlBlend()

void C3Di_LightMtlBlend ( C3D_Light *  light)

◆ floattofix2_11()

static u16 floattofix2_11 ( float  x)
inlinestatic