34 #ifndef __diguySceneObject_H
35 #define __diguySceneObject_H
40 #define CPLUSPLUS_ONLY
44 class bdiScenarioSceneObject;
76 const char* get_name();
92 int set_name(
const char* name);
132 const char* get_filename();
145 const char* get_nodename();
157 const char* get_alternate_filename();
174 const char* get_fully_resolved_filename();
228 int add_vertex_to_user_defined(
float x,
float y,
float z);
240 int add_triangle_to_user_defined(
int index0,
int index1,
int index2);
242 #ifdef CPLUSPLUS_ONLY
256 int add_vertex_array_to_user_defined(
const float*
const vertices,
257 int num_vertices,
int skipBytes = 12);
273 int add_triangle_array_to_user_defined(
const int*
const indices,
int num_indices);
285 int add_triangle_to_user_defined(
const float*
const pos0,
286 const float*
const pos1,
const float*
const pos2);
299 int build_user_defined();
324 int set_render_mode_shader(
const char* shader_name,
325 const char* render_mode = NULL);
339 void reset_render_mode_shader_to_default(
const char* render_mode = NULL);
357 const char* get_render_mode_shader(
const char* render_mode = NULL);
412 int set_temporary_current_shader(
const char* shader_name);
426 void reset_current_shader_to_default();
463 void reset_shader_instance_variables_to_initial_values();
477 void reset_shader_instance_variables_to_program_defaults();
505 int set_switch_state(
const char* switch_name,
527 int get_switch_state(
const char* switch_name);
553 int set_dof_state(
const char* dof_name,
554 float tx,
float ty,
float tz,
555 float rz,
float rx,
float ry);
581 int set_dof_state_flt(
const char* dof_name,
582 float tx,
float ty,
float tz,
583 float rx,
float ry,
float rz);
609 int get_dof_state(
const char* dof_name,
610 float* tx,
float* ty,
float* tz,
611 float* rz,
float* rx,
float* ry);
637 int get_dof_state_flt(
const char* dof_name,
638 float* tx,
float* ty,
float* tz,
639 float* rx,
float* ry,
float* rz);
662 int add_switch_target(
const char* switch_name,
688 int abort_all_switch_targets(
const char* switch_name);
721 int add_dof_target(
const char* dof_name,
722 float tx,
float ty,
float tz,
723 float rz,
float rx,
float ry,
724 float blend_tin,
float blend_tout,
725 const char* blend_function_name = 0);
760 int add_dof_target_flt(
const char* dof_name,
761 float tx,
float ty,
float tz,
762 float rx,
float ry,
float rz,
763 float blend_tin,
float blend_tout,
764 const char* blend_function_name = 0);
787 int abort_all_dof_targets(
const char* dof_name);
792 int set_shader_program(
const char* shader_name);
823 int set_position(
float x,
float y,
float z);
824 int get_position(
float* x,
float* y,
float* z);
826 int set_orientation(
float rz,
float rx,
float ry);
827 int get_orientation(
float* rz,
float* rx,
float* ry);
829 int set_scale(
float sx,
float sy,
float sz);
830 int get_scale(
float* sx,
float* sy,
float* sz);
832 int set_filename(
const char* file_name);
833 int get_is_sky_box();
834 int set_is_sky_box(
int skybox);
845 #ifdef CPLUSPLUS_ONLY
866 int get_include_in_octtree();
867 int set_include_in_octtree(
int val);
869 int set_include_in_physics_sim_scene(
int include_in_simulation_terrain);
870 int get_include_in_physics_sim_scene();
875 int get_min(
float* x,
float* y,
float* z);
876 int get_max(
float* x,
float* y,
float* z);
882 void set_scene_graph_mask(
unsigned int mask);
883 unsigned int get_scene_graph_mask();
886 int set_enabled(
int enabled);
889 int set_visible(
int visible);
895 #ifdef CPLUSPLUS_ONLY
899 bdiScenarioSceneObject* get_scripted_object() {
return m_scripted_object;}
918 bdiScenarioSceneObject* m_scripted_object;
920 friend class bdiScenarioSceneObject;