13 #ifndef __diguyViewLight_H
14 #define __diguyViewLight_H
19 #define CPLUSPLUS_ONLY
38 double m_position_x, m_position_y, m_position_z;
46 float m_spot_exponent;
77 const char* get_name();
89 const char* get_type_name();
100 void set_direction(
float x,
float y,
float z);
112 void get_direction(
float* x,
float* y,
float* z);
123 void set_position(
float x,
float y,
float z);
135 void get_position(
float* x,
float* y,
float* z);
146 void set_ambient_color(
float r,
float g,
float b,
float a);
158 void get_ambient_color(
float* r,
float* g,
float* b,
float* a);
169 void set_diffuse_color(
float r,
float g,
float b,
float a);
181 void get_diffuse_color(
float* r,
float* g,
float* b,
float* a);
192 void set_specular_color(
float r,
float g,
float b,
float a);
204 void get_specular_color(
float* r,
float* g,
float* b,
float* a);
207 int get_casts_shadows();
210 int set_scene_objects_cast_shadows(
int value);
211 int get_scene_objects_cast_shadows();
215 int set_brightness_multiplier(
float multiplier);
216 float get_brightness_multiplier();
237 int load_settings(
const char* settings_name);
259 void apply(
int i = 0);
281 CALLBACK_ID_SETTINGS_CHANGED = 1
284 #ifdef CPLUSPLUS_ONLY
327 int add_callback(
int callback_id,
329 void* callback_params = 0,
330 void* callback_user_data = 0);
352 int remove_callback(
int callback_id,
375 int remove_callback_with_user_data(
int callback_id,
376 void* callback_user_data);
413 int add_callback_script(
int callback_id,
414 const char* callback_script,
415 const char* callback_script_type = NULL);
451 int remove_callback_script(
int callback_id,
452 const char* callback_script,
453 const char* callback_script_type = NULL);
477 void set_casts_shadows(
int casts_shadows);
481 void set_shadow_volume_size(
float volume);
482 float get_shadow_volume_size();
486 void set_shadow_offset_multiplier(
float multiplier);
487 float get_shadow_offset_multiplier();
490 void set_spotlight_angle(
float angle);
491 float get_spotlight_angle();
494 void set_texture_name(
const char* name);
498 void set_active(
int active);
504 int set_shadow_map_update_paused(
int pause);
505 int get_shadow_map_update_paused();
507 int set_shadow_map_update_frequency(
int frame_frequency);
508 int get_shadow_map_update_frequency();
511 void set_near_plane(
float near_plane);
512 float get_near_plane();
514 void set_far_plane(
float far_plane);
515 float get_far_plane();
521 #ifdef CPLUSPLUS_ONLY
523 bdiLight* get_scripted_object() {
return m_light;}
533 friend class bdiLight;
Summary:
Definition: diguyViewLightSettings.h:45
Definition: diguyViewLight.h:50
Definition: diguyViewLight.h:35
diguyCallbackReturn diguyViewLightCallback(diguyViewLight *light, int callback_id, void *callback_params, void *callback_user_data)
Definition: diguy_typedefs.h:180