Guest User

U3D++ Explanation

a guest
Apr 1st, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.00 KB | None | 0 0
  1. _ _ ____ _____
  2. | | | | |___ \ | __ \ _ _
  3. | | | | __) | | | | | _| |_ _| |_
  4. | | | | |__ < | | | | |_ _| |_ _|
  5. | |__| | ___) | | |__| | |_| |_|
  6. \____/ |____/ |_____/
  7.  
  8. ***********************************************
  9. Credits
  10. ***********************************************
  11.  
  12. Christopher Peters(Dr. Best) - Creator of Ultimate 3D
  13. Owain Parry(roflcoperz) - Creator of U3D++
  14.  
  15. ***********************************************
  16. Introduction
  17. ***********************************************
  18.  
  19. U3D++ is a C++ wrapper for the Game Maker driven 3D game engine known as Ultimate 3D. U3D++ was written to free users of Ultimate 3D from the slow function calls, poor syntax and lack of freedom experianced in Game Maker by enabling them to interface Ultimate 3D with any C++ IDE. Using Ultimate 3D with C++ may or may not increase the running speed of applications created with it, but if your application is slow due to an inefficentcy with Game Maker then you can assume that you will enjoy a faster running speed with U3D++, if however, you are experiancing slow running speeds due to a large amount of rendering with Ultimate 3D, then dont expect any improvment. It is still strongy advised to be just as sensible with U3D++ as you would be when using U3D & Game Maker.
  20.  
  21. This help file assumes that you have a solid understanding of all aspects of Ultiamte 3D, if you do not, then read the Ultimate 3D Manual before using U3D++
  22.  
  23. ************************************************
  24. Using U3D++
  25. ************************************************
  26.  
  27. U3D++ simply consists of a header file. It only takes a single line of code to use it in your project after you have linked it with the rest of your project.
  28.  
  29. #import 'u3d++.h'
  30.  
  31. To initiate Ultimate 3D, you must use this code, subsituting in the paramaters with their proper values.
  32.  
  33. u3d_init(window handel, x, y, width, height, z-buffer format, multi sample type, use right hand coordinate system, device type, few message output);
  34.  
  35. As Game Maker only uses double and string values, Ultimate 3D can only use double and string values and so U3D++ also uses them. You can assume that any numerical value will be double.
  36.  
  37. As a footnote, U3D++ uses Windows.h, String, iostream and math.h, and will not function properly without them.
  38.  
  39. No credit is required for using U3D++, but the normal Ultimate 3D licence still applies.
  40.  
  41. ***********************************************
  42. Classes
  43. ***********************************************
  44.  
  45. -----------------------------------------------
  46. u3dlightdirectional
  47. -----------------------------------------------
  48.  
  49. Constructor & Destructor
  50. -----------------------------------------------
  51.  
  52. u3dlightdirectional(double para_rotx, double para_roty, double para_r, double para_g, double para_b, double para_spec_r, double para_spec_g, double para_spec_b)
  53.  
  54. Creates a u3dlightdirectional object and calls the 'create(...)' subroutine.
  55.  
  56. ~u3dlightdirectional()
  57.  
  58. Destroys the u3dlightdirectional object and calls the 'destroy(...)' subroutine.
  59.  
  60. Class subroutines
  61. -----------------------------------------------
  62.  
  63. void create()
  64.  
  65. Creates the U3D object.
  66.  
  67. void step()
  68.  
  69. Updates the U3D object.
  70.  
  71. void destroy()
  72.  
  73. Destroys the U3D object.
  74.  
  75. double get_rotation(int element_index, bool previous) const
  76.  
  77. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  78.  
  79. double get_colour(int element_index, bool previous) const
  80.  
  81. Returns the colour of the U3D light source. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous colour or false for the current colour.
  82.  
  83. double get_colour_spec(int element_index, bool previous) const
  84.  
  85. Returns the specular colour of the U3D light source. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous specular colour or false for the current specular colour.
  86.  
  87. double get_u3d_type()
  88.  
  89. Returns the U3D object's U3D type.
  90.  
  91. double get_u3d_index()
  92.  
  93. Returns the U3D object's U3D index.
  94.  
  95. void set_rotation(int element_index, bool previous, double new_value)
  96.  
  97. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  98.  
  99. void set_colour(int element_index, bool previous, double new_value)
  100.  
  101. Sets the colour of the U3D object. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous colour or false for the current colour. 'new_value' is the new colour.
  102.  
  103. void set_colour_spec(int element_index, bool previous, double new_value)
  104.  
  105. Sets the specular colour of the U3D object. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous specular colour or false for the current specular colour. 'new_value' is the new specular colour.
  106.  
  107. -----------------------------------------------
  108. u3dlightpoint
  109. -----------------------------------------------
  110.  
  111. Constructor & Destructor
  112. -----------------------------------------------
  113.  
  114. u3dlightpoint(double para_x, double para_y, double para_z, double para_range, double para_r, double para_g, double para_b, double para_spec_r, double para_spec_g, double para_spec_b)
  115.  
  116. Creates a u3dlightpoint object and calls the 'create(...)' subroutine.
  117.  
  118. ~u3dlightpoint()
  119.  
  120. Destroys the u3dlightpoint object and calls the 'destroy(...)' subroutine.
  121.  
  122. Class subroutines
  123. -----------------------------------------------
  124.  
  125. void create()
  126.  
  127. Creates the U3D object.
  128.  
  129. void step()
  130.  
  131. Updates the U3D object.
  132.  
  133. void destroy()
  134.  
  135. Destroys the U3D object.
  136.  
  137. double get_position(int element_index, bool previous) const
  138.  
  139. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  140.  
  141. double get_range(bool previous) const
  142.  
  143. Returns the range of the U3D light source. 'previous' can be true for the previous range or false for the current position.
  144.  
  145. double get_colour(int element_index, bool previous) const
  146.  
  147. Returns the colour of the U3D light source. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous colour or false for the current colour.
  148.  
  149. double get_colour_spec(int element_index, bool previous) const
  150.  
  151. Returns the specular colour of the U3D light source. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous specular colour or false for the current specular colour.
  152.  
  153. double get_u3d_type() const
  154.  
  155. Returns the U3D object's U3D type.
  156.  
  157. double get_u3d_index() const
  158.  
  159. Returns the U3D object's U3D index.
  160.  
  161. void set_position(int element_index, bool previous, double new_value)
  162.  
  163. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  164.  
  165. void set_range(bool previous, double new_value)
  166.  
  167. Sets the range of the U3D light source. 'previous' can be true for the previous range of false for the current range. 'new_value' is the new range.
  168.  
  169. void set_colour(int element_index, bool previous, double new_value)
  170.  
  171. Sets the colour of the U3D object. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous colour or false for the current colour. 'new_value' is the new colour.
  172.  
  173. void set_colour_spec(int element_index, bool previous, double new_value)
  174.  
  175. Sets the specular colour of the U3D object. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous specular colour or false for the current colour. 'new_value' is the new specular colour.
  176.  
  177. -----------------------------------------------
  178. u3dlightspot
  179. -----------------------------------------------
  180.  
  181. Constructor & Destructor
  182. -----------------------------------------------
  183.  
  184. u3dlightspot(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_range, double para_deg, double para_r, double para_g, double para_b, double para_spec_r, double para_spec_g, double para_spec_b)
  185.  
  186. Creates a u3dlightspot object and calls the 'create(...)' subroutine.
  187.  
  188. ~u3dlightspot ()
  189.  
  190. Destroys the u3dlightspot object and calls the 'destroy(...)' subroutine.
  191.  
  192. Class subroutines
  193. -----------------------------------------------
  194.  
  195. void create()
  196.  
  197. Creates the U3D object.
  198.  
  199. void step()
  200.  
  201. Updates the U3D object.
  202.  
  203. void destroy()
  204.  
  205. Destroys the U3D object.
  206.  
  207. double get_position(int element_index, bool previous) const
  208.  
  209. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  210.  
  211. double get_rotation(int element_index, bool previous) const
  212.  
  213. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  214.  
  215. double get_range(bool previous) const
  216.  
  217. Returns the range of the U3D light source. 'previous' can be true for the previous range or false for the current position.
  218.  
  219. double get_deg(bool previous) const
  220.  
  221. Returns the deg of the U3D light source. 'previous' can be true for the previous deg or false for the current deg.
  222.  
  223. double get_colour(int element_index, bool previous) const
  224.  
  225. Returns the colour of the U3D light source. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous colour or false for the current colour.
  226.  
  227. void set_colour_spec(int element_index, bool previous, double new_value)
  228.  
  229. Sets the specular colour of the U3D object. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous specular colour or false for the current colour. 'new_value' is the new specular colour.
  230.  
  231. double get_u3d_type() const
  232.  
  233. Returns the U3D object's U3D type.
  234.  
  235. double get_u3d_index() const
  236.  
  237. Returns the U3D object's U3D index.
  238.  
  239. void set_position(int element_index, bool previous, double new_value)
  240.  
  241. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  242.  
  243. void set_rotation(int element_index, bool previous, double new_value)
  244.  
  245. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  246.  
  247. void set_range(bool previous, double new_value)
  248.  
  249. Sets the range of the U3D light source. 'previous' can be true for the previous range or false for the current range. 'new_value' is the new range.
  250.  
  251. void set_deg(bool previous, double new_value)
  252.  
  253. Sets the deg of the U3D light source. 'previous' can be true for the previous deg or false for the current deg.
  254.  
  255. void set_colour(int element_index, bool previous, double new_value)
  256.  
  257. Sets the colour of the U3D object. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous colour or false for the current colour. 'new_value' is the new colour.
  258.  
  259. void set_colour_spec(int element_index, bool previous, double new_value)
  260.  
  261. Sets the specular colour of the U3D object. 'element_index' can be 0 for red, 1 for green or 2 for blue. 'previous' can be true for the previous specular colour or false for the current colour. 'new_value' is the new specular colour.
  262.  
  263. -----------------------------------------------
  264. u3dterrain
  265. -----------------------------------------------
  266.  
  267. Constructor & Destructor
  268. -----------------------------------------------
  269.  
  270. u3dterrain(double para_x, double para_y, double para_z, double para_height, double para_tile_count_x, double para_tile_count_y, double para_tile_size, double para_wrap_count_x, double para_wrap_count_y, string para_height_map, string para_base_texture, double para_terrain_lod, double para_alpha_map_resolution, double para_light_map_resolution)
  271.  
  272. Creates a u3dterrain object and calls the 'create(...)' subroutine.
  273.  
  274. ~u3dterrain()
  275.  
  276. Destroys the u3dterrain object and calls the 'destroy(...)' subroutine.
  277.  
  278. Class subroutines
  279. -----------------------------------------------
  280.  
  281. void create()
  282.  
  283. Creates the U3D object.
  284.  
  285. void destroy()
  286.  
  287. Destroys the U3D object.
  288.  
  289. double get_position(int element_index, bool previous) const
  290.  
  291. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  292.  
  293. double get_height() const
  294.  
  295. Returns the height of the U3D terrain.
  296.  
  297. double get_tile_count(int element_index) const
  298.  
  299. Returns the tile count of the U3D terrain. 'element_index' can be 0 for x or 1 for y.
  300.  
  301. double get_tile_size() const
  302.  
  303. Returns the file size of the U3D terrain.
  304.  
  305. double get_wrap_count(int element_index) const
  306.  
  307. Returns the wrap count of the U3D terrain. 'element_index' can be 0 for x or 1 for y.
  308.  
  309. string get_height_map() const
  310.  
  311. Returns the filepath of the height map of the U3D terrain.
  312.  
  313. string get_base_texture() const
  314.  
  315. Returns the filepath of the base texture of the U3D terrain.
  316.  
  317. double get_terrain_lod() const
  318.  
  319. Returns the lod of the U3D terrain.
  320.  
  321. double get_alpha_map_resolution() const
  322.  
  323. Returns the alpha map resolution of the U3D terrain.
  324.  
  325. double get_light_map_resolution() const
  326.  
  327. Returns the light map resolution of the U3D terrain.
  328.  
  329. double get_u3d_type() const
  330.  
  331. Returns the U3D object's U3D type.
  332.  
  333. double get_u3d_index() const
  334.  
  335. Returns the U3D object's U3D index.
  336.  
  337. void set_position(int element_index, bool previous, double new_value)
  338.  
  339. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  340.  
  341. void set_height(double new_value)
  342.  
  343. Sets the height of the U3D terrain. 'new_value' is the new height.
  344.  
  345. void set_tile_count(int element_index, double new_value)
  346.  
  347. Sets the tile count of the U3D terrain. 'element_index' can be 0 for x or 1 for y. 'new_value' is the new tile count.
  348.  
  349. void set_tile_size(double new_value)
  350.  
  351. Sets the tile size of the U3D terrain. 'new_value' is the new tile size.
  352.  
  353. void set_wrap_count(int element_index, double new_value)
  354.  
  355. Sets the wrap count of the U3D terrain. 'element_index' can be 0 for x or 1 for y. 'new_value' is the new wrap count.
  356.  
  357. void set_height_map(string new_value)
  358.  
  359. Sets the height map of the U3D terrain. 'new_value' is the filepath of the new height map file.
  360.  
  361. void set_base_texture(string new_value)
  362.  
  363. Sets the base texture of the U3D terrain. 'new_value' is the filepath of the new base texture file.
  364.  
  365. void set_terrain_lod(double new_value)
  366.  
  367. Sets the terrain lod of the U3D terrain. 'new_value' is the new lod.
  368.  
  369. void set_alpha_map_resolution(double new_value)
  370.  
  371. Sets the alpha map resoloution of the U3D terrain. 'new_value' is the new alpha map resolution.
  372.  
  373. void set_light_map_resolution(double new_value)
  374.  
  375. Sets the light map resoloution of the U3D terrain. 'new_value' is the new light map resolution.
  376.  
  377. -----------------------------------------------
  378. u3dparticlesystem
  379. -----------------------------------------------
  380.  
  381. Constructor & Destructor
  382. -----------------------------------------------
  383.  
  384. u3dparticlesystem(double para_x, double para_y, double para_z, double para_texture, double para_aspect_ratio, double para_time_factor)
  385.  
  386. Creates a u3dparticlesystem object and calls the 'create(...)' subroutine.
  387.  
  388. ~u3dparticlesystem()
  389.  
  390. Destroys the u3dparticlesystem object and calls the 'destroy(...)' subroutine.
  391.  
  392. Class subroutines
  393. -----------------------------------------------
  394.  
  395. void create()
  396.  
  397. Creates the U3D object.
  398.  
  399. void step()
  400.  
  401. Updates the U3D particle system.
  402.  
  403. void destroy()
  404.  
  405. Destroys the U3D object.
  406.  
  407. double get_position(int element_index, bool previous) const
  408.  
  409. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  410.  
  411. double get_texture() const
  412.  
  413. Returns the texture index of the U3D particle system.
  414.  
  415. double get_aspect_ratio() const
  416.  
  417. Returns the aspect ratio of the U3D particle system.
  418.  
  419. double get_u3d_type() const
  420.  
  421. Returns the U3D object's U3D type.
  422.  
  423. double get_u3d_index() const
  424.  
  425. Returns the U3D objects' U3D index.
  426.  
  427. void set_position(int element_index, bool previous, double new_value)
  428.  
  429. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  430.  
  431. void set_texture(double new_value)
  432.  
  433. Returns the texture index of the U3D particle system.
  434.  
  435. void set_aspect_ratio(double new_value)
  436.  
  437. Returns the aspect ratio of the U3D particle system.
  438.  
  439. -----------------------------------------------
  440. u3dmesh
  441. -----------------------------------------------
  442.  
  443. Constructor & Destructor
  444. -----------------------------------------------
  445.  
  446. u3dmesh(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_scalx, double para_scaly, double para_scalz, double para_texture, double para_frame, double para_first_frame, double para_last_frame, string para_file, string para_password)
  447.  
  448. Creates a u3dmesh object and calls the 'create(...)' subroutine.
  449.  
  450. ~u3dmesh()
  451.  
  452. Destroys the u3dmesh object and calls the 'destroy(...)' subroutine.
  453.  
  454. Class subroutines
  455. -----------------------------------------------
  456.  
  457. void create()
  458.  
  459. Creates the U3D object.
  460.  
  461. void create_empty()
  462.  
  463. Creates an empty U3D mesh object.
  464.  
  465. voic create_decal()
  466.  
  467. Creates a decal U3D mesh object.
  468.  
  469. void step()
  470.  
  471. Updates the U3D object.
  472.  
  473. void destroy()
  474.  
  475. Destroys the U3D object.
  476.  
  477. double get_position(int element_index, bool previous) const
  478.  
  479. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  480.  
  481. double get_rotation(int element_index, bool previous) const
  482.  
  483. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  484.  
  485. double get_scale(int element_index, bool prevoius) const
  486.  
  487. Returns the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale.
  488.  
  489. double get_texture(bool previous) const
  490.  
  491. Returns the texture index of U3D mesh. 'previous' can be true for the previous texture index or false for the current texture index.
  492.  
  493. double get_frame(bool previous) const
  494.  
  495. Returns the frame of U3D mesh. 'previous' can be true for the previous frame or false for the current frame.
  496.  
  497. double get_first_frame(bool previous) const
  498.  
  499. Returns the first frame of U3D mesh. 'previous' can be true for the previous first frame or false for the current first frame.
  500.  
  501. double get_last_frame(bool previous) const
  502.  
  503. Returns the last frame of the U3D mesh. 'previous' can be true for the previous last frame or false for the current last frame.
  504.  
  505. string get_file() const
  506.  
  507. Returns the filepath of the U3D mesh.
  508.  
  509. string get_password() const
  510.  
  511. Returns the password currently in use for the U3D mesh. (This does NOT tell you the password of the .u3d model file)
  512.  
  513. double get_u3d_type() const
  514.  
  515. Returns the U3D object's U3D type.
  516.  
  517. double get_u3d_index() const
  518.  
  519. Returns the U3D object' U3D index.
  520.  
  521. void set_position(int element_index, bool previous, double new_value)
  522.  
  523. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  524.  
  525. void set_rotation(int element_index, bool previous, double new_value)
  526.  
  527. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  528.  
  529. void set_scale(int element_index, bool previous, double new_value)
  530.  
  531. Sets the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale. 'new_value' is the new scale.
  532.  
  533. void set_texture(bool previous, double new_value)
  534.  
  535. Returns the texture index of the U3D mesh. 'previous' can be true for the previous texture index or false for the current texture index. 'new_value' is the new texture index.
  536.  
  537. void set_frame(bool previous, double new_value)
  538.  
  539. Sets the frame of the U3D mesh. 'previous' can be true for the previous texture index or false for the current frame. 'new_value' is the new frame.
  540.  
  541. void set_first_frame(bool previous, double new_value)
  542.  
  543. Sets the first frame of the U3D mesh. 'previous' can be true for the previous first frame or false for the current first frame. 'new_value' is the new first frame
  544.  
  545. void set_last_frame(bool previous, double new_value)
  546.  
  547. Sets the last frame of the U3D mesh. 'previous' can be true for the previous last frame or false for the current lasat frame. 'new_value' is the new last frame
  548.  
  549. void set_file(string new_value)
  550.  
  551. Sets the file of the U3D mesh. 'new_value' is the new filepath of the model file.
  552.  
  553. void set_password(string new_value)
  554.  
  555. Sets the password to be used on the U3D mesh. 'new_value is the new password for the model file. (This does NOT set a new password for the .u3d model file)
  556.  
  557. -----------------------------------------------
  558. u3dwall
  559. -----------------------------------------------
  560.  
  561. Constructor & Destructor
  562. -----------------------------------------------
  563.  
  564. u3dwall(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_scalx, double para_scaly, double para_scalz, double para_height, double para_texx1, double para_texx2, double para_texy1, double para_texy2, double para_partsx, double para_partsy, double para_texture)
  565.  
  566. Creates a u3dwall object and calls the 'create(...)' subroutine.
  567.  
  568. ~u3dwall()
  569.  
  570. Destroys the u3dwall object and calls the 'destroy(...)' subroutine.
  571.  
  572. Class subroutines
  573. -----------------------------------------------
  574.  
  575. void create()
  576.  
  577. Creates the U3D object.
  578.  
  579. void step()
  580.  
  581. Updates the U3D object.
  582.  
  583. void destroy()
  584.  
  585. Destroys the U3D object.
  586.  
  587. double get_position(int element_index, bool previous) const
  588.  
  589. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  590.  
  591. double get_rotation(int element_index, bool previous) const
  592.  
  593. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  594.  
  595. double get_scale(int element_index, bool prevoius) const
  596.  
  597. Returns the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale.
  598.  
  599. double get_height()
  600.  
  601. Returns the height of the U3D wall.
  602.  
  603. double get_texx(int element_index) const
  604.  
  605. Returns the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2.
  606.  
  607. double get_texy(int element_index) const
  608.  
  609. Returns the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2.
  610.  
  611. double get_partsx() const
  612.  
  613. Returns the partsx of the U3D primitive.
  614.  
  615. double get_partsy() const
  616.  
  617. Returns the partsy of the U3D primitive.
  618.  
  619. double get_texture(bool previous) const
  620.  
  621. Returns the texture index of the U3D primitive. 'previous' can be true for the previous texture or false for the current texture.
  622.  
  623. double get_u3d_type() const
  624.  
  625. Returns the U3D object's U3D type.
  626.  
  627. double get_u3d_index() const
  628.  
  629. Returns the U3D object's U3D index.
  630.  
  631. void set_position(int element_index, bool previous, double new_value)
  632.  
  633. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  634.  
  635. void set_rotation(int element_index, bool previous, double new_value)
  636.  
  637. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  638.  
  639. void set_scale(int element_index, bool previous, double new_value)
  640.  
  641. Sets the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale. 'new_value' is the new scale.
  642.  
  643. void set_height(double new_value)
  644.  
  645. Sets the height of the U3D wall.
  646.  
  647. void set_texx(int element_index, double new_value)
  648.  
  649. Sets the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2. 'new_value' is the new height.
  650.  
  651. void set_texy(int element_index, double new_value)
  652.  
  653. Sets the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2. 'new_value' is the new height.
  654.  
  655. void set_partsx(double new_value)
  656.  
  657. Sets the partsx of the U3D primtive. 'new_value' is the new partsx.
  658.  
  659. void set_partsy(double new_value)
  660.  
  661. Sets the partsy of the U3D primtive. 'new_value' is the new partsy.
  662.  
  663. void set_texture(bool previous, double new_value)
  664.  
  665. Sets the texture of the U3D primitive. 'new_value' is the new texture index.
  666.  
  667. -----------------------------------------------
  668. u3dfloor
  669. -----------------------------------------------
  670.  
  671. Constructor & Destructor
  672. -----------------------------------------------
  673.  
  674. u3dfloor(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_scalx, double para_scaly, double para_scalz, double para_width, double para_height, double para_texx1, double para_texx2, double para_texy1, double para_texy2, double para_partsx, double para_partsy, double para_texture)
  675.  
  676. Creates a u3dfloor object and calls the 'create(...)' subroutine.
  677.  
  678. ~u3dfloor()
  679.  
  680. Destroys the u3dfloor object and calls the 'destroy(...)' subroutine.
  681.  
  682. Class subroutines
  683. -----------------------------------------------
  684.  
  685. void create()
  686.  
  687. Creates the U3D object.
  688.  
  689. void step()
  690.  
  691. Updates the U3D object.
  692.  
  693. void destroy()
  694.  
  695. Destroys the U3D object.
  696.  
  697. double get_position(int element_index, bool previous) const
  698.  
  699. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  700.  
  701. double get_rotation(int element_index, bool previous) const
  702.  
  703. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  704.  
  705. double get_scale(int element_index, bool prevoius) const
  706.  
  707. Returns the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale.
  708.  
  709. double get_width()
  710.  
  711. Returns the height of the U3D floor.
  712.  
  713. double get_height()
  714.  
  715. Returns the height of the U3D floor.
  716.  
  717. double get_texx(int element_index) const
  718.  
  719. Returns the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2.
  720.  
  721. double get_texy(int element_index) const
  722.  
  723. Returns the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2.
  724.  
  725. double get_partsx() const
  726.  
  727. Returns the partsx of the U3D primitive.
  728.  
  729. double get_partsy() const
  730.  
  731. Returns the partsy of the U3D primitive.
  732.  
  733. double get_texture(bool previous) const
  734.  
  735. Returns the texture index of the U3D primitive. 'previous' can be true for the previous texture or false for the current texture.
  736.  
  737. double get_u3d_type() const
  738.  
  739. Returns the U3D object's U3D type.
  740.  
  741. double get_u3d_index() const
  742.  
  743. Returns the U3D object's U3D index.
  744.  
  745. void set_position(int element_index, bool previous, double new_value)
  746.  
  747. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  748.  
  749. void set_rotation(int element_index, bool previous, double new_value)
  750.  
  751. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  752.  
  753. void set_scale(int element_index, bool previous, double new_value)
  754.  
  755. Sets the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale. 'new_value' is the new scale.
  756.  
  757. void set_width(double new_value)
  758.  
  759. Sets the width of the U3D floor.
  760.  
  761. void set_height(double new_value)
  762.  
  763. Sets the height of the U3D floor.
  764.  
  765. void set_texx(int element_index, double new_value)
  766.  
  767. Sets the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2. 'new_value' is the new height.
  768.  
  769. void set_texy(int element_index, double new_value)
  770.  
  771. Sets the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2. 'new_value' is the new height.
  772.  
  773. void set_partsx(double new_value)
  774.  
  775. Sets the partsx of the U3D primtive. 'new_value' is the new partsx.
  776.  
  777. void set_partsy(double new_value)
  778.  
  779. Sets the partsy of the U3D primtive. 'new_value' is the new partsy.
  780.  
  781. void set_texture(bool previous, double new_value)
  782.  
  783. Sets the texture of the U3D primitive. 'new_value' is the new texture index.
  784.  
  785. -----------------------------------------------
  786. u3dcube
  787. -----------------------------------------------
  788.  
  789. Constructor & Destructor
  790. -----------------------------------------------
  791.  
  792. u3dcube(double para_texture, double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_scalx, double para_scaly, double para_scalz, double para_width, double para_height, double para_depth, double para_texx1, double para_texy1, double para_texz1, double para_texx2, double para_texy2, double para_texz2, double para_subdivide_texture, double para_partsx, double para_partsy, double para_partsz, double para_originx, double para_originy, double para_originz)
  793.  
  794. Creates a u3dcube object and calls the 'create(...)' subroutine.
  795.  
  796. ~u3dcube()
  797.  
  798. Destroys the u3dcube object and calls the 'destroy(...)' subroutine.
  799.  
  800. Class subroutines
  801. -----------------------------------------------
  802.  
  803. void create()
  804.  
  805. Creates the U3D object.
  806.  
  807. void step()
  808.  
  809. Updates the U3D object.
  810.  
  811. void destroy()
  812.  
  813. Destroys the U3D object.
  814.  
  815. double get_position(int element_index, bool previous) const
  816.  
  817. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  818.  
  819. double get_origin(int element_index) const;
  820.  
  821. Returns the origin of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z.
  822.  
  823. double get_rotation(int element_index, bool previous) const
  824.  
  825. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  826.  
  827. double get_scale(int element_index, bool prevoius) const
  828.  
  829. Returns the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale.
  830.  
  831. double get_width()
  832.  
  833. Returns the height of the U3D cube.
  834.  
  835. double get_height()
  836.  
  837. Returns the height of the U3D cube.
  838.  
  839. double get_depth()
  840.  
  841. Returns the depth of the U3D cube.
  842.  
  843. double get_texx(int element_index) const
  844.  
  845. Returns the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2.
  846.  
  847. double get_texy(int element_index) const
  848.  
  849. Returns the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2.
  850.  
  851. double get_texz(int element_index) const
  852.  
  853. Returns the texz of the U3D primitive. 'element_index' can be 0 for texz1 or 1 for texz2.
  854.  
  855. double get_partsx() const
  856.  
  857. Returns the partsx of the U3D primitive.
  858.  
  859. double get_partsy() const
  860.  
  861. Returns the partsy of the U3D primitive.
  862.  
  863. double get_partsz() const
  864.  
  865. Returns the partsz of the U3D primitive.
  866.  
  867. double get_texture(bool previous) const
  868.  
  869. Returns the texture index of the U3D primitive. 'previous' can be true for the previous texture or false for the current texture.
  870.  
  871. double get_subdivide_texture() const
  872.  
  873. Returns < 0.5 if subdivide texture is false or > 0.5 if it is true
  874.  
  875. double get_u3d_type() const
  876.  
  877. Returns the U3D object's U3D type.
  878.  
  879. double get_u3d_index() const
  880.  
  881. Returns the U3D object's U3D index.
  882.  
  883. void set_position(int element_index, bool previous, double new_value)
  884.  
  885. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  886.  
  887. void set_rotation(int element_index, bool previous, double new_value)
  888.  
  889. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  890.  
  891. void set_scale(int element_index, bool previous, double new_value)
  892.  
  893. Sets the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale. 'new_value' is the new scale.
  894.  
  895. void set_origin(int element_index, double new_value)
  896.  
  897. Sets the origin of the U3D object. 'element_index' can 0 for x, 1 for y or 2 for z. 'new_value' is the new origin.
  898.  
  899. void set_width(double new_value)
  900.  
  901. Sets the width of the U3D cube.
  902.  
  903. void set_height(double new_value)
  904.  
  905. Sets the height of the U3D cube.
  906.  
  907. void set_depth(double new_value)
  908.  
  909. Sets the depth of the U3D cube.
  910.  
  911. void set_texx(int element_index, double new_value)
  912.  
  913. Sets the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2. 'new_value' is the new height.
  914.  
  915. void set_texy(int element_index, double new_value)
  916.  
  917. Sets the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2. 'new_value' is the new height.
  918.  
  919. void set_texz(int element_index, double new_value)
  920.  
  921. Sets the texz of the U3D primitive. 'element_index' can be 0 for texz1 or 1 for texz2. 'new_value' is the new height.
  922.  
  923. void set_partsx(double new_value)
  924.  
  925. Sets the partsx of the U3D primtive. 'new_value' is the new partsx.
  926.  
  927. void set_partsy(double new_value)
  928.  
  929. Sets the partsy of the U3D primtive. 'new_value' is the new partsy.
  930.  
  931. void set_partsz(double new_value)
  932.  
  933. Sets the partsz of the U3D primtive. 'new_value' is the new partsy.
  934.  
  935. void set_texture(bool previous, double new_value)
  936.  
  937. Sets the texture of the U3D primitive. 'new_value' is the new texture index.
  938.  
  939. void set_subdivide_texture(double new_value)
  940.  
  941. Sets the subdivide texture property. 'new_value' is < 0.5 for false or > 0.5 for true.
  942.  
  943. -----------------------------------------------
  944. u3dpolygon
  945. -----------------------------------------------
  946.  
  947. Constructor & Destructor
  948. -----------------------------------------------
  949.  
  950. u3dpolygon(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_scalx, double para_scaly, double para_scalz, double para_texx1, double para_texx2, double para_texy1, double para_texy2, double para_partsx, double para_partsy, double para_texture)
  951.  
  952. Creates a u3dpolygon object and calls the 'create(...)' subroutine.
  953.  
  954. ~u3dpolygon()
  955.  
  956. Destroys the u3dpolygon object and calls the 'destroy(...)' subroutine.
  957.  
  958. Class subroutines
  959. -----------------------------------------------
  960.  
  961. void create()
  962.  
  963. Creates the U3D object.
  964.  
  965. void step()
  966.  
  967. Updates the U3D object.
  968.  
  969. void destroy()
  970.  
  971. Destroys the U3D object.
  972.  
  973. double get_position(int element_index, bool previous) const
  974.  
  975. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  976.  
  977. double get_rotation(int element_index, bool previous) const
  978.  
  979. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  980.  
  981. double get_scale(int element_index, bool prevoius) const
  982.  
  983. Returns the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale.
  984.  
  985. double get_texx(int element_index) const
  986.  
  987. Returns the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2.
  988.  
  989. double get_texy(int element_index) const
  990.  
  991. Returns the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2.
  992.  
  993. double get_partsx() const
  994.  
  995. Returns the partsx of the U3D primitive.
  996.  
  997. double get_partsy() const
  998.  
  999. Returns the partsy of the U3D primitive.
  1000.  
  1001. double get_texture(bool previous) const
  1002.  
  1003. Returns the texture index of the U3D primitive. 'previous' can be true for the previous texture or false for the current texture.
  1004.  
  1005. double get_u3d_type() const
  1006.  
  1007. Returns the U3D object's U3D type.
  1008.  
  1009. double get_u3d_index() const
  1010.  
  1011. Returns the U3D object's U3D index.
  1012.  
  1013. void set_position(int element_index, bool previous, double new_value)
  1014.  
  1015. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  1016.  
  1017. void set_rotation(int element_index, bool previous, double new_value)
  1018.  
  1019. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  1020.  
  1021. void set_scale(int element_index, bool previous, double new_value)
  1022.  
  1023. Sets the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale. 'new_value' is the new scale.
  1024.  
  1025. void set_texx(int element_index, double new_value)
  1026.  
  1027. Sets the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2. 'new_value' is the new height.
  1028.  
  1029. void set_texy(int element_index, double new_value)
  1030.  
  1031. Sets the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2. 'new_value' is the new height.
  1032.  
  1033. void set_partsx(double new_value)
  1034.  
  1035. Sets the partsx of the U3D primtive. 'new_value' is the new partsx.
  1036.  
  1037. void set_partsy(double new_value)
  1038.  
  1039. Sets the partsy of the U3D primtive. 'new_value' is the new partsy.
  1040.  
  1041. void set_texture(bool previous, double new_value)
  1042.  
  1043. Sets the texture of the U3D primitive. 'new_value' is the new texture index.
  1044.  
  1045. -----------------------------------------------
  1046. u3d2d
  1047. -----------------------------------------------
  1048.  
  1049. Constructor & Destructor
  1050. -----------------------------------------------
  1051.  
  1052. u3d2d(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_scalx, double para_scaly, double para_scalz, double para_texx1, double para_texx2, double para_texy1, double para_texy2, double para_partsx, double para_partsy, double para_texture)
  1053.  
  1054. Creates a u3d2d object and calls the 'create(...)' subroutine.
  1055.  
  1056. ~u3d2d()
  1057.  
  1058. Destroys the u3d2d object and calls the 'destroy(...)' subroutine.
  1059.  
  1060. Class subroutines
  1061. -----------------------------------------------
  1062.  
  1063. void create()
  1064.  
  1065. Creates the U3D object.
  1066.  
  1067. void step()
  1068.  
  1069. Updates the U3D object.
  1070.  
  1071. void destroy()
  1072.  
  1073. Destroys the U3D object.
  1074.  
  1075. double get_position(int element_index, bool previous) const
  1076.  
  1077. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  1078.  
  1079. double get_rotation(int element_index, bool previous) const
  1080.  
  1081. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  1082.  
  1083. double get_scale(int element_index, bool prevoius) const
  1084.  
  1085. Returns the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale.
  1086.  
  1087. double get_origin(int element_index) const;
  1088.  
  1089. Returns the origin of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z.
  1090.  
  1091. double get_texx(int element_index) const
  1092.  
  1093. Returns the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2.
  1094.  
  1095. double get_texy(int element_index) const
  1096.  
  1097. Returns the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2.
  1098.  
  1099. double get_partsx() const
  1100.  
  1101. Returns the partsx of the U3D primitive.
  1102.  
  1103. double get_partsy() const
  1104.  
  1105. Returns the partsy of the U3D primitive.
  1106.  
  1107. double get_texture(bool previous) const
  1108.  
  1109. Returns the texture index of the U3D primitive. 'previous' can be true for the previous texture or false for the current texture.
  1110.  
  1111. double get_u3d_type() const
  1112.  
  1113. Returns the U3D object's U3D type.
  1114.  
  1115. double get_u3d_index() const
  1116.  
  1117. Returns the U3D object's U3D index.
  1118.  
  1119. void set_position(int element_index, bool previous, double new_value)
  1120.  
  1121. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  1122.  
  1123. void set_rotation(int element_index, bool previous, double new_value)
  1124.  
  1125. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  1126.  
  1127. void set_scale(int element_index, bool previous, double new_value)
  1128.  
  1129. Sets the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale. 'new_value' is the new scale.
  1130.  
  1131. void set_origin(int element_index, double new_value)
  1132.  
  1133. Sets the origin of the U3D object. 'element_index' can 0 for x, 1 for y or 2 for z. 'new_value' is the new origin.
  1134.  
  1135. void set_texx(int element_index, double new_value)
  1136.  
  1137. Sets the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2. 'new_value' is the new height.
  1138.  
  1139. void set_texy(int element_index, double new_value)
  1140.  
  1141. Sets the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2. 'new_value' is the new height.
  1142.  
  1143. void set_partsx(double new_value)
  1144.  
  1145. Sets the partsx of the U3D primtive. 'new_value' is the new partsx.
  1146.  
  1147. void set_partsy(double new_value)
  1148.  
  1149. Sets the partsy of the U3D primtive. 'new_value' is the new partsy.
  1150.  
  1151. void set_texture(bool previous, double new_value)
  1152.  
  1153. Sets the texture of the U3D primitive. 'new_value' is the new texture index.
  1154.  
  1155. -----------------------------------------------
  1156. u3dprimitive
  1157. -----------------------------------------------
  1158.  
  1159. Constructor & Destructor
  1160. -----------------------------------------------
  1161.  
  1162. u3dprimitive(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_scalx, double para_scaly, double para_scalz, double para_texx1, double para_texx2, double para_texy1, double para_texy2, double para_partsx, double para_partsy, double para_texture, string para_file, string para_password, string para_material)
  1163.  
  1164. Creates a u3dprimitive object and calls the 'create(...)' subroutine.
  1165.  
  1166. ~u3dprimitive()
  1167.  
  1168. Destroys the u3dprimitive object and calls the 'destroy(...)' subroutine.
  1169.  
  1170. Class subroutines
  1171. -----------------------------------------------
  1172.  
  1173. void create()
  1174.  
  1175. Creates the U3D object.
  1176.  
  1177. void step()
  1178.  
  1179. Updates the U3D object.
  1180.  
  1181. void destroy()
  1182.  
  1183. Destroys the U3D object.
  1184.  
  1185. double get_position(int element_index, bool previous) const
  1186.  
  1187. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  1188.  
  1189. double get_rotation(int element_index, bool previous) const
  1190.  
  1191. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  1192.  
  1193. double get_scale(int element_index, bool prevoius) const
  1194.  
  1195. Returns the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale.
  1196.  
  1197. double get_texx(int element_index) const
  1198.  
  1199. Returns the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2.
  1200.  
  1201. double get_texy(int element_index) const
  1202.  
  1203. Returns the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2.
  1204.  
  1205. double get_partsx() const
  1206.  
  1207. Returns the partsx of the U3D primitive.
  1208.  
  1209. double get_partsy() const
  1210.  
  1211. Returns the partsy of the U3D primitive.
  1212.  
  1213. string get_file() const
  1214.  
  1215. Returns the filepath of the model file used for the primitive.
  1216.  
  1217. string get_password() const
  1218.  
  1219. Returns the used password of the model file used for the primitive.
  1220.  
  1221. string get_material() const
  1222.  
  1223. Returns the used filepath of the material used for the primitive.
  1224.  
  1225. double get_texture(bool previous) const
  1226.  
  1227. Returns the texture index of the U3D primitive. 'previous' can be true for the previous texture or false for the current texture.
  1228.  
  1229. double get_u3d_type() const
  1230.  
  1231. Returns the U3D object's U3D type.
  1232.  
  1233. double get_u3d_index() const
  1234.  
  1235. Returns the U3D object's U3D index.
  1236.  
  1237. void set_position(int element_index, bool previous, double new_value)
  1238.  
  1239. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  1240.  
  1241. void set_rotation(int element_index, bool previous, double new_value)
  1242.  
  1243. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate.
  1244.  
  1245. void set_scale(int element_index, bool previous, double new_value)
  1246.  
  1247. Sets the scale of the U3D object. 'element_index' can be 0 for scalx, 1 for scaly or 2 for scalz. 'previous' can be true for the previous scale or false for the current scale. 'new_value' is the new scale.
  1248.  
  1249. void set_texx(int element_index, double new_value)
  1250.  
  1251. Sets the texx of the U3D primitive. 'element_index' can be 0 for texx1 or 1 for texx2. 'new_value' is the new height.
  1252.  
  1253. void set_texy(int element_index, double new_value)
  1254.  
  1255. Sets the texy of the U3D primitive. 'element_index' can be 0 for texy1 or 1 for texy2. 'new_value' is the new height.
  1256.  
  1257. void set_partsx(double new_value)
  1258.  
  1259. Sets the partsx of the U3D primtive. 'new_value' is the new partsx.
  1260.  
  1261. void set_partsy(double new_value)
  1262.  
  1263. Sets the partsy of the U3D primtive. 'new_value' is the new partsy.
  1264.  
  1265. string set_file(string new_value) const
  1266.  
  1267. Sets the filepath of the model file used for the primitive. 'new_value' is the new filepath.
  1268.  
  1269. string set_password(string new_value) const
  1270.  
  1271. Returns the used password of the model file used for the primitive. 'new_value' is the new filepath.
  1272.  
  1273. string set_material(string new_value) const
  1274.  
  1275. Returns the used filepath of the material used for the primitive. 'new_valuse' is the new filepath.
  1276.  
  1277. void set_texture(bool previous, double new_value)
  1278.  
  1279. Sets the texture of the U3D primitive. 'new_value' is the new texture index.
  1280.  
  1281. -----------------------------------------------
  1282. u3dunluckyforsome
  1283. -----------------------------------------------
  1284.  
  1285. Constructor & Destructor
  1286. -----------------------------------------------
  1287.  
  1288. u3dunluckyforsome()
  1289.  
  1290. Class subroutines
  1291. -----------------------------------------------
  1292.  
  1293. void create()
  1294.  
  1295. Does nothing. This class is just a placeholder for u3dtype 13.
  1296.  
  1297. -----------------------------------------------
  1298. u3dpssshader
  1299. -----------------------------------------------
  1300.  
  1301. Constructor & Destructor
  1302. -----------------------------------------------
  1303.  
  1304. u3dpssshader(string para_pixel_shader, string para_vertex_shader, double para_camera_index, double para_priority)
  1305.  
  1306. Creates a u3dprimitive object and calls the 'create(...)' subroutine.
  1307.  
  1308. ~u3dpssshader()
  1309.  
  1310. Destroys the u3dprimitive object and calls the 'destroy(...)' subroutine.
  1311.  
  1312. Class subroutines
  1313. -----------------------------------------------
  1314.  
  1315. void create()
  1316.  
  1317. Creates the U3D object.
  1318.  
  1319. void destroy()
  1320.  
  1321. Destroys the U3D object.
  1322.  
  1323. string get_pixel_shader() const
  1324.  
  1325. Returns the filepath of the pixel shader used for the U3D PSS Pixel shader.
  1326.  
  1327. string get_vertex_shader() const
  1328.  
  1329. Returns the filepath of the pixel shader used for the U3D PSS Vertex shader.
  1330.  
  1331. double get_camera_index() const
  1332.  
  1333. Returns the camera index targeted by the U3D PSS shader.
  1334.  
  1335. double get_priority() const
  1336.  
  1337. Returns the priority of the U3D PSS shader.
  1338.  
  1339. double get_u3d_index() const
  1340.  
  1341. Returns the U3D object's U3D index.
  1342.  
  1343. double get_u3d_type() const
  1344.  
  1345. Returns the U3D object's U3D type.
  1346.  
  1347. void set_pixel_shader(string new_value)
  1348.  
  1349. Sets the filepath of the pixel shader. 'new_value' is the new filepath.
  1350.  
  1351. void set_vertex_shader(string new_value)
  1352.  
  1353. Sets the filepath of the vertex shader. 'new_value' is the new filepath.
  1354.  
  1355. void set_camera_index(double new_value)
  1356.  
  1357. Sets the camera index targeted by the U3D PSS shader. 'new_value' is the new filepath.
  1358.  
  1359. void set_priority(double new_value)
  1360.  
  1361. Sets the priority of the U3D PSS shader. 'new_value' is the new priority.
  1362.  
  1363. -----------------------------------------------
  1364. u3dcamera
  1365. -----------------------------------------------
  1366.  
  1367. Constructor & Destructor
  1368. -----------------------------------------------
  1369.  
  1370. u3dcamera(double para_x, double para_y, double para_z, double para_rotx, double para_roty, double para_rotz, double para_number, double para_actual_aspect, double para_render_target, double para_v_left, double para_v_top, double para_v_height, double para_v_width, double para_height, double para_view, double para_min_range, double para_max_range)
  1371.  
  1372. Creates a u3dcamera object and calls the 'create(...)' subroutine.
  1373.  
  1374. ~u3dcamera()
  1375.  
  1376. Destroys the u3dcamera object and calls the 'destroy(...)' subroutine.
  1377.  
  1378. Class subroutines
  1379. -----------------------------------------------
  1380.  
  1381. void create()
  1382.  
  1383. Creates the U3D object.
  1384.  
  1385. void step()
  1386.  
  1387. Updates the U3D object.
  1388.  
  1389. void destroy()
  1390.  
  1391. Destroys the U3D object.
  1392.  
  1393. float get_position(int element_index, bool previous) const
  1394.  
  1395. Returns the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current position.
  1396.  
  1397. float get_rotation(int element_index, bool previous) const
  1398.  
  1399. Returns the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation.
  1400.  
  1401. double get_number() const
  1402.  
  1403. Returns the number of the U3D camera.
  1404.  
  1405. double get_actual_aspect() const
  1406.  
  1407. Returns the actual aspect of the U3D camera.
  1408.  
  1409. double get_render_target() const
  1410.  
  1411. Returns the render target of the U3D camera.
  1412.  
  1413. double get_vleft() const
  1414.  
  1415. Returns the vleft of the U3D camera.
  1416.  
  1417. double get_vtop() const
  1418.  
  1419. Returns the vtop of the U3D camera.
  1420.  
  1421. double get_vwidth() const
  1422.  
  1423. Returns the vwidth of the U3D camera.
  1424.  
  1425. double get_vheight() const
  1426.  
  1427. Returns the vheight of the U3D camera.
  1428.  
  1429. double get_height() const
  1430.  
  1431. Returns the height of the U3D camera.
  1432.  
  1433. double get_view() const
  1434.  
  1435. Returns the view of the U3D camera.
  1436.  
  1437. double get_clipping_plane(bool max) const
  1438.  
  1439. Returns the far or nere clipping plane of the U3D camera. 'max' can be false for the nere clipping plane of true for the far clipping plane.
  1440.  
  1441. double get_u3d_index() const
  1442.  
  1443. Returns the U3D object's U3D index.
  1444.  
  1445. double get_u3d_type() const
  1446.  
  1447. Returns the U3D object's U3D type.
  1448.  
  1449. void set_position(int element_index, bool previous, float new_value)
  1450.  
  1451. Sets the position of the U3D object. 'element_index' can be 0 for x, 1 for y or 2 for z. 'previous' can be true for the previous position or false for the current rotation. 'new_value' is the new positional coordinate.
  1452.  
  1453. void set_rotation(int element_index, bool previous, float new_value)
  1454.  
  1455. Sets the rotation of the U3D object. 'element_index' can be 0 for rotx, 1 for roty or 2 for rotz. 'previous' can be true for the previous rotation or false for the current rotation. 'new_value' is the new rotational coordinate
  1456. void set_number(double new_value)
  1457.  
  1458. Sets the number of the camera. 'new_value' is the new number.
  1459.  
  1460. void set_actual_aspect(double new_value)
  1461.  
  1462. Sets the actual aspect of the camera. 'new_value' is the new actual aspect.
  1463.  
  1464. void set_render_target(double new_value)
  1465.  
  1466. Sets the render target. 'new_value' is the new render target.
  1467.  
  1468. void set_vleft(double new_value)
  1469.  
  1470. Sets the vleft. 'new_value' is the new vleft.
  1471.  
  1472. void set_vtop(double new_value)
  1473.  
  1474. Sets the vtop. 'new_value' is the new vtop.
  1475.  
  1476. void set_vwidth(double new_value)
  1477.  
  1478. Sets the vwidth. 'new_value' is the new vwidth.
  1479.  
  1480. void set_vheight(double new_value)
  1481.  
  1482. Sets the vheight. 'new_value' is the new vheight.
  1483.  
  1484. void set_height(double new_value)
  1485.  
  1486. Sets the height. 'new_value' is the new height.
  1487.  
  1488. void set_view(double new_value)
  1489.  
  1490. Sets the view. 'new_value' is the new view.
  1491.  
  1492. void set_clipping_plane(bool max, double new_value)
  1493.  
  1494. Sets the far or nere clipping plane of the U3D camera. 'max' can be false for the nere clipping plane of true for the far clipping plane. 'new_value' is the new far or nere clipping plane.
  1495.  
  1496. ***********************************************
  1497. Functions
  1498. ***********************************************
  1499.  
  1500. The U3D++ functions are listed here. No description is provided as to what they do, as you should already know this if you have read the Ultimate 3D manual. They are listed to inform you of the arguments of the U3D++ functions, as some of them differ from the GM functions you are used to.
  1501.  
  1502. double load_texture(string source_file, double texture_index, double width, double height)
  1503. double set_fog(double fog_colour_red, double fog_colour_green, double fog_colour_blue, double fog_start, double fog_end)
  1504. double disable_fog()
  1505. double set_ambient(double r, double g, double b)
  1506. double load_background(string file)
  1507. double unload_background()
  1508. double begin_polygon(double vertex_count)
  1509. double add_vertex(double x, double y, double z, double u, double v)
  1510. double set_vertex(u3dwall * target_object, double vertex_index, double x, double y, double z, double u, double v)
  1511. double set_vertex(u3dfloor * target_object, double vertex_index, double x, double y, double z, double u, double v)
  1512. double set_vertex(u3dcube * target_object, double vertex_index, double x, double y, double z, double u, double v)
  1513. double set_vertex(u3dpolygon * target_object, double vertex_index, double x, double y, double z, double u, double v)
  1514. double set_vertex(u3d2d * target_object, double vertex_index, double x, double y, double z, double u, double v)
  1515. double get_vertex(u3dwall * target_object, double vertex_index, double element_index)
  1516. double get_vertex(u3dfloor * target_object, double vertex_index, double element_index)
  1517. double get_vertex(u3dcube * target_object, double vertex_index, double element_index)
  1518. double get_vertex(u3dpolygon * target_object, double vertex_index, double element_index)
  1519. double get_vertex(u3d2d * target_object, double vertex_index, double element_index)
  1520. double set_material(u3dwall * target_object, double colour_r, double colour_g, double colour_b, double colour_a)
  1521. double set_material(u3dfloor * target_object, double colour_r, double colour_g, double colour_b, double colour_a)
  1522. double set_material(u3dcube * target_object, double colour_r, double colour_g, double colour_b, double colour_a)
  1523. double set_material(u3dpolygon * target_object, double colour_r, double colour_g, double colour_b, double colour_a)
  1524. double set_material(u3d2d * target_object, double colour_r, double colour_g, double colour_b, double colour_a)
  1525. double set_material_emissive(u3dwall * target_object, double colour_r, double colour_g, double colour_b)
  1526. double set_material_emissive(u3dfloor * target_object, double colour_r, double colour_g, double colour_b)
  1527. double set_material_emissive(u3dcube * target_object, double colour_r, double colour_g, double colour_b)
  1528. double set_material_emissive(u3dpolygon * target_object, double colour_r, double colour_g, double colour_b)
  1529. double set_material_emissive(u3d2d * target_object, double colour_r, double colour_g, double colour_b)
  1530. double recreate_primitive(u3dwall * target_object)
  1531. double recreate_primitive(u3dfloor * target_object)
  1532. double recreate_primitive(u3dcube * target_object)
  1533. double recreate_primitive(u3dpolygon * target_object)
  1534. double recreate_primitive(u3d2d * target_object)
  1535. double draw_tex(double texture_index, double x, double y, double scaling, double rotation, double alpha)
  1536. double draw_tex_ex(double texture_index, double texture_left, double texture_top, double texture_right, double texture_bottom, double x, double y, double scaling_x, double scaling_y, double rotation, double colour_r, double colour_g, double colour_b, double colour_a, u3dcamera * target_camera)
  1537. double get_texture_width(double texture_index)
  1538. double get_texture_height(double texture_index)
  1539. bool set_font(string font_name, double font_index, double font_size, double font_style, double font_colour_r, double font_colour_g, double font_colour_b, double font_colour_a)
  1540. double set_font_colour(double font_index, double font_colour_r, double font_colour_g, double font_colour_b, double font_colour_a)
  1541. double draw_text(double font_index, double position_x, double position_y, string text_string, u3dcamera * target_camera)
  1542. double draw_text_3d(string text, double font_index, double x, double y, double z, double rotation_x, double rotation_y, double rotation_z, double scaling_x, double scaling_y, double scaling_z)
  1543. void move(u3dmesh * target_object, double rotx, double roty, double speed)
  1544. void move(u3dlightpoint * target_object, double rotx, double roty, double speed)
  1545. void move(u3dlightspot * target_object, double rotx, double roty, double speed)
  1546. void move(u3dwall * target_object, double rotx, double roty, double speed)
  1547. void move(u3dfloor * target_object, double rotx, double roty, double speed)
  1548. void move(u3dcube * target_object, double rotx, double roty, double speed)
  1549. void move(u3dpolygon * target_object, double rotx, double roty, double speed)
  1550. void move(u3d2d * target_object, double rotx, double roty, double speed)
  1551. void move(u3dprimitive * target_object, double rotx, double roty, double speed)
  1552. double take_screenshot(string output_file)
  1553. double take_screenshot_ex(string output_file, double left, double top, double right, double bottom)
  1554. double preload_mesh(string file, string password)
  1555. double release_model(string file)
  1556. double add_frame(u3dmesh * target_object, string file, string password
  1557. double create_lod_chain(u3dmesh * target_object, double camera_distance1, double lod1, double camera_distance2, double lod2, double camera_distance3, double lod3, double camera_distance4, double lod4, double camera_distance5, double lod5)
  1558. double export_to_u3d_file(u3dmesh * target_object, string output_file, string password, double export_resources)
  1559. double switch_background_mode(u3dmesh * target_object, double enable)
  1560. double get_current_frame(u3dmesh * target_object)
  1561. double enable_vetex_tweening(u3dmesh * target_object)
  1562. double recalculate_normals(u3dmesh * target_object)
  1563. double smooth_normals(u3dmesh * target_object, double angle)
  1564. double add_texture_coordinate_set(u3dmesh * target_object, double dimension_count)
  1565. double add_model_texture_coordinates(u3dmesh * target_object, string file, string password)
  1566. double add_inverse_tangent_space_matricies(u3dmesh * target_object)
  1567. double apply_cel_shading(u3dmesh * target_object, double outline_width, double line_colour_r, double line_colour_g, double line_colour_b, double line_colour_a)
  1568. double get_bone_index(u3dmesh * target_object, string bone_name)
  1569. double get_bone_count(u3dmesh * target_object)
  1570. double get_bone_parent(u3dmesh * target_object, double bone_index)
  1571. double set_bone_rotation(u3dmesh * target_object, double bone_index, double rotation_x, double rotation_y, double rotation_z)
  1572. double set_bone_frame(u3dmesh * target_object, double bone_index, double frame, double effect_child_bones)
  1573. double start_pose_interpolation(u3dmesh * target_object, double destination_frame, double interpolation_duration)
  1574. double copy_animation(u3dmesh * target_object, string file, string password, double rotation_keys_only)
  1575. double get_mesh_count(u3dmesh * target_object)
  1576. double get_locked_mesh_triangle_count(double locked_mesh_index)
  1577. double get_locked_mesh_vertex_count(double locked_mesh_index)
  1578. double lock_mesh(u3dmesh * target_object, double locked_mesh_index, double mesh_index, double frame, double lod)
  1579. double set_locked_mesh_vertex(double locked_mesh_index, double vertex_index, double value_index, double new_value)
  1580. double set_locked_mesh_vertex(double locked_mesh_index, double vertex_index, double value_index)
  1581. double get_locked_mesh_triangle(double locked_mesh_index, double triangle_index, double vertex_index)
  1582. double set_locked_mesh_triangle_material(double locked_mesh_index, double triangle_index, double new_material_index)
  1583. double set_locked_mesh_triangle(double locked_mesh_index, double triangle_index, double vertex_index_a, double vertex_index_b, double vertex_index_c)
  1584. double get_locked_mesh_triangle(double locked_mesh_index, double triangle_index)
  1585. double unlocked_mesh(double locked_mesh_index)
  1586. double get_material_index(u3dmesh * target_object, string material_name)
  1587. double get_material_count(u3dmesh * target_object)
  1588. double set_model_material(u3dmesh * target_object, double material_index, double colour_r, double colour_g, double colour_b, double colour_a)
  1589. double set_model_material_emissive(u3dmesh * target_object, double material_index, double colour_r, double colour_g, double colour_b)
  1590. double set_model_material_specular(u3dmesh * target_object, double material_index, double colour_r, double colour_g, double colour_b, double power)
  1591. double set_material_environment_map(u3dmesh * target_object, double material_index, double texture_index)
  1592. double switch_alpha_blending(u3dmesh * target_object, double enable_alpha_blending)
  1593. double switch_alpha_blending(u3dwall * target_object, double enable_alpha_blending)
  1594. double switch_alpha_blending(u3dfloor * target_object, double enable_alpha_blending)
  1595. double switch_alpha_blending(u3dcube * target_object, double enable_alpha_blending)
  1596. double switch_alpha_blending(u3dpolygon * target_object, double enable_alpha_blending)
  1597. double switch_alpha_blending(u3d2d * target_object, double enable_alpha_blending)
  1598. double switch_alpha_blending(u3dprimitive * target_object, double enable_alpha_blending
  1599. double get_simultaneous_texture_count()
  1600. double set_material_stage_texture(u3dmesh * target_object, double material_index, double texture_stage, double texture_index)
  1601. double set_material_tex_coord(u3dmesh * target_object, double material_index, double texture_stage, double texture_coordinate_index)
  1602. double set_material_stage_texture_operation(u3dmesh * target_object, double material_index, double texture_stage, double texture_operation)
  1603. double apply_parallax_and_bump_mapping(u3dmesh * target_object, double material_index, double normal_and_height_map_index, double parallax_factor, u3dlightdirectional * directional_light, u3dlightpoint * point_light1, u3dlightpoint * point_light2)
  1604. double get_supported_ps_version()
  1605. double load_material_effect(u3dmesh * target_object, double material_index, string ufx_file)
  1606. double create_material_vs_effect(u3dmesh * target_object, double material_index, string vertex_shader_file)
  1607. double set_material_effect_light_source(u3dmesh * target_object, double material_index, double light_source1_u3d_index, light_source2_u3d_index, double light_source3_u3d_index)
  1608. double set_material_effect_vs_constant(u3dmesh * target_object, double material_index, double vs_constant_index, double value1, double value2, double value3, double value4)
  1609. double set_material_effect_ps_constant(u3dmesh * target_object, double material_index, double ps_constant_index, double value1, double value2, double value3, double value4)
  1610. double set_object_solidity(u3dmesh * target_object, double solidity_state, double global_solidity_state)
  1611. double set_object_solidity(u3dwall * target_object, double solidity_state, double global_solidity_state)
  1612. double set_object_solidity(u3dfloor * target_object, double solidity_state, double global_solidity_state)
  1613. double set_object_solidity(u3dcube * target_object, double solidity_state, double global_solidity_state)
  1614. double set_object_solidity(u3dpolygon * target_object, double solidity_state, double global_solidity_state)
  1615. double set_object_solidity(u3d2d * target_object, double solidity_state, double global_solidity_state)
  1616. double set_object_solidity(u3dprimitive * target_object, double solidity_state, double global_solidity_state)
  1617. double set_object_solidity(u3dterrain * target_object, double solidity_state, double global_solidity_state)
  1618. double attempt_move_to_position(double output_vector_id, u3dmesh * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1619. double attempt_move_to_position(double output_vector_id, u3dwall * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1620. double attempt_move_to_position(double output_vector_id, u3dfloor * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1621. double attempt_move_to_position(double output_vector_id, u3dcube * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1622. double attempt_move_to_position(double output_vector_id, u3dpolygon * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1623. double attempt_move_to_position(double output_vector_id, u3d2d * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1624. double attempt_move_to_position(double output_vector_id, u3dprimitive * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1625. double attempt_move_to_position(double output_vector_id, u3dterrain * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1626. double attempt_move_to_position(double output_vector_id, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1627. double check_swept_elliposiod_intersection(u3dmesh * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1628. double check_swept_elliposiod_intersection(u3dwall * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1629. double check_swept_elliposiod_intersection(u3dfloor * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1630. double check_swept_elliposiod_intersection(u3dcube * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1631. double check_swept_elliposiod_intersection(u3dpolygon * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1632. double check_swept_elliposiod_intersection(u3d2d * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1633. double check_swept_elliposiod_intersection(u3dprimitive * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1634. double check_swept_elliposiod_intersection(u3dterrain * target_object, double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1635. double check_swept_elliposiod_intersection(double x, double y, double z, double target_x, double target_y, double target_z, double rotx, double roty, double rotz, double scalingx, double scalingy, double scalingz, double room_index)
  1636. double get_triangle_intersection_count()
  1637. double get_intersection_time(double intersected_triangle_index)
  1638. double get_intersection_position(double output_vector_id, double intersected_triangle_index)
  1639. double get_intersected_triangle_normal(double output_vector_id, double intersected_triangle_index)
  1640. double get_push_away_vector(double output_vector_id, double intersected_triangle_index)
  1641. double get_triangle_height_at_pos(u3dterrain * target_object, double x, double y)
  1642. double check_ray_intersection(u3dmesh * target_object, double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1643. double check_ray_intersection(u3dwall * target_object, double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1644. double check_ray_intersection(u3dfloor * target_object, double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1645. double check_ray_intersection(u3dcube * target_object, double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1646. double check_ray_intersection(u3dpolygon * target_object, double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1647. double check_ray_intersection(u3d2d * target_object, double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1648. double check_ray_intersection(u3dprimitive * target_object, double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1649. double check_ray_intersection(double ray_origin_x, double ray_origin_y, double ray_origin_z, double ray_direction_longitude, double ray_direction_latitude, double room_index)
  1650. double get_ray_tracing_normal(double output_vector_id)
  1651. double get_intersected_material_index()
  1652. double set_terrain_lod_factors(u3dterrain * target_object, double factorlod2, double factorlod3, double factorlod4, double factorlod5)
  1653. double add_terrain_texture(u3dterrain * target_object, string diffuse_map, string alpha_map, double wrap_count_x, double wrap_count_y, double alpha_map_channel)
  1654. double apply_terrain_textures(u3dterrain * target_object)
  1655. double calculate_terrain_light_map(u3dterrain * target_object, double light_object1_u3d_index, double light_object2_u3d_index, double light_object3_u3d_index, double light_object4_u3d_index, double light_object5_u3d_index, double light_object6_u3d_index, double light_object7_u3d_index, double light_object8_u3d_index, double light_object9_u3d_index, double light_object10_u3d_index)
  1656. double set_custom_terrain_light_map(u3dterrain * target_object, double texture_index)
  1657. double get_texture_strength_at_position(u3dterrain * target_object, double texture_index, double x, double y)
  1658. double deform_terrain(u3dterrain * target_object, double deformation_center_x, double deformation_center_y, double deformation_radius, double raise_level)
  1659. double save_terrain_height_map(u3dterrain * target_object, string output_file)
  1660. double set_particle_count(u3dparticlesystem * target_object, double min_particle_creation_count, double max_particle_creation_count, double max_total_particle_count)
  1661. double set_particle_lifetime(u3dparticlesystem * target_object, double min_particle_life_time, double max_particle_life_time)
  1662. double set_particle_origin(u3dparticlesystem * target_object, double second_sphere_radius, double rotation_x, double rotation_y, double rotation_z, double scaling_x, double scaling_y, double scaling_z)
  1663. double set_particle_velocity(u3dparticlesystem * target_object, double min_longitude, double min_latitude, double min_length, double max_longitude, double max_latitude, double max_length)
  1664. double set_particle_acceleration(u3dparticlesystem * target_object, double min_longitude, double min_latitude, double min_length, double max_longitude, double max_latitude, double max_length)
  1665. double set_initial_center_repulsion(u3dparticlesystem * target_object, double repulsion_factor_x, double repulsion_factor_y, double repulsion_factor_z)
  1666. double set_initial_particle_colour(u3dparticlesystem * target_object, double min_r, double min_g, double min_b, double min_a, double max_r, double max_g, double max_b, double max_a)
  1667. double set_final_particle_colour(u3dparticlesystem * target_object, double min_r, double min_g, double min_b, double min_a, double max_r, double max_g, double max_b, double max_a)
  1668. double set_particle_size(u3dparticlesystem * target_object, double min_initial_size, double max_initial_size, double min_final_size, double max_final_size)
  1669. double set_particle_rotation(u3dparticlesystem * target_object, double min_initial_rotation, double max_initial_rotation, double min_rotation_change, double max_rotation_change)
  1670. double switch_additive_blending(u3dmesh * target_object, double enable_additive_blending)
  1671. double switch_additive_blending(u3dwall * target_object, double enable_additive_blending)
  1672. double switch_additive_blending(u3dfloor * target_object, double enable_additive_blending)
  1673. double switch_additive_blending(u3dcube * target_object, double enable_additive_blending)
  1674. double switch_additive_blending(u3dpolygon * target_object, double enable_additive_blending)
  1675. double switch_additive_blending(u3d2d * target_object, double enable_additive_blending)
  1676. double switch_additive_blending(u3dprimitive * target_object, double enable_additive_blending)
  1677. double switch_additive_blending(u3dterrain * target_object, double enable_additive_blending)
  1678. double switch_additive_blending(u3dparticlesystem * target_object, double enable_additive_blending)
  1679. double add_gravity_emitter(u3dparticlesystem * target_object, double position_x, double position_y, double position_z, double mass)
  1680. double set_gravity_emitter(u3dparticlesystem * target_object, double gravity_emitter_index, double new_position_x, double new_position_y, double new_position_z, double new_mass)
  1681. double add_modifier(u3dparticlesystem * target_object)
  1682. double set_modifier_effected_area(u3dparticlesystem * target_object, double modifier_index, double second_sphere_radius, double position_x, double position_y, double position_z, double rotation_x, double rotation_y, double rotation_z, double scaling_x, double scaling_y, double scaling_z)
  1683. double set_modifier_lifetime_change(u3dparticlesystem * target_object, double modifier_index, double lifetime_change)
  1684. double set_modifier_velocity_change(u3dparticlesystem * target_object, double modifier_index, double velocity_factor_x, double velocity_factor_y, double velocity_factor_z, double velocity_summand_x, double velocity_summand_y, double velocity_summand_z)
  1685. double set_modifier_acceleration_change(u3dparticlesystem * target_object, double modifier_index, double acceleration_factor_x, double acceleration_factor_y, double acceleration_factor_z, double acceleration_summand_x, double acceleration_summand_y, double acceleration_summand_z)
  1686. double set_modifier_new_final_colour(u3dparticlesystem * target_object, double modifier_index, double min_r, double min_g, double min_b, double min_a, double max_r, double max_g, double max_b, double max_a)
  1687. double set_modifier_new_final_size(u3dparticlesystem * target_object, double modifier_index, double min_new_final_size, double max_new_final_size)
  1688. double set_ortho(u3dcamera * target_object, double u3d_orthogonal_projection, double ortho_width, double ortho_height)
  1689. double create_texture_render_target(double index, double requested_width, double requested_height)
  1690. double get_cube_map_support()
  1691. double create_cube_texture_render_target(double index, double requested_edge_length)
  1692. double get_clipping_plane_support()
  1693. double set_clipping_plane(u3dcamera * target_object, double clipping_plane_index, double origin_x, double origin_y, double origin_z, double direction_longitude, double direction_latitude)
  1694. double render_to_texture(u3dcamera * target_object)
  1695. double render_to_cube_texture(double cube_texture_index, double camera_position_x, double camera_position_y, double camera_position_z, double colour_r, double colour_g, double colour_b, double colour_a, double room_index_1, double room_index_2, double room_index_3, double room_index_4, double room_index_5, double room_index_6, double room_index_7, double room_index_8)
  1696. double get_shadow_support()
  1697. double switch_shadows(u3dlightdirectional * target_object, double enable)
  1698. double switch_shadows(u3dlightpoint * target_object, double enable)
  1699. double switch_shadows(u3dlightspot * target_object, double enable)
  1700. double switch_shadow_casting(u3dmesh * target_object, u3dlightdirectional * target_light, double enable)
  1701. double switch_shadow_casting(u3dmesh * target_object, u3dlightpoint * target_light, double enable)
  1702. double switch_shadow_casting(u3dmesh * target_object, u3dlightspot * target_light, double enable)
  1703. double create_shadow_optimized_geometry(u3dmesh * target_object, double lod_index, double create_connection_patches)
  1704. double swtich_shadow_receiving(u3dmesh * target_object, u3dlightdirectional * target_light, double enable)
  1705. double swtich_shadow_receiving(u3dwall * target_object, u3dlightdirectional * target_light, double enable)
  1706. double swtich_shadow_receiving(u3dfloor * target_object, u3dlightdirectional * target_light, double enable)
  1707. double swtich_shadow_receiving(u3dcube * target_object, u3dlightdirectional * target_light, double enable)
  1708. double swtich_shadow_receiving(u3dpolygon * target_object, u3dlightdirectional * target_light, double enable)
  1709. double swtich_shadow_receiving(u3d2d * target_object, u3dlightdirectional * target_light, double enable)
  1710. double swtich_shadow_receiving(u3dprimitive * target_object, u3dlightdirectional * target_light, double enable)
  1711. double swtich_shadow_receiving(u3dterrain * target_object, u3dlightdirectional * target_light, double enable)
  1712. double set_pss_texture(u3dpssshader * target_object, double texture_stage, double texture_index)
  1713. double set_pss_vs_constant(u3dpssshader * target_object, double vs_constant_index, double value_1, double value_2, double value_3, double value_4)
  1714. double set_pss_ps_constant(u3dpssshader * target_object, double ps_constant_index, double value_1, double value_2, double value_3, double value_4)
  1715. double set_pss_filter(u3dpssshader * target_object, double texture_stage, double filter_type)
  1716. double set_object_room(u3dmesh * target_object, double room_index)
  1717. double set_object_room(u3dlightdirectional * target_object, double room_index)
  1718. double set_object_room(u3dlightpoint * target_object, double room_index)
  1719. double set_object_room(u3dlightspot * target_object, double room_index)
  1720. double set_object_room(u3dterrain * target_object, double room_index)
  1721. double set_object_room(u3dparticlesystem * target_object, double room_index)
  1722. double set_object_room(u3dwall * target_object, double room_index)
  1723. double set_object_room(u3dfloor * target_object, double room_index)
  1724. double set_object_room(u3dcube * target_object, double room_index)
  1725. double set_object_room(u3dpolygon * target_object, double room_index)
  1726. double set_object_room(u3d2d * target_object, double room_index)
  1727. double set_object_room(u3dprimitive * target_object, double room_index)
  1728. double set_object_room(u3dpssshader * target_object, double room_index)
  1729. double set_object_room(u3dcamera * target_object, double room_index)
  1730. double set_room_visibility(u3dcamera * target_object, double room_index, double new_visibility_state)
  1731. double create_portal(double origin_x, double origin_y, double origin_z, double facing_direction_longitude, double facing_direction_latitude, double radius, double room_index_1, double room_index_2)
  1732. double open_portal(double portal_index, double open_portal)
  1733. double destroy_portal(double portal_index)
  1734. double switch_portal_engine(u3dcamera * target_object, double use_portal_engine)
  1735. double set_room_visibility_enforcement(u3dcamera * target_object, double room_index, double new_visibility_enforcement_state)
  1736. double get_object_room(u3dmesh * target_object)
  1737. double get_object_room(u3dlightdirectional * target_object)
  1738. double get_object_room(u3dlightpoint * target_object)
  1739. double get_object_room(u3dlightspot * target_object)
  1740. double get_object_room(u3dterrain * target_object)
  1741. double get_object_room(u3dparticlesystem * target_object)
  1742. double get_object_room(u3dwall * target_object)
  1743. double get_object_room(u3dfloor * target_object)
  1744. double get_object_room(u3dcube * target_object)
  1745. double get_object_room(u3dpolygon * target_object)
  1746. double get_object_room(u3d2d * target_object)
  1747. double get_object_room(u3dprimitive * target_object)
  1748. double get_object_room(u3dpssshader * target_object)
  1749. double get_object_room(u3dcamera * target_object)
  1750. double get_room_visibility(u3dcamera * target_object, double room_index)
  1751. double set_room_ambient(double room_index, double ambient_colour_r, double ambient_colour_g, double ambient_colour_b)
  1752. double get_object_transformation(u3dmesh * target_object)
  1753. double get_object_transformation(u3dwall * target_object)
  1754. double get_object_transformation(u3dfloor * target_object)
  1755. double get_object_transformation(u3dcube * target_object)
  1756. double get_object_transformation(u3dpolygon * target_object)
  1757. double get_object_transformation(u3d2d * target_object)
  1758. double get_object_transformation(u3dprimitive * target_object)
  1759. double get_bone_transformation(u3dmesh * target_object, double matrix_index, double bone_index)
  1760. double update_skeleton(u3dmesh * target_object)
  1761. double get_mesh_occurence_count(u3dmesh * target_object, double mesh_index)
  1762. double create_translation_matrix(double matrix_id, double translation_x, double translation_y, double translation_z)
  1763. double create_scaling_matrix(double matrix_id, double scaling_x, double scaling_y, double scaling_z)
  1764. double create_rotation_matrix(double matrix_id, double rotation_x, double rotation_y, double rotation_z)
  1765. double create_transformation_matrix(double matrix_id, double translation_x, double translation_y, double translation_z, double rotation_x, double rotation_y, double rotation_z, double scaling_x, double scaling_y, double scaling_z)
  1766. double copy_matrix(double output_matrix_id, double input_matrix_id)
  1767. double transform_matrix(double output_matrix_id, double first_input_matrix_id, double second_input_matrix_id)
  1768. double invert_matrix(double output_matrix_id, double input_matrix_id)
  1769. double interpolate_matrices(double output_matrix_id, double first_input_matrix_id, double second_input_matrix_id, double interpolation_factor)
  1770. double get_matrix_entry(double matrix_id, double line_index, double column_index)
  1771. double release_matrix(double matrix_id)
  1772. double screen_coord_to_vector(double output_vector_id, double screen_coord_x, double screen_coord_y, u3dcamera * target_object)
  1773. double check_bounding_box_visibility(double minimum_vector_id, double maximum_vector_id, double bounding_box_transformation_id, u3dcamera * target_object)
  1774. double create_vector(double output_vector_id, double x, double y, double z)
  1775. double copy_vector(double output_vector_id, double input_vector_id)
  1776. double coord_to_screen(double output_vector_id, double x, double y, double z, u3dcamera * target_object)
  1777. double create_direction_vector(double output_vector_id, double longitude, double latitude)
  1778. double calculate_vector_sum(double output_vector_id, double first_vector_id, double second_vector_id)
  1779. double calculate_vector_diffrence(double output_vector_id, double first_vector_id, double second_vector_id)
  1780. double calculate_vector_scalar_product(double output_vector_id, double input_vector_id, double scalar_factor)
  1781. double normalize_vector(double input_output_vector_id)
  1782. double calculate_vector_length(double vector_id)
  1783. double calculate_vector_longitude(double vector_id)
  1784. double calculate_vector_latitude(double vector_id)
  1785. double transform_vector(double output_vector_id, double input_vector_id, double transformation_matrix_id)
  1786. double transform_vector_ex(double output_vector_id, double input_vector_id, double transformation_matrix_id, double apply_rotation, double apply_translation, double apply_scaling)
  1787. double calculate_dot_product(double first_vector_id, double second_vector_id)
  1788. double calculate_cross_product(double output_vector_id, double first_vector_id, double second_vector_id)
  1789. double compute_matrix_translation(double output_vector_id, double input_matrix_id)
  1790. double compute_matrix_scaling(double output_vector_id, double input_matrix_id)
  1791. double compute_matrix_rotation_angles(double output_vector_id, double input_matrix_id)
  1792. double apply_transformation_matrix(u3dmesh * target_object, double matrix_id)
  1793. double get_vector(double vector_id, double vector_element_id)
  1794. double release_vector(double vector_id)
  1795. double load_height_map(double texture_index, string source_file, double height_factor)
  1796. double load_cube_texture(string file_scheme, double texture_index, double cube_width)
  1797. double get_drawn_triangle_count()
  1798. double get_drawn_call_count()
  1799. double switch_view()
  1800. double set_filter(double texture_filter, double texture_stage)
  1801. double set_mip_map_filter(double texture_filter, double texture_stage)
  1802. double swtich_wire_frame_mode(u3dmesh * target_object, double enable_wireframe_mode)
  1803. double swtich_wire_frame_mode(u3dterrain * target_object, double enable_wireframe_mode)
  1804. double set_mip_map_count(double new_mip_map_count)
  1805. double set_texture_path(string texture_folder)
Advertisement
Add Comment
Please, Sign In to add comment