33 #ifndef __diguyViewLight_H
34 #define __diguyViewLight_H
39 #define CPLUSPLUS_ONLY
83 const char* get_name();
100 const char* get_type_name();
118 void set_direction(
float x,
float y,
float z);
137 void get_direction(
float* x,
float* y,
float* z);
155 void set_position(
float x,
float y,
float z);
174 void get_position(
float* x,
float* y,
float* z);
193 void set_ambient_color(
float r,
float g,
float b,
float a);
213 void get_ambient_color(
float* r,
float* g,
float* b,
float* a);
232 void set_diffuse_color(
float r,
float g,
float b,
float a);
252 void get_diffuse_color(
float* r,
float* g,
float* b,
float* a);
271 void set_specular_color(
float r,
float g,
float b,
float a);
291 void get_specular_color(
float* r,
float* g,
float* b,
float* a);
314 int load_settings(
const char* settings_name);
316 #ifdef CPLUSPLUS_ONLY
345 void apply(
int i = 0);
367 CALLBACK_ID_SETTINGS_CHANGED = 1
370 #ifdef CPLUSPLUS_ONLY
413 int add_callback(
int callback_id,
415 void* callback_params = 0,
416 void* callback_user_data = 0);
438 int remove_callback(
int callback_id,
461 int remove_callback_with_user_data(
int callback_id,
462 void* callback_user_data);
499 int add_callback_script(
int callback_id,
500 const char* callback_script,
501 const char* callback_script_type = NULL);
537 int remove_callback_script(
int callback_id,
538 const char* callback_script,
539 const char* callback_script_type = NULL);
555 void set_near_plane(
float near_plane);
557 float get_near_plane();
559 void set_far_plane(
float far_plane);
561 float get_far_plane();
569 void set_casts_shadows(
int casts_shadows);
577 int get_casts_shadows();
579 int set_scene_objects_cast_shadows(
int value);
580 int get_scene_objects_cast_shadows();
582 int set_brightness_multiplier(
float multiplier);
583 float get_brightness_multiplier();
585 void set_shadow_volume_size(
float volume);
586 float get_shadow_volume_size();
588 void set_shadow_offset_multiplier(
float multiplier);
589 float get_shadow_offset_multiplier();
592 void set_spotlight_angle(
float angle);
593 float get_spotlight_angle();
594 void set_texture_name(
const char* name);
597 void set_active(
int active);
601 int set_shadow_map_update_paused(
int pause);
602 int get_shadow_map_update_paused();
604 int set_shadow_map_update_frequency(
int frame_frequency);
605 int get_shadow_map_update_frequency();
612 #ifdef CPLUSPLUS_ONLY
614 bdiLight* get_scripted_object() {
return m_light;}
624 friend class bdiLight;