51 "Nviz_set_light_position(): num = %d x = %f y = %f z = %f w = %f",
76 "Nviz_set_light_bright(): num = %d value = %f r = %f g = %f b = %f",
94 data->
light[num].
r = red / 255.;
95 data->
light[num].
g = green / 255.;
96 data->
light[num].
b = blue / 255.;
102 G_debug(1,
"Nviz_set_light_color(): num = %d r = %d/%f g = %d/%f b = %d/%f",
103 num, red,
r, green,
g, blue,
b);
122 G_debug(1,
"Nviz_set_light_ambient(): num = %d value = %f", num, value);
136 G_debug(1,
"Nviz_init_light(): num = %d", num);
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
void GS_set_draw(int)
Sets which buffer to draw to.
void GS_setlight_color(int, float, float, float)
Set light color.
int GS_new_light(void)
Add new model light.
void GS_setlight_position(int, float, float, float, int)
Set light position.
void GS_draw_lighting_model(void)
Draw lighting model.
void GS_done_draw(void)
Draw done, swap buffers.
void GS_setlight_ambient(int, float, float, float)
Set light ambient.
#define UNUSED
A macro for an attribute, if attached to a variable, indicating that the variable is not used.
void Nviz_draw_model(nv_data *data UNUSED)
Draw lighting model.
int Nviz_set_light_ambient(nv_data *data, int num, double value)
Set light ambient.
int Nviz_set_light_color(nv_data *data, int num, int red, int green, int blue)
Set light color.
int Nviz_init_light(nv_data *data, int num)
Init new light.
int Nviz_new_light(nv_data *data)
Define new light.
int Nviz_set_light_bright(nv_data *data, int num, double value)
Set light brightness.
int Nviz_set_light_position(nv_data *data, int num, double x, double y, double z, double w)
Set light position.
light_data light[MAX_LIGHTS]