28 double x,
double y,
double z,
double w)
49 G_debug(1,
"Nviz_set_light_position(): num = %d x = %f y = %f z = %f w = %f",
73 G_debug(1,
"Nviz_set_light_bright(): num = %d value = %f r = %f g = %f b = %f",
88 int red,
int green,
int blue)
92 data->
light[num].
r = red / 255.;
93 data->
light[num].
g = green / 255.;
94 data->
light[num].
b = blue / 255.;
100 G_debug(1,
"Nviz_set_light_color(): num = %d r = %d/%f g = %d/%f b = %d/%f",
101 num, red, r, green, g, blue, b);
120 G_debug(1,
"Nviz_set_light_ambient(): num = %d value = %f",
135 G_debug(1,
"Nviz_init_light(): num = %d", num);
void GS_setlight_ambient(int, float, float, float)
Set light ambient.
void Nviz_draw_model(nv_data *data)
Draw lighting model.
int GS_new_light(void)
Add new model light.
int Nviz_init_light(nv_data *data, int num)
Init new light.
void GS_draw_lighting_model(void)
Draw lighting model.
int Nviz_set_light_color(nv_data *data, int num, int red, int green, int blue)
Set light color.
int Nviz_set_light_bright(nv_data *data, int num, double value)
Set light brightness.
int Nviz_set_light_ambient(nv_data *data, int num, double value)
Set light ambient.
void GS_setlight_color(int, float, float, float)
Set light color.
void GS_done_draw(void)
Draw done, swap buffers.
void GS_setlight_position(int, float, float, float, int)
Set light position.
light_data light[MAX_LIGHTS]
int Nviz_set_light_position(nv_data *data, int num, double x, double y, double z, double w)
Set light position.
void G_warning(const char *,...) __attribute__((format(printf
int Nviz_new_light(nv_data *data)
Define new light.
void GS_set_draw(int)
Sets which buffer to draw to.
int G_debug(int, const char *,...) __attribute__((format(printf