14 #ifndef __diguySceneObject_H
15 #define __diguySceneObject_H
20 #define CPLUSPLUS_ONLY
24 class bdiScenarioSceneObject;
56 const char* get_name();
72 int set_name(
const char* name);
112 const char* get_filename();
125 const char* get_nodename();
137 const char* get_alternate_filename();
154 const char* get_fully_resolved_filename();
208 int add_vertex_to_user_defined(
float x,
float y,
float z);
220 int add_triangle_to_user_defined(
int index0,
int index1,
int index2);
222 #ifdef CPLUSPLUS_ONLY
236 int add_vertex_array_to_user_defined(
const float*
const vertices,
237 int num_vertices,
int skipBytes = 12);
253 int add_triangle_array_to_user_defined(
const int*
const indices,
int num_indices);
265 int add_triangle_to_user_defined(
const float*
const pos0,
266 const float*
const pos1,
const float*
const pos2);
279 int build_user_defined();
304 int set_render_mode_shader(
const char* shader_name,
305 const char* render_mode = NULL);
319 void reset_render_mode_shader_to_default(
const char* render_mode = NULL);
337 const char* get_render_mode_shader(
const char* render_mode = NULL);
392 int set_temporary_current_shader(
const char* shader_name);
406 void reset_current_shader_to_default();
443 void reset_shader_instance_variables_to_initial_values();
457 void reset_shader_instance_variables_to_program_defaults();
485 int set_switch_state(
const char* switch_name,
507 int get_switch_state(
const char* switch_name);
533 int set_dof_state(
const char* dof_name,
534 float tx,
float ty,
float tz,
535 float rz,
float rx,
float ry);
561 int set_dof_state_flt(
const char* dof_name,
562 float tx,
float ty,
float tz,
563 float rx,
float ry,
float rz);
589 int get_dof_state(
const char* dof_name,
590 float* tx,
float* ty,
float* tz,
591 float* rz,
float* rx,
float* ry);
617 int get_dof_state_flt(
const char* dof_name,
618 float* tx,
float* ty,
float* tz,
619 float* rx,
float* ry,
float* rz);
642 int add_switch_target(
const char* switch_name,
668 int abort_all_switch_targets(
const char* switch_name);
701 int add_dof_target(
const char* dof_name,
702 float tx,
float ty,
float tz,
703 float rz,
float rx,
float ry,
704 float blend_tin,
float blend_tout,
705 const char* blend_function_name = 0);
740 int add_dof_target_flt(
const char* dof_name,
741 float tx,
float ty,
float tz,
742 float rx,
float ry,
float rz,
743 float blend_tin,
float blend_tout,
744 const char* blend_function_name = 0);
767 int abort_all_dof_targets(
const char* dof_name);
772 int set_shader_program(
const char* shader_name);
791 int set_position(
float x,
float y,
float z);
792 int get_position(
float* x,
float* y,
float* z);
794 int set_orientation(
float rz,
float rx,
float ry);
795 int get_orientation(
float* rz,
float* rx,
float* ry);
797 int set_scale(
float sx,
float sy,
float sz);
798 int get_scale(
float* sx,
float* sy,
float* sz);
800 int set_filename(
const char* file_name);
801 int get_is_sky_box();
802 int set_is_sky_box(
int skybox);
813 #ifdef CPLUSPLUS_ONLY
834 int get_include_in_octtree();
835 int set_include_in_octtree(
int val);
837 int set_include_in_physics_sim_scene(
int include_in_simulation_terrain);
838 int get_include_in_physics_sim_scene();
843 int get_min(
float* x,
float* y,
float* z);
844 int get_max(
float* x,
float* y,
float* z);
850 void set_scene_graph_mask(
unsigned int mask);
851 unsigned int get_scene_graph_mask();
854 int set_enabled(
int enabled);
857 int set_visible(
int visible);
863 #ifdef CPLUSPLUS_ONLY
867 bdiScenarioSceneObject* get_scripted_object() {
return m_scripted_object;}
886 bdiScenarioSceneObject* m_scripted_object;
888 friend class bdiScenarioSceneObject;