Citro3d
Loading...
Searching...
No Matches
light.c File Reference
#include "internal.h"

Go to the source code of this file.

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)
 
void C3D_LightShadowEnable (C3D_Light *light, bool enable)
 
void C3D_LightSpotEnable (C3D_Light *light, bool enable)
 
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 
)

Definition at line 73 of file light.c.

◆ C3D_LightDiffuse()

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

Definition at line 81 of file light.c.

◆ C3D_LightDistAttn()

void C3D_LightDistAttn ( C3D_Light *  light,
C3D_LightLutDA *  lut 
)

Definition at line 172 of file light.c.

◆ C3D_LightDistAttnEnable()

void C3D_LightDistAttnEnable ( C3D_Light *  light,
bool  enable 
)

Definition at line 167 of file light.c.

◆ C3D_LightEnable()

void C3D_LightEnable ( C3D_Light *  light,
bool  enable 
)

Definition at line 41 of file light.c.

◆ C3D_LightGeoFactor()

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

Definition at line 63 of file light.c.

◆ C3D_LightInit()

int C3D_LightInit ( C3D_Light *  light,
C3D_LightEnv *  env 
)

Definition at line 19 of file light.c.

◆ C3D_LightPosition()

void C3D_LightPosition ( C3D_Light *  light,
C3D_FVec *  pos 
)

Definition at line 105 of file light.c.

◆ C3D_LightShadowEnable()

void C3D_LightShadowEnable ( C3D_Light *  light,
bool  enable 
)

Definition at line 132 of file light.c.

◆ C3D_LightSpecular0()

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

Definition at line 89 of file light.c.

◆ C3D_LightSpecular1()

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

Definition at line 97 of file light.c.

◆ C3D_LightSpotDir()

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

Definition at line 147 of file light.c.

◆ C3D_LightSpotEnable()

void C3D_LightSpotEnable ( C3D_Light *  light,
bool  enable 
)

Definition at line 137 of file light.c.

◆ C3D_LightSpotLut()

void C3D_LightSpotLut ( C3D_Light *  light,
C3D_LightLut *  lut 
)

Definition at line 158 of file light.c.

◆ C3D_LightTwoSideDiffuse()

void C3D_LightTwoSideDiffuse ( C3D_Light *  light,
bool  enable 
)

Definition at line 54 of file light.c.

◆ C3Di_LightMtlBlend()

void C3Di_LightMtlBlend ( C3D_Light *  light)

Definition at line 3 of file light.c.