SHARE
TWEET

libblender.py - ctypes oct4th

a guest Oct 4th, 2010 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## generated by RPythonic 0.1.6
  2. ## http://code.google.com/p/rpythonic/
  3. import ctypes
  4. from ctypes import *
  5. _lib = ctypes.CDLL('lib/libblender.so')
  6. def _c_external_function( name, args=[], result=ctypes.c_void_p ):
  7.         """Build and apply a ctypes prototype complete with parameter flags"""
  8.         atypes = []; aflags = []
  9.         for arg in args:
  10.                 atypes.append(arg[1])
  11.                 aflags.append((arg[2], arg[0]) + arg[3:])
  12.         try: return ctypes.CFUNCTYPE(result, *atypes)((name, _lib), tuple(aflags))
  13.         except: print( 'undefined symbol: can not load->', name)
  14. #size_t                                                 <TypeDecl=int>
  15. #__builtin_va_list                                                      <TypeDecl=int>
  16. #__gnuc_va_list                                                 <TypeDecl=int>
  17. #__int8_t                                                       <TypeDecl=int>
  18. #__uint8_t                                                      <TypeDecl=int>
  19. #__int16_t                                                      <TypeDecl=int>
  20. #__uint16_t                                                     <TypeDecl=int>
  21. #__int_least16_t                                                        <TypeDecl=int>
  22. #__uint_least16_t                                                       <TypeDecl=int>
  23. #__int32_t                                                      <TypeDecl=int>
  24. #__uint32_t                                                     <TypeDecl=int>
  25. #__int_least32_t                                                        <TypeDecl=int>
  26. #__uint_least32_t                                                       <TypeDecl=int>
  27. #_LOCK_T                                                        <TypeDecl=int>
  28. #_LOCK_RECURSIVE_T                                                      <TypeDecl=int>
  29. #_off_t                                                 <TypeDecl=int>
  30. #__dev_t                                                        <TypeDecl=int>
  31. #__uid_t                                                        <TypeDecl=int>
  32. #__gid_t                                                        <TypeDecl=int>
  33. #_off64_t                                                       <TypeDecl=int>
  34. #_fpos_t                                                        <TypeDecl=int>
  35. #_ssize_t                                                       <TypeDecl=int>
  36. #wint_t                                                 <TypeDecl=int>
  37. #_mbstate_t                                                     <TypeDecl=int>
  38. #_flock_t                                                       <TypeDecl=int>
  39. #_iconv_t                                                       <TypeDecl=int>
  40. #__ULong                                                        <TypeDecl=int>
  41. #__FILE                                                 <TypeDecl=int>
  42. #ptrdiff_t                                                      <TypeDecl=int>
  43. #wchar_t                                                        <TypeDecl=int>
  44. #__off_t                                                        <TypeDecl=int>
  45. #__pid_t                                                        <TypeDecl=int>
  46. #__loff_t                                                       <TypeDecl=int>
  47. #u_char                                                 <TypeDecl=int>
  48. #u_short                                                        <TypeDecl=int>
  49. #u_int                                                  <TypeDecl=int>
  50. #u_long                                                 <TypeDecl=int>
  51. #ushort                                                 <TypeDecl=int>
  52. #uint                                                   <TypeDecl=int>
  53. #clock_t                                                        <TypeDecl=int>
  54. #time_t                                                 <TypeDecl=int>
  55. #daddr_t                                                        <TypeDecl=int>
  56. #caddr_t                                                        <TypeDecl=int>
  57. #ino_t                                                  <TypeDecl=int>
  58. #off_t                                                  <TypeDecl=int>
  59. #dev_t                                                  <TypeDecl=int>
  60. #uid_t                                                  <TypeDecl=int>
  61. #gid_t                                                  <TypeDecl=int>
  62. #pid_t                                                  <TypeDecl=int>
  63. #key_t                                                  <TypeDecl=int>
  64. #ssize_t                                                        <TypeDecl=int>
  65. #mode_t                                                 <TypeDecl=int>
  66. #nlink_t                                                        <TypeDecl=int>
  67. #fd_mask                                                        <TypeDecl=int>
  68. #_types_fd_set                                                  <TypeDecl=int>
  69. #clockid_t                                                      <TypeDecl=int>
  70. #timer_t                                                        <TypeDecl=int>
  71. #useconds_t                                                     <TypeDecl=int>
  72. #suseconds_t                                                    <TypeDecl=int>
  73. #FILE                                                   <TypeDecl=int>
  74. #fpos_t                                                 <TypeDecl=int>
  75. #cookie_read_function_t                                                 <TypeDecl=int>
  76. #cookie_write_function_t                                                        <TypeDecl=int>
  77. #cookie_seek_function_t                                                 <TypeDecl=int>
  78. #cookie_close_function_t                                                        <TypeDecl=int>
  79. #cookie_io_functions_t                                                  <TypeDecl=int>
  80. #div_t                                                  <TypeDecl=int>
  81. #ldiv_t                                                 <TypeDecl=int>
  82. #lldiv_t                                                        <TypeDecl=int>
  83. #sigset_t                                                       <TypeDecl=int>
  84. #_sig_func_ptr                                                  <TypeDecl=int>
  85. #sig_atomic_t                                                   <TypeDecl=int>
  86. #__tzrule_type                                                  <TypeDecl=int>
  87. #__tzinfo_type                                                  <TypeDecl=int>
  88. #mbstate_t                                                      <TypeDecl=int>
  89. #uintptr_t                                                      <TypeDecl=long>
  90. #intptr_t                                                       <TypeDecl=long>
  91. #pthread_rwlock_t                                                       <TypeDecl=union>
  92. #pthread_mutex_t                                                        <TypeDecl=union>
  93. MEM_allocN_len = _c_external_function(          "MEM_allocN_len", [],
  94.         ctypes.c_size_t )
  95.  
  96. MEM_freeN = _c_external_function(               "MEM_freeN", [],
  97.         ctypes.c_short )
  98.  
  99. MEM_testN = _c_external_function(               "MEM_testN", [],
  100.         ctypes.c_short )
  101.  
  102. MEM_dupallocN = _c_external_function(           "MEM_dupallocN", [],
  103.         ctypes.c_void_p )
  104.  
  105. MEM_reallocN = _c_external_function(            "MEM_reallocN", [
  106.         ("vmemh", ctypes.POINTER( ctypes.c_void_p ), 1),
  107.         ("len", ctypes.c_size_t, 1),],
  108.         ctypes.c_void_p )
  109.  
  110. MEM_callocN = _c_external_function(             "MEM_callocN", [
  111.         ("len", ctypes.c_size_t, 1),
  112.         ("str", ctypes.c_char_p, 1),],
  113.         ctypes.c_void_p )
  114.  
  115. MEM_mallocN = _c_external_function(             "MEM_mallocN", [
  116.         ("len", ctypes.c_size_t, 1),
  117.         ("str", ctypes.c_char_p, 1),],
  118.         ctypes.c_void_p )
  119.  
  120. MEM_mapallocN = _c_external_function(           "MEM_mapallocN", [
  121.         ("len", ctypes.c_size_t, 1),
  122.         ("str", ctypes.c_char_p, 1),],
  123.         ctypes.c_void_p )
  124.  
  125. MEM_printmemlist_pydict = _c_external_function(         "MEM_printmemlist_pydict", [],
  126.         ctypes.c_void_p )
  127.  
  128. MEM_printmemlist = _c_external_function(                "MEM_printmemlist", [],
  129.         ctypes.c_void_p )
  130.  
  131. MEM_callbackmemlist = _c_external_function(             "MEM_callbackmemlist", [
  132.         ("func", ctypes.c_void_p, 1),],
  133.         ctypes.c_void_p )
  134.  
  135. MEM_printmemlist_stats = _c_external_function(          "MEM_printmemlist_stats", [],
  136.         ctypes.c_void_p )
  137.  
  138. MEM_set_error_callback = _c_external_function(          "MEM_set_error_callback", [
  139.         ("func", ctypes.c_void_p, 1),],
  140.         ctypes.c_void_p )
  141.  
  142. MEM_check_memory_integrity = _c_external_function(              "MEM_check_memory_integrity", [],
  143.         ctypes.c_int )
  144.  
  145. MEM_set_lock_callback = _c_external_function(           "MEM_set_lock_callback", [
  146.         ("lock", ctypes.c_void_p, 1),
  147.         ("unlock", ctypes.c_void_p, 1),],
  148.         ctypes.c_void_p )
  149.  
  150. MEM_set_memory_debug = _c_external_function(            "MEM_set_memory_debug", [],
  151.         ctypes.c_void_p )
  152.  
  153. MEM_get_memory_in_use = _c_external_function(           "MEM_get_memory_in_use", [],
  154.         ctypes.c_void_p )
  155.  
  156. MEM_get_mapped_memory_in_use = _c_external_function(            "MEM_get_mapped_memory_in_use", [],
  157.         ctypes.c_void_p )
  158.  
  159. MEM_get_memory_blocks_in_use = _c_external_function(            "MEM_get_memory_blocks_in_use", [],
  160.         ctypes.c_int )
  161.  
  162. MEM_reset_peak_memory = _c_external_function(           "MEM_reset_peak_memory", [],
  163.         ctypes.c_void_p )
  164.  
  165. MEM_get_peak_memory = _c_external_function(             "MEM_get_peak_memory", [],
  166.         ctypes.c_void_p )
  167.  
  168. #class bArgs(ctypes.Structure): pass            # typedef or forward reference #
  169. #class bArgs(ctypes.Structure): pass            # typedef or forward reference #
  170. BA_ArgCallback = _c_external_function(          "BA_ArgCallback", [
  171.         ("argc", ctypes.c_int, 1),
  172.         ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  173.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  174.         ctypes.c_int )
  175.  
  176. BLI_argsInit = _c_external_function(            "BLI_argsInit", [
  177.         ("argc", ctypes.c_int, 1),
  178.         ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),],
  179.         ctypes.c_void_p )
  180.  
  181. BLI_argsFree = _c_external_function(            "BLI_argsFree", [
  182.         ("ba", ctypes.c_void_p, 1),],
  183.         ctypes.c_void_p )
  184.  
  185. BLI_argsAdd = _c_external_function(             "BLI_argsAdd", [
  186.         ("ba", ctypes.c_void_p, 1),
  187.         ("pass", ctypes.c_int, 1),
  188.         ("short_arg", ctypes.c_char_p, 1),
  189.         ("long_arg", ctypes.c_char_p, 1),
  190.         ("doc", ctypes.c_char_p, 1),
  191.         ("cb", ctypes.c_void_p, 1),
  192.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  193.         ctypes.c_void_p )
  194.  
  195. BLI_argsAddCase = _c_external_function(         "BLI_argsAddCase", [
  196.         ("ba", ctypes.c_void_p, 1),
  197.         ("pass", ctypes.c_int, 1),
  198.         ("short_arg", ctypes.c_char_p, 1),
  199.         ("short_case", ctypes.c_int, 1),
  200.         ("long_arg", ctypes.c_char_p, 1),
  201.         ("long_case", ctypes.c_int, 1),
  202.         ("doc", ctypes.c_char_p, 1),
  203.         ("cb", ctypes.c_void_p, 1),
  204.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  205.         ctypes.c_void_p )
  206.  
  207. BLI_argsParse = _c_external_function(           "BLI_argsParse", [
  208.         ("ba", ctypes.c_void_p, 1),
  209.         ("pass", ctypes.c_int, 1),
  210.         ("default_cb", ctypes.c_void_p, 1),
  211.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  212.         ctypes.c_void_p )
  213.  
  214. BLI_argsPrintArgDoc = _c_external_function(             "BLI_argsPrintArgDoc", [
  215.         ("ba", ctypes.c_void_p, 1),
  216.         ("arg", ctypes.c_char_p, 1),],
  217.         ctypes.c_void_p )
  218.  
  219. BLI_argsPrintOtherDoc = _c_external_function(           "BLI_argsPrintOtherDoc", [
  220.         ("ba", ctypes.c_void_p, 1),],
  221.         ctypes.c_void_p )
  222.  
  223. BLI_argsPrint = _c_external_function(           "BLI_argsPrint", [
  224.         ("ba", ctypes.c_void_p, 1),],
  225.         ctypes.c_void_p )
  226.  
  227. BLI_argsArgv = _c_external_function(            "BLI_argsArgv", [
  228.         ("ba", ctypes.c_void_p, 1),],
  229.         ctypes.c_char_p )
  230.  
  231. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  232. BLI_threadapi_init = _c_external_function(              "BLI_threadapi_init", [],
  233.         ctypes.c_void_p )
  234.  
  235. BLI_init_threads = _c_external_function(                "BLI_init_threads", [
  236.         ("threadbase", ctypes.c_void_p, 1),
  237.         ("do_thread", ctypes.c_void_p, 1),
  238.         ("tot", ctypes.c_int, 1),],
  239.         ctypes.c_void_p )
  240.  
  241. BLI_available_threads = _c_external_function(           "BLI_available_threads", [
  242.         ("threadbase", ctypes.c_void_p, 1),],
  243.         ctypes.c_int )
  244.  
  245. BLI_available_thread_index = _c_external_function(              "BLI_available_thread_index", [
  246.         ("threadbase", ctypes.c_void_p, 1),],
  247.         ctypes.c_int )
  248.  
  249. BLI_insert_thread = _c_external_function(               "BLI_insert_thread", [
  250.         ("threadbase", ctypes.c_void_p, 1),
  251.         ("callerdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  252.         ctypes.c_void_p )
  253.  
  254. BLI_remove_thread = _c_external_function(               "BLI_remove_thread", [
  255.         ("threadbase", ctypes.c_void_p, 1),
  256.         ("callerdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  257.         ctypes.c_void_p )
  258.  
  259. BLI_remove_thread_index = _c_external_function(         "BLI_remove_thread_index", [
  260.         ("threadbase", ctypes.c_void_p, 1),
  261.         ("index", ctypes.c_int, 1),],
  262.         ctypes.c_void_p )
  263.  
  264. BLI_remove_threads = _c_external_function(              "BLI_remove_threads", [
  265.         ("threadbase", ctypes.c_void_p, 1),],
  266.         ctypes.c_void_p )
  267.  
  268. BLI_end_threads = _c_external_function(         "BLI_end_threads", [
  269.         ("threadbase", ctypes.c_void_p, 1),],
  270.         ctypes.c_void_p )
  271.  
  272. BLI_thread_is_main = _c_external_function(              "BLI_thread_is_main", [],
  273.         ctypes.c_int )
  274.  
  275. BLI_system_thread_count = _c_external_function(         "BLI_system_thread_count", [],
  276.         ctypes.c_int )
  277.  
  278. BLI_lock_thread = _c_external_function(         "BLI_lock_thread", [
  279.         ("type", ctypes.c_int, 1),],
  280.         ctypes.c_void_p )
  281.  
  282. BLI_unlock_thread = _c_external_function(               "BLI_unlock_thread", [
  283.         ("type", ctypes.c_int, 1),],
  284.         ctypes.c_void_p )
  285.  
  286. #ThreadMutex                                                    <TypeDecl=pthread_mutex_t>
  287. BLI_mutex_init = _c_external_function(          "BLI_mutex_init", [
  288.         ("mutex", ctypes.c_void_p, 1),],
  289.         ctypes.c_void_p )
  290.  
  291. BLI_mutex_lock = _c_external_function(          "BLI_mutex_lock", [
  292.         ("mutex", ctypes.c_void_p, 1),],
  293.         ctypes.c_void_p )
  294.  
  295. BLI_mutex_unlock = _c_external_function(                "BLI_mutex_unlock", [
  296.         ("mutex", ctypes.c_void_p, 1),],
  297.         ctypes.c_void_p )
  298.  
  299. BLI_mutex_end = _c_external_function(           "BLI_mutex_end", [
  300.         ("mutex", ctypes.c_void_p, 1),],
  301.         ctypes.c_void_p )
  302.  
  303. #ThreadRWMutex                                                  <TypeDecl=pthread_rwlock_t>
  304. BLI_rw_mutex_init = _c_external_function(               "BLI_rw_mutex_init", [
  305.         ("mutex", ctypes.c_void_p, 1),],
  306.         ctypes.c_void_p )
  307.  
  308. BLI_rw_mutex_lock = _c_external_function(               "BLI_rw_mutex_lock", [
  309.         ("mutex", ctypes.c_void_p, 1),
  310.         ("mode", ctypes.c_int, 1),],
  311.         ctypes.c_void_p )
  312.  
  313. BLI_rw_mutex_unlock = _c_external_function(             "BLI_rw_mutex_unlock", [
  314.         ("mutex", ctypes.c_void_p, 1),],
  315.         ctypes.c_void_p )
  316.  
  317. BLI_rw_mutex_end = _c_external_function(                "BLI_rw_mutex_end", [
  318.         ("mutex", ctypes.c_void_p, 1),],
  319.         ctypes.c_void_p )
  320.  
  321. #class ThreadedWorker(ctypes.Structure): pass           # typedef or forward reference #
  322. BLI_create_worker = _c_external_function(               "BLI_create_worker", [
  323.         ("do_thread", ctypes.c_void_p, 1),
  324.         ("tot", ctypes.c_int, 1),
  325.         ("sleep_time", ctypes.c_int, 1),],
  326.         ctypes.c_void_p )
  327.  
  328. BLI_end_worker = _c_external_function(          "BLI_end_worker", [
  329.         ("worker", ctypes.c_void_p, 1),],
  330.         ctypes.c_void_p )
  331.  
  332. BLI_destroy_worker = _c_external_function(              "BLI_destroy_worker", [
  333.         ("worker", ctypes.c_void_p, 1),],
  334.         ctypes.c_void_p )
  335.  
  336. BLI_insert_work = _c_external_function(         "BLI_insert_work", [
  337.         ("worker", ctypes.c_void_p, 1),
  338.         ("param", ctypes.POINTER( ctypes.c_void_p ), 1),],
  339.         ctypes.c_void_p )
  340.  
  341. #class ThreadQueue(ctypes.Structure): pass              # typedef or forward reference #
  342. BLI_thread_queue_init = _c_external_function(           "BLI_thread_queue_init", [],
  343.         ctypes.c_void_p )
  344.  
  345. BLI_thread_queue_free = _c_external_function(           "BLI_thread_queue_free", [
  346.         ("queue", ctypes.c_void_p, 1),],
  347.         ctypes.c_void_p )
  348.  
  349. BLI_thread_queue_push = _c_external_function(           "BLI_thread_queue_push", [
  350.         ("queue", ctypes.c_void_p, 1),
  351.         ("work", ctypes.POINTER( ctypes.c_void_p ), 1),],
  352.         ctypes.c_void_p )
  353.  
  354. BLI_thread_queue_pop = _c_external_function(            "BLI_thread_queue_pop", [
  355.         ("queue", ctypes.c_void_p, 1),],
  356.         ctypes.c_void_p )
  357.  
  358. BLI_thread_queue_pop_timeout = _c_external_function(            "BLI_thread_queue_pop_timeout", [
  359.         ("queue", ctypes.c_void_p, 1),
  360.         ("ms", ctypes.c_int, 1),],
  361.         ctypes.c_void_p )
  362.  
  363. BLI_thread_queue_size = _c_external_function(           "BLI_thread_queue_size", [
  364.         ("queue", ctypes.c_void_p, 1),],
  365.         ctypes.c_int )
  366.  
  367. BLI_thread_queue_nowait = _c_external_function(         "BLI_thread_queue_nowait", [
  368.         ("queue", ctypes.c_void_p, 1),],
  369.         ctypes.c_void_p )
  370.  
  371. #GEN_errorstream                                                        <TypeDecl=FILE>
  372. #GEN_userstream                                                 <TypeDecl=FILE>
  373. GEN_init_messaging_system = _c_external_function(               "GEN_init_messaging_system", [],
  374.         ctypes.c_void_p )
  375.  
  376. class Link(ctypes.Structure): _fields_=[
  377.         ( "next", ctypes.c_void_p ),
  378.         ( "prev", ctypes.c_void_p ),]
  379.  
  380. class LinkData(ctypes.Structure): _fields_=[
  381.         ( "next", ctypes.c_void_p ),
  382.         ( "prev", ctypes.c_void_p ),
  383.         ( "data", ctypes.POINTER( ctypes.c_void_p ) ),]
  384.  
  385. class ListBase(ctypes.Structure): _fields_=[
  386.         ( "first", ctypes.POINTER( ctypes.c_void_p ) ),
  387.         ( "last", ctypes.POINTER( ctypes.c_void_p ) ),]
  388.  
  389. #class Library(ctypes.Structure): pass          # typedef or forward reference #
  390. #class FileData(ctypes.Structure): pass         # typedef or forward reference #
  391. #class ID(ctypes.Structure): pass               # typedef or forward reference #
  392. class IDPropertyData(ctypes.Structure): _fields_=[
  393.         ( "pointer", ctypes.POINTER( ctypes.c_void_p ) ),
  394.         ( "group", ctypes.c_void_p ),
  395.         ( "val", ctypes.c_int ),
  396.         ( "val2", ctypes.c_int ),]
  397.  
  398. class IDProperty(ctypes.Structure): _fields_=[
  399.         ( "next", ctypes.c_void_p ),
  400.         ( "prev", ctypes.c_void_p ),
  401.         ( "type", ctypes.c_char ),
  402.         ( "subtype", ctypes.c_char ),
  403.         ( "flag", ctypes.c_short ),
  404.         ( "name", ctypes.c_char ),
  405.         ( "saved", ctypes.c_int ),
  406.         ( "data", ctypes.c_void_p ),
  407.         ( "len", ctypes.c_int ),
  408.         ( "totallen", ctypes.c_int ),]
  409.  
  410. class ID(ctypes.Structure): _fields_=[
  411.         ( "next", ctypes.POINTER( ctypes.c_void_p ) ),
  412.         ( "prev", ctypes.POINTER( ctypes.c_void_p ) ),
  413.         ( "newid", ctypes.c_void_p ),
  414.         ( "lib", ctypes.c_void_p ),
  415.         ( "name", ctypes.c_char ),
  416.         ( "us", ctypes.c_short ),
  417.         ( "flag", ctypes.c_short ),
  418.         ( "icon_id", ctypes.c_int ),
  419.         ( "properties", ctypes.c_void_p ),]
  420.  
  421. class Library(ctypes.Structure): _fields_=[
  422.         ( "id", ctypes.c_void_p ),
  423.         ( "idblock", ctypes.c_void_p ),
  424.         ( "filedata", ctypes.c_void_p ),
  425.         ( "name", ctypes.c_char ),
  426.         ( "filepath", ctypes.c_char ),
  427.         ( "tot", ctypes.c_int ),
  428.         ( "pad", ctypes.c_int ),
  429.         ( "parent", ctypes.c_void_p ),]
  430.  
  431. class PreviewImage(ctypes.Structure): _fields_=[
  432.         ( "w", ctypes.c_int ),
  433.         ( "h", ctypes.c_int ),
  434.         ( "changed", ctypes.c_short ),
  435.         ( "changed_timestamp", ctypes.c_short ),
  436.         ( "rect", ctypes.POINTER( ctypes.c_int ) ),]
  437.  
  438. class vec2s(ctypes.Structure): _fields_=[
  439.         ( "x", ctypes.c_short ),
  440.         ( "y", ctypes.c_short ),]
  441.  
  442. class vec2f(ctypes.Structure): _fields_=[
  443.         ( "x", ctypes.c_float ),
  444.         ( "y", ctypes.c_float ),]
  445.  
  446. class rcti(ctypes.Structure): _fields_=[
  447.         ( "xmin", ctypes.c_int ),
  448.         ( "xmax", ctypes.c_int ),
  449.         ( "ymin", ctypes.c_int ),
  450.         ( "ymax", ctypes.c_int ),]
  451.  
  452. class rctf(ctypes.Structure): _fields_=[
  453.         ( "xmin", ctypes.c_float ),
  454.         ( "xmax", ctypes.c_float ),
  455.         ( "ymin", ctypes.c_float ),
  456.         ( "ymax", ctypes.c_float ),]
  457.  
  458. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  459. #class Brush(ctypes.Structure): pass            # typedef or forward reference #
  460. #class World(ctypes.Structure): pass            # typedef or forward reference #
  461. #class Scene(ctypes.Structure): pass            # typedef or forward reference #
  462. #class Image(ctypes.Structure): pass            # typedef or forward reference #
  463. #class Group(ctypes.Structure): pass            # typedef or forward reference #
  464. #class Text(ctypes.Structure): pass             # typedef or forward reference #
  465. #class bNodeTree(ctypes.Structure): pass                # typedef or forward reference #
  466. #class AnimData(ctypes.Structure): pass         # typedef or forward reference #
  467. #class Editing(ctypes.Structure): pass          # typedef or forward reference #
  468. #class SceneStats(ctypes.Structure): pass               # typedef or forward reference #
  469. #class bGPdata(ctypes.Structure): pass          # typedef or forward reference #
  470. class Base(ctypes.Structure): _fields_=[
  471.         ( "next", ctypes.c_void_p ),
  472.         ( "prev", ctypes.c_void_p ),
  473.         ( "lay", ctypes.c_int ),
  474.         ( "selcol", ctypes.c_int ),
  475.         ( "flag", ctypes.c_int ),
  476.         ( "sx", ctypes.c_short ),
  477.         ( "sy", ctypes.c_short ),
  478.         ( "object", ctypes.c_void_p ),]
  479.  
  480. class AviCodecData(ctypes.Structure): _fields_=[
  481.         ( "lpFormat", ctypes.POINTER( ctypes.c_void_p ) ),
  482.         ( "lpParms", ctypes.POINTER( ctypes.c_void_p ) ),
  483.         ( "cbFormat", ctypes.c_int ),
  484.         ( "cbParms", ctypes.c_int ),
  485.         ( "fccType", ctypes.c_int ),
  486.         ( "fccHandler", ctypes.c_int ),
  487.         ( "dwKeyFrameEvery", ctypes.c_int ),
  488.         ( "dwQuality", ctypes.c_int ),
  489.         ( "dwBytesPerSecond", ctypes.c_int ),
  490.         ( "dwFlags", ctypes.c_int ),
  491.         ( "dwInterleaveEvery", ctypes.c_int ),
  492.         ( "pad", ctypes.c_int ),
  493.         ( "avicodecname", ctypes.c_char ),]
  494.  
  495. class QuicktimeCodecData(ctypes.Structure): _fields_=[
  496.         ( "cdParms", ctypes.POINTER( ctypes.c_void_p ) ),
  497.         ( "pad", ctypes.POINTER( ctypes.c_void_p ) ),
  498.         ( "cdSize", ctypes.c_int ),
  499.         ( "pad2", ctypes.c_int ),
  500.         ( "qtcodecname", ctypes.c_char ),]
  501.  
  502. class QuicktimeCodecSettings(ctypes.Structure): _fields_=[
  503.         ( "codecType", ctypes.c_int ),
  504.         ( "codecSpatialQuality", ctypes.c_int ),
  505.         ( "codec", ctypes.c_int ),
  506.         ( "codecFlags", ctypes.c_int ),
  507.         ( "colorDepth", ctypes.c_int ),
  508.         ( "codecTemporalQuality", ctypes.c_int ),
  509.         ( "minSpatialQuality", ctypes.c_int ),
  510.         ( "minTemporalQuality", ctypes.c_int ),
  511.         ( "keyFrameRate", ctypes.c_int ),
  512.         ( "bitRate", ctypes.c_int ),
  513.         ( "audiocodecType", ctypes.c_int ),
  514.         ( "audioSampleRate", ctypes.c_int ),
  515.         ( "audioBitDepth", ctypes.c_short ),
  516.         ( "audioChannels", ctypes.c_short ),
  517.         ( "audioCodecFlags", ctypes.c_int ),
  518.         ( "audioBitRate", ctypes.c_int ),
  519.         ( "pad1", ctypes.c_int ),]
  520.  
  521. class FFMpegCodecData(ctypes.Structure): _fields_=[
  522.         ( "type", ctypes.c_int ),
  523.         ( "codec", ctypes.c_int ),
  524.         ( "audio_codec", ctypes.c_int ),
  525.         ( "video_bitrate", ctypes.c_int ),
  526.         ( "audio_bitrate", ctypes.c_int ),
  527.         ( "audio_mixrate", ctypes.c_int ),
  528.         ( "audio_volume", ctypes.c_float ),
  529.         ( "gop_size", ctypes.c_int ),
  530.         ( "flags", ctypes.c_int ),
  531.         ( "rc_min_rate", ctypes.c_int ),
  532.         ( "rc_max_rate", ctypes.c_int ),
  533.         ( "rc_buffer_size", ctypes.c_int ),
  534.         ( "mux_packet_size", ctypes.c_int ),
  535.         ( "mux_rate", ctypes.c_int ),
  536.         ( "properties", ctypes.c_void_p ),]
  537.  
  538. class AudioData(ctypes.Structure): _fields_=[
  539.         ( "mixrate", ctypes.c_int ),
  540.         ( "main", ctypes.c_float ),
  541.         ( "speed_of_sound", ctypes.c_float ),
  542.         ( "doppler_factor", ctypes.c_float ),
  543.         ( "distance_model", ctypes.c_int ),
  544.         ( "flag", ctypes.c_short ),
  545.         ( "pad", ctypes.c_short ),]
  546.  
  547. class SceneRenderLayer(ctypes.Structure): _fields_=[
  548.         ( "next", ctypes.c_void_p ),
  549.         ( "prev", ctypes.c_void_p ),
  550.         ( "name", ctypes.c_char ),
  551.         ( "mat_override", ctypes.c_void_p ),
  552.         ( "light_override", ctypes.c_void_p ),
  553.         ( "lay", ctypes.c_int ),
  554.         ( "lay_zmask", ctypes.c_int ),
  555.         ( "layflag", ctypes.c_int ),
  556.         ( "pad", ctypes.c_int ),
  557.         ( "passflag", ctypes.c_int ),
  558.         ( "pass_xor", ctypes.c_int ),]
  559.  
  560. class RenderData(ctypes.Structure): _fields_=[
  561.         ( "avicodecdata", ctypes.c_void_p ),
  562.         ( "qtcodecdata", ctypes.c_void_p ),
  563.         ( "qtcodecsettings", ctypes.c_void_p ),
  564.         ( "ffcodecdata", ctypes.c_void_p ),
  565.         ( "cfra", ctypes.c_int ),
  566.         ( "sfra", ctypes.c_int ),
  567.         ( "efra", ctypes.c_int ),
  568.         ( "subframe", ctypes.c_float ),
  569.         ( "psfra", ctypes.c_int ),
  570.         ( "pefra", ctypes.c_int ),
  571.         ( "images", ctypes.c_int ),
  572.         ( "framapto", ctypes.c_int ),
  573.         ( "flag", ctypes.c_short ),
  574.         ( "threads", ctypes.c_short ),
  575.         ( "framelen", ctypes.c_float ),
  576.         ( "blurfac", ctypes.c_float ),
  577.         ( "edgeR", ctypes.c_float ),
  578.         ( "edgeG", ctypes.c_float ),
  579.         ( "edgeB", ctypes.c_float ),
  580.         ( "fullscreen", ctypes.c_short ),
  581.         ( "xplay", ctypes.c_short ),
  582.         ( "yplay", ctypes.c_short ),
  583.         ( "freqplay", ctypes.c_short ),
  584.         ( "depth", ctypes.c_short ),
  585.         ( "attrib", ctypes.c_short ),
  586.         ( "rt2", ctypes.c_short ),
  587.         ( "frame_step", ctypes.c_short ),
  588.         ( "stereomode", ctypes.c_short ),
  589.         ( "dimensionspreset", ctypes.c_short ),
  590.         ( "filtertype", ctypes.c_short ),
  591.         ( "size", ctypes.c_short ),
  592.         ( "maximsize", ctypes.c_short ),
  593.         ( "xsch", ctypes.c_short ),
  594.         ( "ysch", ctypes.c_short ),
  595.         ( "xparts", ctypes.c_short ),
  596.         ( "yparts", ctypes.c_short ),
  597.         ( "winpos", ctypes.c_short ),
  598.         ( "planes", ctypes.c_short ),
  599.         ( "imtype", ctypes.c_short ),
  600.         ( "subimtype", ctypes.c_short ),
  601.         ( "bufflag", ctypes.c_short ),
  602.         ( "quality", ctypes.c_short ),
  603.         ( "displaymode", ctypes.c_short ),
  604.         ( "rpad1", ctypes.c_short ),
  605.         ( "rpad2", ctypes.c_short ),
  606.         ( "scemode", ctypes.c_int ),
  607.         ( "mode", ctypes.c_int ),
  608.         ( "raytrace_options", ctypes.c_int ),
  609.         ( "raytrace_structure", ctypes.c_short ),
  610.         ( "renderer", ctypes.c_short ),
  611.         ( "ocres", ctypes.c_short ),
  612.         ( "pad4", ctypes.c_short ),
  613.         ( "alphamode", ctypes.c_short ),
  614.         ( "osa", ctypes.c_short ),
  615.         ( "frs_sec", ctypes.c_short ),
  616.         ( "edgeint", ctypes.c_short ),
  617.         ( "safety", ctypes.c_void_p ),
  618.         ( "border", ctypes.c_void_p ),
  619.         ( "disprect", ctypes.c_void_p ),
  620.         ( "layers", ctypes.c_void_p ),
  621.         ( "actlay", ctypes.c_short ),
  622.         ( "mblur_samples", ctypes.c_short ),
  623.         ( "xasp", ctypes.c_float ),
  624.         ( "yasp", ctypes.c_float ),
  625.         ( "frs_sec_base", ctypes.c_float ),
  626.         ( "gauss", ctypes.c_float ),
  627.         ( "color_mgt_flag", ctypes.c_int ),
  628.         ( "postgamma", ctypes.c_float ),
  629.         ( "posthue", ctypes.c_float ),
  630.         ( "postsat", ctypes.c_float ),
  631.         ( "dither_intensity", ctypes.c_float ),
  632.         ( "bake_osa", ctypes.c_short ),
  633.         ( "bake_filter", ctypes.c_short ),
  634.         ( "bake_mode", ctypes.c_short ),
  635.         ( "bake_flag", ctypes.c_short ),
  636.         ( "bake_normal_space", ctypes.c_short ),
  637.         ( "bake_quad_split", ctypes.c_short ),
  638.         ( "bake_maxdist", ctypes.c_float ),
  639.         ( "bake_biasdist", ctypes.c_float ),
  640.         ( "bake_pad", ctypes.c_float ),
  641.         ( "backbuf", ctypes.c_char ),
  642.         ( "pic", ctypes.c_char ),
  643.         ( "stamp", ctypes.c_int ),
  644.         ( "stamp_font_id", ctypes.c_short ),
  645.         ( "pad3", ctypes.c_short ),
  646.         ( "stamp_udata", ctypes.c_char ),
  647.         ( "fg_stamp", ctypes.c_float ),
  648.         ( "bg_stamp", ctypes.c_float ),
  649.         ( "seq_prev_type", ctypes.c_char ),
  650.         ( "seq_rend_type", ctypes.c_char ),
  651.         ( "seq_flag", ctypes.c_char ),
  652.         ( "pad5", ctypes.c_char ),
  653.         ( "simplify_flag", ctypes.c_int ),
  654.         ( "simplify_subsurf", ctypes.c_short ),
  655.         ( "simplify_shadowsamples", ctypes.c_short ),
  656.         ( "simplify_particles", ctypes.c_float ),
  657.         ( "simplify_aosss", ctypes.c_float ),
  658.         ( "cineonwhite", ctypes.c_short ),
  659.         ( "cineonblack", ctypes.c_short ),
  660.         ( "cineongamma", ctypes.c_float ),
  661.         ( "jp2_preset", ctypes.c_short ),
  662.         ( "jp2_depth", ctypes.c_short ),
  663.         ( "rpad3", ctypes.c_int ),
  664.         ( "domeres", ctypes.c_short ),
  665.         ( "domemode", ctypes.c_short ),
  666.         ( "domeangle", ctypes.c_short ),
  667.         ( "dometilt", ctypes.c_short ),
  668.         ( "domeresbuf", ctypes.c_float ),
  669.         ( "pad2", ctypes.c_float ),
  670.         ( "dometext", ctypes.c_void_p ),
  671.         ( "engine", ctypes.c_char ),]
  672.  
  673. class RenderProfile(ctypes.Structure): _fields_=[
  674.         ( "next", ctypes.c_void_p ),
  675.         ( "prev", ctypes.c_void_p ),
  676.         ( "name", ctypes.c_char ),
  677.         ( "particle_perc", ctypes.c_short ),
  678.         ( "subsurf_max", ctypes.c_short ),
  679.         ( "shadbufsample_max", ctypes.c_short ),
  680.         ( "pad1", ctypes.c_short ),
  681.         ( "ao_error", ctypes.c_float ),
  682.         ( "pad2", ctypes.c_float ),]
  683.  
  684. class GameDome(ctypes.Structure): _fields_=[
  685.         ( "res", ctypes.c_short ),
  686.         ( "mode", ctypes.c_short ),
  687.         ( "angle", ctypes.c_short ),
  688.         ( "tilt", ctypes.c_short ),
  689.         ( "resbuf", ctypes.c_float ),
  690.         ( "pad2", ctypes.c_float ),
  691.         ( "warptext", ctypes.c_void_p ),]
  692.  
  693. class GameFraming(ctypes.Structure): _fields_=[
  694.         ( "col", ctypes.c_float ),
  695.         ( "type", ctypes.c_char ),
  696.         ( "pad1", ctypes.c_char ),
  697.         ( "pad2", ctypes.c_char ),
  698.         ( "pad3", ctypes.c_char ),]
  699.  
  700. class GameData(ctypes.Structure): _fields_=[
  701.         ( "gravity", ctypes.c_float ),
  702.         ( "activityBoxRadius", ctypes.c_float ),
  703.         ( "mode", ctypes.c_short ),
  704.         ( "flag", ctypes.c_short ),
  705.         ( "matmode", ctypes.c_short ),
  706.         ( "pad", ctypes.c_short ),
  707.         ( "occlusionRes", ctypes.c_short ),
  708.         ( "physicsEngine", ctypes.c_short ),
  709.         ( "ticrate", ctypes.c_short ),
  710.         ( "maxlogicstep", ctypes.c_short ),
  711.         ( "physubstep", ctypes.c_short ),
  712.         ( "maxphystep", ctypes.c_short ),
  713.         ( "framing", ctypes.c_void_p ),
  714.         ( "fullscreen", ctypes.c_short ),
  715.         ( "xplay", ctypes.c_short ),
  716.         ( "yplay", ctypes.c_short ),
  717.         ( "freqplay", ctypes.c_short ),
  718.         ( "depth", ctypes.c_short ),
  719.         ( "attrib", ctypes.c_short ),
  720.         ( "rt1", ctypes.c_short ),
  721.         ( "rt2", ctypes.c_short ),
  722.         ( "dome", ctypes.c_void_p ),
  723.         ( "stereoflag", ctypes.c_short ),
  724.         ( "stereomode", ctypes.c_short ),
  725.         ( "xsch", ctypes.c_short ),
  726.         ( "ysch", ctypes.c_short ),
  727.         ( "eyeseparation", ctypes.c_float ),
  728.         ( "pad1", ctypes.c_float ),]
  729.  
  730. class TimeMarker(ctypes.Structure): _fields_=[
  731.         ( "next", ctypes.c_void_p ),
  732.         ( "prev", ctypes.c_void_p ),
  733.         ( "frame", ctypes.c_int ),
  734.         ( "name", ctypes.c_char ),
  735.         ( "flag", ctypes.c_int ),
  736.         ( "camera", ctypes.c_void_p ),]
  737.  
  738. class Paint(ctypes.Structure): _fields_=[
  739.         ( "brush", ctypes.c_void_p ),
  740.         ( "paint_cursor", ctypes.POINTER( ctypes.c_void_p ) ),
  741.         ( "paint_cursor_col", ctypes.c_char ),
  742.         ( "flags", ctypes.c_int ),]
  743.  
  744. class ImagePaintSettings(ctypes.Structure): _fields_=[
  745.         ( "paint", ctypes.c_void_p ),
  746.         ( "flag", ctypes.c_short ),
  747.         ( "pad", ctypes.c_short ),
  748.         ( "seam_bleed", ctypes.c_short ),
  749.         ( "normal_angle", ctypes.c_short ),
  750.         ( "screen_grab_size", ctypes.c_short ),
  751.         ( "pad1", ctypes.c_int ),
  752.         ( "paintcursor", ctypes.POINTER( ctypes.c_void_p ) ),]
  753.  
  754. class ParticleBrushData(ctypes.Structure): _fields_=[
  755.         ( "size", ctypes.c_short ),
  756.         ( "step", ctypes.c_short ),
  757.         ( "invert", ctypes.c_short ),
  758.         ( "count", ctypes.c_short ),
  759.         ( "flag", ctypes.c_int ),
  760.         ( "strength", ctypes.c_float ),]
  761.  
  762. class ParticleEditSettings(ctypes.Structure): _fields_=[
  763.         ( "flag", ctypes.c_short ),
  764.         ( "totrekey", ctypes.c_short ),
  765.         ( "totaddkey", ctypes.c_short ),
  766.         ( "brushtype", ctypes.c_short ),
  767.         ( "brush", ctypes.c_void_p ),
  768.         ( "paintcursor", ctypes.POINTER( ctypes.c_void_p ) ),
  769.         ( "emitterdist", ctypes.c_float ),
  770.         ( "rt", ctypes.c_float ),
  771.         ( "selectmode", ctypes.c_int ),
  772.         ( "edittype", ctypes.c_int ),
  773.         ( "draw_step", ctypes.c_int ),
  774.         ( "fade_frames", ctypes.c_int ),
  775.         ( "scene", ctypes.c_void_p ),
  776.         ( "object", ctypes.c_void_p ),]
  777.  
  778. class TransformOrientation(ctypes.Structure): _fields_=[
  779.         ( "next", ctypes.c_void_p ),
  780.         ( "prev", ctypes.c_void_p ),
  781.         ( "name", ctypes.c_char ),
  782.         ( "mat", ctypes.c_float ),]
  783.  
  784. class Sculpt(ctypes.Structure): _fields_=[
  785.         ( "paint", ctypes.c_void_p ),
  786.         ( "flags", ctypes.c_int ),
  787.         ( "radial_symm", ctypes.c_int ),
  788.         ( "last_x", ctypes.c_float ),
  789.         ( "last_y", ctypes.c_float ),
  790.         ( "last_angle", ctypes.c_float ),
  791.         ( "draw_anchored", ctypes.c_int ),
  792.         ( "anchored_size", ctypes.c_int ),
  793.         ( "anchored_location", ctypes.c_float ),
  794.         ( "anchored_initial_mouse", ctypes.c_float ),
  795.         ( "draw_pressure", ctypes.c_int ),
  796.         ( "pressure_value", ctypes.c_float ),
  797.         ( "special_rotation", ctypes.c_float ),
  798.         ( "pad", ctypes.c_int ),]
  799.  
  800. class VPaint(ctypes.Structure): _fields_=[
  801.         ( "paint", ctypes.c_void_p ),
  802.         ( "flag", ctypes.c_short ),
  803.         ( "pad", ctypes.c_short ),
  804.         ( "tot", ctypes.c_int ),
  805.         ( "vpaint_prev", ctypes.POINTER( ctypes.c_int ) ),
  806.         ( "wpaint_prev", ctypes.c_void_p ),
  807.         ( "paintcursor", ctypes.POINTER( ctypes.c_void_p ) ),]
  808.  
  809. class ToolSettings(ctypes.Structure): _fields_=[
  810.         ( "vpaint", ctypes.c_void_p ),
  811.         ( "wpaint", ctypes.c_void_p ),
  812.         ( "sculpt", ctypes.c_void_p ),
  813.         ( "vgroup_weight", ctypes.c_float ),
  814.         ( "cornertype", ctypes.c_short ),
  815.         ( "editbutflag", ctypes.c_short ),
  816.         ( "jointrilimit", ctypes.c_float ),
  817.         ( "degr", ctypes.c_float ),
  818.         ( "step", ctypes.c_short ),
  819.         ( "turn", ctypes.c_short ),
  820.         ( "extr_offs", ctypes.c_float ),
  821.         ( "doublimit", ctypes.c_float ),
  822.         ( "normalsize", ctypes.c_float ),
  823.         ( "automerge", ctypes.c_short ),
  824.         ( "selectmode", ctypes.c_short ),
  825.         ( "segments", ctypes.c_short ),
  826.         ( "rings", ctypes.c_short ),
  827.         ( "vertices", ctypes.c_short ),
  828.         ( "unwrapper", ctypes.c_short ),
  829.         ( "uvcalc_radius", ctypes.c_float ),
  830.         ( "uvcalc_cubesize", ctypes.c_float ),
  831.         ( "uvcalc_margin", ctypes.c_float ),
  832.         ( "uvcalc_mapdir", ctypes.c_short ),
  833.         ( "uvcalc_mapalign", ctypes.c_short ),
  834.         ( "uvcalc_flag", ctypes.c_short ),
  835.         ( "uv_flag", ctypes.c_short ),
  836.         ( "uv_selectmode", ctypes.c_short ),
  837.         ( "uv_pad", ctypes.c_short ),
  838.         ( "autoik_chainlen", ctypes.c_short ),
  839.         ( "imapaint", ctypes.c_void_p ),
  840.         ( "particle", ctypes.c_void_p ),
  841.         ( "proportional_size", ctypes.c_float ),
  842.         ( "select_thresh", ctypes.c_float ),
  843.         ( "clean_thresh", ctypes.c_float ),
  844.         ( "autokey_mode", ctypes.c_short ),
  845.         ( "autokey_flag", ctypes.c_short ),
  846.         ( "retopo_mode", ctypes.c_char ),
  847.         ( "retopo_paint_tool", ctypes.c_char ),
  848.         ( "line_div", ctypes.c_char ),
  849.         ( "ellipse_div", ctypes.c_char ),
  850.         ( "retopo_hotspot", ctypes.c_char ),
  851.         ( "multires_subdiv_type", ctypes.c_char ),
  852.         ( "skgen_resolution", ctypes.c_short ),
  853.         ( "skgen_threshold_internal", ctypes.c_float ),
  854.         ( "skgen_threshold_external", ctypes.c_float ),
  855.         ( "skgen_length_ratio", ctypes.c_float ),
  856.         ( "skgen_length_limit", ctypes.c_float ),
  857.         ( "skgen_angle_limit", ctypes.c_float ),
  858.         ( "skgen_correlation_limit", ctypes.c_float ),
  859.         ( "skgen_symmetry_limit", ctypes.c_float ),
  860.         ( "skgen_retarget_angle_weight", ctypes.c_float ),
  861.         ( "skgen_retarget_length_weight", ctypes.c_float ),
  862.         ( "skgen_retarget_distance_weight", ctypes.c_float ),
  863.         ( "skgen_options", ctypes.c_short ),
  864.         ( "skgen_postpro", ctypes.c_char ),
  865.         ( "skgen_postpro_passes", ctypes.c_char ),
  866.         ( "skgen_subdivisions", ctypes.c_char ),
  867.         ( "skgen_multi_level", ctypes.c_char ),
  868.         ( "skgen_template", ctypes.c_void_p ),
  869.         ( "bone_sketching", ctypes.c_char ),
  870.         ( "bone_sketching_convert", ctypes.c_char ),
  871.         ( "skgen_subdivision_number", ctypes.c_char ),
  872.         ( "skgen_retarget_options", ctypes.c_char ),
  873.         ( "skgen_retarget_roll", ctypes.c_char ),
  874.         ( "skgen_side_string", ctypes.c_char ),
  875.         ( "skgen_num_string", ctypes.c_char ),
  876.         ( "edge_mode", ctypes.c_char ),
  877.         ( "snap_mode", ctypes.c_short ),
  878.         ( "snap_flag", ctypes.c_short ),
  879.         ( "snap_target", ctypes.c_short ),
  880.         ( "proportional", ctypes.c_short ),
  881.         ( "prop_mode", ctypes.c_short ),
  882.         ( "proportional_objects", ctypes.c_char ),
  883.         ( "pad", ctypes.c_char ),
  884.         ( "auto_normalize", ctypes.c_int ),
  885.         ( "sculpt_paint_settings", ctypes.c_short ),
  886.         ( "pad1", ctypes.c_short ),
  887.         ( "sculpt_paint_unified_size", ctypes.c_int ),
  888.         ( "sculpt_paint_unified_unprojected_radius", ctypes.c_float ),
  889.         ( "sculpt_paint_unified_alpha", ctypes.c_float ),]
  890.  
  891. class bStats(ctypes.Structure): _fields_=[
  892.         ( "totobj", ctypes.c_int ),
  893.         ( "totlamp", ctypes.c_int ),
  894.         ( "totobjsel", ctypes.c_int ),
  895.         ( "totcurve", ctypes.c_int ),
  896.         ( "totmesh", ctypes.c_int ),
  897.         ( "totarmature", ctypes.c_int ),
  898.         ( "totvert", ctypes.c_int ),
  899.         ( "totface", ctypes.c_int ),]
  900.  
  901. class UnitSettings(ctypes.Structure): _fields_=[
  902.         ( "scale_length", ctypes.c_float ),
  903.         ( "system", ctypes.c_short ),
  904.         ( "flag", ctypes.c_short ),]
  905.  
  906. class PhysicsSettings(ctypes.Structure): _fields_=[
  907.         ( "gravity", ctypes.c_float ),
  908.         ( "flag", ctypes.c_int ),
  909.         ( "quick_cache_step", ctypes.c_int ),
  910.         ( "rt", ctypes.c_int ),]
  911.  
  912. class Scene(ctypes.Structure): _fields_=[
  913.         ( "id", ctypes.c_void_p ),
  914.         ( "adt", ctypes.c_void_p ),
  915.         ( "camera", ctypes.c_void_p ),
  916.         ( "world", ctypes.c_void_p ),
  917.         ( "set", ctypes.c_void_p ),
  918.         ( "ima", ctypes.c_void_p ),
  919.         ( "base", ctypes.c_void_p ),
  920.         ( "basact", ctypes.c_void_p ),
  921.         ( "obedit", ctypes.c_void_p ),
  922.         ( "cursor", ctypes.c_float ),
  923.         ( "twcent", ctypes.c_float ),
  924.         ( "twmin", ctypes.c_float ),
  925.         ( "twmax", ctypes.c_float ),
  926.         ( "lay", ctypes.c_int ),
  927.         ( "layact", ctypes.c_int ),
  928.         ( "pad1", ctypes.c_int ),
  929.         ( "flag", ctypes.c_short ),
  930.         ( "use_nodes", ctypes.c_short ),
  931.         ( "nodetree", ctypes.c_void_p ),
  932.         ( "ed", ctypes.c_void_p ),
  933.         ( "toolsettings", ctypes.c_void_p ),
  934.         ( "stats", ctypes.c_void_p ),
  935.         ( "r", ctypes.c_void_p ),
  936.         ( "audio", ctypes.c_void_p ),
  937.         ( "markers", ctypes.c_void_p ),
  938.         ( "transform_spaces", ctypes.c_void_p ),
  939.         ( "sound_scene", ctypes.POINTER( ctypes.c_void_p ) ),
  940.         ( "sound_scene_handle", ctypes.POINTER( ctypes.c_void_p ) ),
  941.         ( "sound_scrub_handle", ctypes.POINTER( ctypes.c_void_p ) ),
  942.         ( "fps_info", ctypes.POINTER( ctypes.c_void_p ) ),
  943.         ( "theDag", ctypes.c_void_p ),
  944.         ( "dagisvalid", ctypes.c_short ),
  945.         ( "dagflags", ctypes.c_short ),
  946.         ( "recalc", ctypes.c_short ),
  947.         ( "jumpframe", ctypes.c_short ),
  948.         ( "pad5", ctypes.c_int ),
  949.         ( "active_keyingset", ctypes.c_int ),
  950.         ( "keyingsets", ctypes.c_void_p ),
  951.         ( "framing", ctypes.c_void_p ),
  952.         ( "gm", ctypes.c_void_p ),
  953.         ( "unit", ctypes.c_void_p ),
  954.         ( "gpd", ctypes.c_void_p ),
  955.         ( "physics_settings", ctypes.c_void_p ),]
  956.  
  957. #PaintFlags                                                     <TypeDecl=None>
  958. SculptFlags = {
  959.         "SCULPT_SYMM_X" : 1,
  960.         "SCULPT_SYMM_Y" : 2,
  961.         "SCULPT_SYMM_Z" : 4,
  962.         "SCULPT_LOCK_X" : 8,
  963.         "SCULPT_LOCK_Y" : 16,
  964.         "SCULPT_LOCK_Z" : 32,
  965.         "SCULPT_SYMMETRY_FEATHER" : 64,
  966.         "SCULPT_USE_OPENMP" : 128,
  967. }
  968.  
  969. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  970. #btempdir                                                       <TypeDecl=char>
  971. addlisttolist = _c_external_function(           "addlisttolist", [
  972.         ("list1", ctypes.c_void_p, 1),
  973.         ("list2", ctypes.c_void_p, 1),],
  974.         ctypes.c_void_p )
  975.  
  976. BLI_insertlink = _c_external_function(          "BLI_insertlink", [
  977.         ("listbase", ctypes.c_void_p, 1),
  978.         ("vprevlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  979.         ("vnewlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  980.         ctypes.c_void_p )
  981.  
  982. BLI_findlink = _c_external_function(            "BLI_findlink", [
  983.         ("listbase", ctypes.c_void_p, 1),
  984.         ("number", ctypes.c_int, 1),],
  985.         ctypes.c_void_p )
  986.  
  987. BLI_findindex = _c_external_function(           "BLI_findindex", [
  988.         ("listbase", ctypes.c_void_p, 1),
  989.         ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  990.         ctypes.c_int )
  991.  
  992. BLI_findstring = _c_external_function(          "BLI_findstring", [
  993.         ("listbase", ctypes.c_void_p, 1),
  994.         ("id", ctypes.c_char_p, 1),
  995.         ("offset", ctypes.c_int, 1),],
  996.         ctypes.c_void_p )
  997.  
  998. BLI_findstring_ptr = _c_external_function(              "BLI_findstring_ptr", [
  999.         ("listbase", ctypes.c_void_p, 1),
  1000.         ("id", ctypes.c_char_p, 1),
  1001.         ("offset", ctypes.c_int, 1),],
  1002.         ctypes.c_void_p )
  1003.  
  1004. BLI_findstringindex = _c_external_function(             "BLI_findstringindex", [
  1005.         ("listbase", ctypes.c_void_p, 1),
  1006.         ("id", ctypes.c_char_p, 1),
  1007.         ("offset", ctypes.c_int, 1),],
  1008.         ctypes.c_int )
  1009.  
  1010. BLI_freelistN = _c_external_function(           "BLI_freelistN", [
  1011.         ("listbase", ctypes.c_void_p, 1),],
  1012.         ctypes.c_void_p )
  1013.  
  1014. BLI_addtail = _c_external_function(             "BLI_addtail", [
  1015.         ("listbase", ctypes.c_void_p, 1),
  1016.         ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1017.         ctypes.c_void_p )
  1018.  
  1019. BLI_remlink = _c_external_function(             "BLI_remlink", [
  1020.         ("listbase", ctypes.c_void_p, 1),
  1021.         ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1022.         ctypes.c_void_p )
  1023.  
  1024. BLI_remlink_safe = _c_external_function(                "BLI_remlink_safe", [
  1025.         ("listbase", ctypes.c_void_p, 1),
  1026.         ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1027.         ctypes.c_int )
  1028.  
  1029. BLI_addhead = _c_external_function(             "BLI_addhead", [
  1030.         ("listbase", ctypes.c_void_p, 1),
  1031.         ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1032.         ctypes.c_void_p )
  1033.  
  1034. BLI_insertlinkbefore = _c_external_function(            "BLI_insertlinkbefore", [
  1035.         ("listbase", ctypes.c_void_p, 1),
  1036.         ("vnextlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  1037.         ("vnewlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1038.         ctypes.c_void_p )
  1039.  
  1040. BLI_insertlinkafter = _c_external_function(             "BLI_insertlinkafter", [
  1041.         ("listbase", ctypes.c_void_p, 1),
  1042.         ("vprevlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  1043.         ("vnewlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1044.         ctypes.c_void_p )
  1045.  
  1046. BLI_sortlist = _c_external_function(            "BLI_sortlist", [
  1047.         ("listbase", ctypes.c_void_p, 1),
  1048.         ("cmp", ctypes.c_void_p, 1),],
  1049.         ctypes.c_void_p )
  1050.  
  1051. BLI_freelist = _c_external_function(            "BLI_freelist", [
  1052.         ("listbase", ctypes.c_void_p, 1),],
  1053.         ctypes.c_void_p )
  1054.  
  1055. BLI_countlist = _c_external_function(           "BLI_countlist", [
  1056.         ("listbase", ctypes.c_void_p, 1),],
  1057.         ctypes.c_int )
  1058.  
  1059. BLI_freelinkN = _c_external_function(           "BLI_freelinkN", [
  1060.         ("listbase", ctypes.c_void_p, 1),
  1061.         ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1062.         ctypes.c_void_p )
  1063.  
  1064. BLI_duplicatelist = _c_external_function(               "BLI_duplicatelist", [
  1065.         ("list1", ctypes.c_void_p, 1),
  1066.         ("list2", ctypes.c_void_p, 1),],
  1067.         ctypes.c_void_p )
  1068.  
  1069. BLI_genericNodeN = _c_external_function(                "BLI_genericNodeN", [],
  1070.         ctypes.c_void_p )
  1071.  
  1072. BLI_strdup = _c_external_function(              "BLI_strdup", [
  1073.         ("str", ctypes.c_char_p, 1),],
  1074.         ctypes.c_char )
  1075.  
  1076. BLI_strdupn = _c_external_function(             "BLI_strdupn", [
  1077.         ("str", ctypes.c_char_p, 1),
  1078.         ("len", ctypes.c_int, 1),],
  1079.         ctypes.c_char )
  1080.  
  1081. BLI_strdupcat = _c_external_function(           "BLI_strdupcat", [
  1082.         ("str1", ctypes.c_char_p, 1),
  1083.         ("str2", ctypes.c_char_p, 1),],
  1084.         ctypes.c_char )
  1085.  
  1086. BLI_strncpy = _c_external_function(             "BLI_strncpy", [
  1087.         ("dst", ctypes.c_char_p, 1),
  1088.         ("src", ctypes.c_char_p, 1),
  1089.         ("maxncpy", ctypes.c_int, 1),],
  1090.         ctypes.c_char )
  1091.  
  1092. BLI_getQuotedStr = _c_external_function(                "BLI_getQuotedStr", [
  1093.         ("str", ctypes.c_char_p, 1),
  1094.         ("prefix", ctypes.c_char_p, 1),],
  1095.         ctypes.c_char )
  1096.  
  1097. BLI_replacestr = _c_external_function(          "BLI_replacestr", [
  1098.         ("str", ctypes.c_char_p, 1),
  1099.         ("oldText", ctypes.c_char_p, 1),
  1100.         ("newText", ctypes.c_char_p, 1),],
  1101.         ctypes.c_char )
  1102.  
  1103. BLI_snprintf = _c_external_function(            "BLI_snprintf", [
  1104.         ("buffer", ctypes.c_char_p, 1),
  1105.         ("count", ctypes.c_size_t, 1),
  1106.         ("format", ctypes.c_char_p, 1),],
  1107.         ctypes.c_int )
  1108.  
  1109. BLI_sprintfN = _c_external_function(            "BLI_sprintfN", [
  1110.         ("format", ctypes.c_char_p, 1),],
  1111.         ctypes.c_char )
  1112.  
  1113. BLI_streq = _c_external_function(               "BLI_streq", [
  1114.         ("a", ctypes.c_char_p, 1),
  1115.         ("b", ctypes.c_char_p, 1),],
  1116.         ctypes.c_int )
  1117.  
  1118. BLI_strcaseeq = _c_external_function(           "BLI_strcaseeq", [
  1119.         ("a", ctypes.c_char_p, 1),
  1120.         ("b", ctypes.c_char_p, 1),],
  1121.         ctypes.c_int )
  1122.  
  1123. BLI_strcasestr = _c_external_function(          "BLI_strcasestr", [
  1124.         ("s", ctypes.c_char_p, 1),
  1125.         ("find", ctypes.c_char_p, 1),],
  1126.         ctypes.c_char )
  1127.  
  1128. BLI_strcasecmp = _c_external_function(          "BLI_strcasecmp", [
  1129.         ("s1", ctypes.c_char_p, 1),
  1130.         ("s2", ctypes.c_char_p, 1),],
  1131.         ctypes.c_int )
  1132.  
  1133. BLI_strncasecmp = _c_external_function(         "BLI_strncasecmp", [
  1134.         ("s1", ctypes.c_char_p, 1),
  1135.         ("s2", ctypes.c_char_p, 1),
  1136.         ("n", ctypes.c_int, 1),],
  1137.         ctypes.c_int )
  1138.  
  1139. BLI_natstrcmp = _c_external_function(           "BLI_natstrcmp", [
  1140.         ("s1", ctypes.c_char_p, 1),
  1141.         ("s2", ctypes.c_char_p, 1),],
  1142.         ctypes.c_int )
  1143.  
  1144. BLI_strnlen = _c_external_function(             "BLI_strnlen", [
  1145.         ("str", ctypes.c_char_p, 1),
  1146.         ("maxlen", ctypes.c_size_t, 1),],
  1147.         ctypes.c_size_t )
  1148.  
  1149. BLI_timestr = _c_external_function(             "BLI_timestr", [
  1150.         ("_time", ctypes.c_double, 1),
  1151.         ("str", ctypes.c_char_p, 1),],
  1152.         ctypes.c_void_p )
  1153.  
  1154. BLI_utf8_invalid_byte = _c_external_function(           "BLI_utf8_invalid_byte", [
  1155.         ("str", ctypes.c_char_p, 1),
  1156.         ("length", ctypes.c_int, 1),],
  1157.         ctypes.c_int )
  1158.  
  1159. BLI_utf8_invalid_strip = _c_external_function(          "BLI_utf8_invalid_strip", [
  1160.         ("str", ctypes.c_char_p, 1),
  1161.         ("length", ctypes.c_int, 1),],
  1162.         ctypes.c_int )
  1163.  
  1164. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  1165. #class direntry(ctypes.Structure): pass         # typedef or forward reference #
  1166. BLI_getDefaultDocumentFolder = _c_external_function(            "BLI_getDefaultDocumentFolder", [],
  1167.         ctypes.c_char )
  1168.  
  1169. BLI_get_folder = _c_external_function(          "BLI_get_folder", [
  1170.         ("folder_id", ctypes.c_int, 1),
  1171.         ("subfolder", ctypes.c_char_p, 1),],
  1172.         ctypes.c_char )
  1173.  
  1174. BLI_get_folder_create = _c_external_function(           "BLI_get_folder_create", [
  1175.         ("folder_id", ctypes.c_int, 1),
  1176.         ("subfolder", ctypes.c_char_p, 1),],
  1177.         ctypes.c_char )
  1178.  
  1179. BLI_setenv = _c_external_function(              "BLI_setenv", [
  1180.         ("env", ctypes.c_char_p, 1),
  1181.         ("val", ctypes.c_char_p, 1),],
  1182.         ctypes.c_void_p )
  1183.  
  1184. BLI_setenv_if_new = _c_external_function(               "BLI_setenv_if_new", [
  1185.         ("env", ctypes.c_char_p, 1),
  1186.         ("val", ctypes.c_char_p, 1),],
  1187.         ctypes.c_void_p )
  1188.  
  1189. BLI_make_file_string = _c_external_function(            "BLI_make_file_string", [
  1190.         ("relabase", ctypes.c_char_p, 1),
  1191.         ("string", ctypes.c_char_p, 1),
  1192.         ("dir", ctypes.c_char_p, 1),
  1193.         ("file", ctypes.c_char_p, 1),],
  1194.         ctypes.c_void_p )
  1195.  
  1196. BLI_make_exist = _c_external_function(          "BLI_make_exist", [
  1197.         ("dir", ctypes.c_char_p, 1),],
  1198.         ctypes.c_void_p )
  1199.  
  1200. BLI_make_existing_file = _c_external_function(          "BLI_make_existing_file", [
  1201.         ("name", ctypes.c_char_p, 1),],
  1202.         ctypes.c_void_p )
  1203.  
  1204. BLI_split_dirfile = _c_external_function(               "BLI_split_dirfile", [
  1205.         ("string", ctypes.c_char_p, 1),
  1206.         ("dir", ctypes.c_char_p, 1),
  1207.         ("file", ctypes.c_char_p, 1),],
  1208.         ctypes.c_void_p )
  1209.  
  1210. BLI_join_dirfile = _c_external_function(                "BLI_join_dirfile", [
  1211.         ("string", ctypes.c_char_p, 1),
  1212.         ("dir", ctypes.c_char_p, 1),
  1213.         ("file", ctypes.c_char_p, 1),],
  1214.         ctypes.c_void_p )
  1215.  
  1216. BLI_path_basename = _c_external_function(               "BLI_path_basename", [
  1217.         ("path", ctypes.c_char_p, 1),],
  1218.         ctypes.c_char )
  1219.  
  1220. BKE_rebase_path = _c_external_function(         "BKE_rebase_path", [
  1221.         ("abs", ctypes.c_char_p, 1),
  1222.         ("abs_size", ctypes.c_int, 1),
  1223.         ("rel", ctypes.c_char_p, 1),
  1224.         ("rel_size", ctypes.c_int, 1),
  1225.         ("base_dir", ctypes.c_char_p, 1),
  1226.         ("src_dir", ctypes.c_char_p, 1),
  1227.         ("dest_dir", ctypes.c_char_p, 1),],
  1228.         ctypes.c_int )
  1229.  
  1230. BLI_getlastdir = _c_external_function(          "BLI_getlastdir", [
  1231.         ("dir", ctypes.c_char_p, 1),
  1232.         ("last", ctypes.c_char_p, 1),
  1233.         ("maxlen", ctypes.c_int, 1),],
  1234.         ctypes.c_void_p )
  1235.  
  1236. BLI_testextensie = _c_external_function(                "BLI_testextensie", [
  1237.         ("str", ctypes.c_char_p, 1),
  1238.         ("ext", ctypes.c_char_p, 1),],
  1239.         ctypes.c_int )
  1240.  
  1241. BLI_testextensie_array = _c_external_function(          "BLI_testextensie_array", [
  1242.         ("str", ctypes.c_char_p, 1),
  1243.         ("ext_array", ctypes.POINTER( ctypes.c_char_p ), 1),],
  1244.         ctypes.c_int )
  1245.  
  1246. BLI_replace_extension = _c_external_function(           "BLI_replace_extension", [
  1247.         ("path", ctypes.c_char_p, 1),
  1248.         ("maxlen", ctypes.c_int, 1),
  1249.         ("ext", ctypes.c_char_p, 1),],
  1250.         ctypes.c_int )
  1251.  
  1252. BLI_uniquename = _c_external_function(          "BLI_uniquename", [
  1253.         ("list", ctypes.c_void_p, 1),
  1254.         ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  1255.         ("defname", ctypes.c_char, 1),
  1256.         ("delim", ctypes.c_char, 1),
  1257.         ("name_offs", ctypes.c_short, 1),
  1258.         ("len", ctypes.c_short, 1),],
  1259.         ctypes.c_void_p )
  1260.  
  1261. BLI_newname = _c_external_function(             "BLI_newname", [
  1262.         ("name", ctypes.c_char_p, 1),
  1263.         ("add", ctypes.c_int, 1),],
  1264.         ctypes.c_void_p )
  1265.  
  1266. BLI_stringdec = _c_external_function(           "BLI_stringdec", [
  1267.         ("string", ctypes.c_char_p, 1),
  1268.         ("head", ctypes.c_char_p, 1),
  1269.         ("start", ctypes.c_char_p, 1),
  1270.         ("numlen", ctypes.POINTER( ctypes.c_short ), 1),],
  1271.         ctypes.c_int )
  1272.  
  1273. BLI_stringenc = _c_external_function(           "BLI_stringenc", [
  1274.         ("string", ctypes.c_char_p, 1),
  1275.         ("head", ctypes.c_char_p, 1),
  1276.         ("tail", ctypes.c_char_p, 1),
  1277.         ("numlen", ctypes.c_short, 1),
  1278.         ("pic", ctypes.c_int, 1),],
  1279.         ctypes.c_void_p )
  1280.  
  1281. BLI_splitdirstring = _c_external_function(              "BLI_splitdirstring", [
  1282.         ("di", ctypes.c_char_p, 1),
  1283.         ("fi", ctypes.c_char_p, 1),],
  1284.         ctypes.c_void_p )
  1285.  
  1286. BLI_clean = _c_external_function(               "BLI_clean", [
  1287.         ("path", ctypes.c_char_p, 1),],
  1288.         ctypes.c_void_p )
  1289.  
  1290. BLI_cleanup_file = _c_external_function(                "BLI_cleanup_file", [
  1291.         ("relabase", ctypes.c_char_p, 1),
  1292.         ("dir", ctypes.c_char_p, 1),],
  1293.         ctypes.c_void_p )
  1294.  
  1295. BLI_cleanup_dir = _c_external_function(         "BLI_cleanup_dir", [
  1296.         ("relabase", ctypes.c_char_p, 1),
  1297.         ("dir", ctypes.c_char_p, 1),],
  1298.         ctypes.c_void_p )
  1299.  
  1300. BLI_parent_dir = _c_external_function(          "BLI_parent_dir", [
  1301.         ("path", ctypes.c_char_p, 1),],
  1302.         ctypes.c_int )
  1303.  
  1304. BLI_has_parent = _c_external_function(          "BLI_has_parent", [
  1305.         ("path", ctypes.c_char_p, 1),],
  1306.         ctypes.c_int )
  1307.  
  1308. BLI_path_abs = _c_external_function(            "BLI_path_abs", [
  1309.         ("path", ctypes.c_char_p, 1),
  1310.         ("basepath", ctypes.c_char_p, 1),],
  1311.         ctypes.c_int )
  1312.  
  1313. BLI_path_frame = _c_external_function(          "BLI_path_frame", [
  1314.         ("path", ctypes.c_char_p, 1),
  1315.         ("frame", ctypes.c_int, 1),
  1316.         ("digits", ctypes.c_int, 1),],
  1317.         ctypes.c_int )
  1318.  
  1319. BLI_path_frame_range = _c_external_function(            "BLI_path_frame_range", [
  1320.         ("path", ctypes.c_char_p, 1),
  1321.         ("sta", ctypes.c_int, 1),
  1322.         ("end", ctypes.c_int, 1),
  1323.         ("digits", ctypes.c_int, 1),],
  1324.         ctypes.c_int )
  1325.  
  1326. BLI_path_cwd = _c_external_function(            "BLI_path_cwd", [
  1327.         ("path", ctypes.c_char_p, 1),],
  1328.         ctypes.c_int )
  1329.  
  1330. BLI_path_rel = _c_external_function(            "BLI_path_rel", [
  1331.         ("file", ctypes.c_char_p, 1),
  1332.         ("relfile", ctypes.c_char_p, 1),],
  1333.         ctypes.c_void_p )
  1334.  
  1335. BLI_char_switch = _c_external_function(         "BLI_char_switch", [
  1336.         ("string", ctypes.c_char_p, 1),
  1337.         ("from", ctypes.c_char, 1),
  1338.         ("to", ctypes.c_char, 1),],
  1339.         ctypes.c_void_p )
  1340.  
  1341. BLI_where_am_i = _c_external_function(          "BLI_where_am_i", [
  1342.         ("fullname", ctypes.c_char_p, 1),
  1343.         ("name", ctypes.c_char_p, 1),],
  1344.         ctypes.c_void_p )
  1345.  
  1346. get_install_dir = _c_external_function(         "get_install_dir", [],
  1347.         ctypes.c_char )
  1348.  
  1349. BLI_where_is_temp = _c_external_function(               "BLI_where_is_temp", [
  1350.         ("fullname", ctypes.c_char_p, 1),
  1351.         ("usertemp", ctypes.c_int, 1),],
  1352.         ctypes.c_void_p )
  1353.  
  1354. #class direntry(ctypes.Structure): pass         # typedef or forward reference #
  1355. BLI_adddirstrings = _c_external_function(               "BLI_adddirstrings", [],
  1356.         ctypes.c_void_p )
  1357.  
  1358. BLI_builddir = _c_external_function(            "BLI_builddir", [
  1359.         ("dirname", ctypes.c_char_p, 1),
  1360.         ("relname", ctypes.c_char_p, 1),],
  1361.         ctypes.c_void_p )
  1362.  
  1363. BLI_compare = _c_external_function(             "BLI_compare", [
  1364.         ("entry1", ctypes.c_void_p, 1),
  1365.         ("entry2", ctypes.c_void_p, 1),],
  1366.         ctypes.c_int )
  1367.  
  1368. BLI_filesize = _c_external_function(            "BLI_filesize", [
  1369.         ("file", ctypes.c_int, 1),],
  1370.         ctypes.c_size_t )
  1371.  
  1372. BLI_filepathsize = _c_external_function(                "BLI_filepathsize", [
  1373.         ("path", ctypes.c_char_p, 1),],
  1374.         ctypes.c_size_t )
  1375.  
  1376. BLI_diskfree = _c_external_function(            "BLI_diskfree", [
  1377.         ("dir", ctypes.c_char_p, 1),],
  1378.         ctypes.c_double )
  1379.  
  1380. BLI_getwdN = _c_external_function(              "BLI_getwdN", [
  1381.         ("dir", ctypes.c_char_p, 1),],
  1382.         ctypes.c_char )
  1383.  
  1384. BLI_getdir = _c_external_function(              "BLI_getdir", [
  1385.         ("dirname", ctypes.c_char_p, 1),
  1386.         ("filelist", ctypes.c_void_p, 1),],
  1387.         ctypes.c_int )
  1388.  
  1389. BLI_exist = _c_external_function(               "BLI_exist", [
  1390.         ("name", ctypes.c_char_p, 1),],
  1391.         ctypes.c_int )
  1392.  
  1393. BLI_is_dir = _c_external_function(              "BLI_is_dir", [
  1394.         ("file", ctypes.c_char_p, 1),],
  1395.         ctypes.c_int )
  1396.  
  1397. BLI_read_file_as_lines = _c_external_function(          "BLI_read_file_as_lines", [
  1398.         ("name", ctypes.c_char_p, 1),],
  1399.         ctypes.c_void_p )
  1400.  
  1401. BLI_free_file_lines = _c_external_function(             "BLI_free_file_lines", [
  1402.         ("lines", ctypes.c_void_p, 1),],
  1403.         ctypes.c_void_p )
  1404.  
  1405. BLI_file_older = _c_external_function(          "BLI_file_older", [
  1406.         ("file1", ctypes.c_char_p, 1),
  1407.         ("file2", ctypes.c_char_p, 1),],
  1408.         ctypes.c_int )
  1409.  
  1410. BLI_recurdir_fileops = _c_external_function(            "BLI_recurdir_fileops", [
  1411.         ("dirname", ctypes.c_char_p, 1),],
  1412.         ctypes.c_void_p )
  1413.  
  1414. BLI_link = _c_external_function(                "BLI_link", [
  1415.         ("file", ctypes.c_char_p, 1),
  1416.         ("to", ctypes.c_char_p, 1),],
  1417.         ctypes.c_int )
  1418.  
  1419. BLI_is_writable = _c_external_function(         "BLI_is_writable", [
  1420.         ("filename", ctypes.c_char_p, 1),],
  1421.         ctypes.c_int )
  1422.  
  1423. BLI_exists = _c_external_function(              "BLI_exists", [
  1424.         ("file", ctypes.c_char_p, 1),],
  1425.         ctypes.c_int )
  1426.  
  1427. BLI_copy_fileops = _c_external_function(                "BLI_copy_fileops", [
  1428.         ("file", ctypes.c_char_p, 1),
  1429.         ("to", ctypes.c_char_p, 1),],
  1430.         ctypes.c_int )
  1431.  
  1432. BLI_rename = _c_external_function(              "BLI_rename", [
  1433.         ("from", ctypes.c_char_p, 1),
  1434.         ("to", ctypes.c_char_p, 1),],
  1435.         ctypes.c_int )
  1436.  
  1437. BLI_gzip = _c_external_function(                "BLI_gzip", [
  1438.         ("from", ctypes.c_char_p, 1),
  1439.         ("to", ctypes.c_char_p, 1),],
  1440.         ctypes.c_int )
  1441.  
  1442. BLI_delete = _c_external_function(              "BLI_delete", [
  1443.         ("file", ctypes.c_char_p, 1),
  1444.         ("dir", ctypes.c_int, 1),
  1445.         ("recursive", ctypes.c_int, 1),],
  1446.         ctypes.c_int )
  1447.  
  1448. BLI_move = _c_external_function(                "BLI_move", [
  1449.         ("file", ctypes.c_char_p, 1),
  1450.         ("to", ctypes.c_char_p, 1),],
  1451.         ctypes.c_int )
  1452.  
  1453. BLI_touch = _c_external_function(               "BLI_touch", [
  1454.         ("file", ctypes.c_char_p, 1),],
  1455.         ctypes.c_int )
  1456.  
  1457. BLI_last_slash = _c_external_function(          "BLI_last_slash", [
  1458.         ("string", ctypes.c_char_p, 1),],
  1459.         ctypes.c_char )
  1460.  
  1461. BLI_add_slash = _c_external_function(           "BLI_add_slash", [
  1462.         ("string", ctypes.c_char_p, 1),],
  1463.         ctypes.c_int )
  1464.  
  1465. BLI_del_slash = _c_external_function(           "BLI_del_slash", [
  1466.         ("string", ctypes.c_char_p, 1),],
  1467.         ctypes.c_void_p )
  1468.  
  1469. first_slash = _c_external_function(             "first_slash", [
  1470.         ("string", ctypes.c_char_p, 1),],
  1471.         ctypes.c_char )
  1472.  
  1473. BLI_setCmdCallBack = _c_external_function(              "BLI_setCmdCallBack", [
  1474.         ("f", ctypes.c_void_p, 1),],
  1475.         ctypes.c_void_p )
  1476.  
  1477. #class rctf(ctypes.Structure): pass             # typedef or forward reference #
  1478. #class rcti(ctypes.Structure): pass             # typedef or forward reference #
  1479. BLI_rcti_is_empty = _c_external_function(               "BLI_rcti_is_empty", [
  1480.         ("rect", ctypes.c_void_p, 1),],
  1481.         ctypes.c_int )
  1482.  
  1483. BLI_rctf_is_empty = _c_external_function(               "BLI_rctf_is_empty", [
  1484.         ("rect", ctypes.c_void_p, 1),],
  1485.         ctypes.c_int )
  1486.  
  1487. BLI_init_rctf = _c_external_function(           "BLI_init_rctf", [
  1488.         ("rect", ctypes.c_void_p, 1),
  1489.         ("xmin", ctypes.c_float, 1),
  1490.         ("xmax", ctypes.c_float, 1),
  1491.         ("ymin", ctypes.c_float, 1),
  1492.         ("ymax", ctypes.c_float, 1),],
  1493.         ctypes.c_void_p )
  1494.  
  1495. BLI_init_rcti = _c_external_function(           "BLI_init_rcti", [
  1496.         ("rect", ctypes.c_void_p, 1),
  1497.         ("xmin", ctypes.c_int, 1),
  1498.         ("xmax", ctypes.c_int, 1),
  1499.         ("ymin", ctypes.c_int, 1),
  1500.         ("ymax", ctypes.c_int, 1),],
  1501.         ctypes.c_void_p )
  1502.  
  1503. BLI_translate_rctf = _c_external_function(              "BLI_translate_rctf", [
  1504.         ("rect", ctypes.c_void_p, 1),
  1505.         ("x", ctypes.c_float, 1),
  1506.         ("y", ctypes.c_float, 1),],
  1507.         ctypes.c_void_p )
  1508.  
  1509. BLI_translate_rcti = _c_external_function(              "BLI_translate_rcti", [
  1510.         ("rect", ctypes.c_void_p, 1),
  1511.         ("x", ctypes.c_int, 1),
  1512.         ("y", ctypes.c_int, 1),],
  1513.         ctypes.c_void_p )
  1514.  
  1515. BLI_resize_rcti = _c_external_function(         "BLI_resize_rcti", [
  1516.         ("rect", ctypes.c_void_p, 1),
  1517.         ("x", ctypes.c_int, 1),
  1518.         ("y", ctypes.c_int, 1),],
  1519.         ctypes.c_void_p )
  1520.  
  1521. BLI_resize_rctf = _c_external_function(         "BLI_resize_rctf", [
  1522.         ("rect", ctypes.c_void_p, 1),
  1523.         ("x", ctypes.c_float, 1),
  1524.         ("y", ctypes.c_float, 1),],
  1525.         ctypes.c_void_p )
  1526.  
  1527. BLI_in_rcti = _c_external_function(             "BLI_in_rcti", [
  1528.         ("rect", ctypes.c_void_p, 1),
  1529.         ("x", ctypes.c_int, 1),
  1530.         ("y", ctypes.c_int, 1),],
  1531.         ctypes.c_int )
  1532.  
  1533. BLI_in_rctf = _c_external_function(             "BLI_in_rctf", [
  1534.         ("rect", ctypes.c_void_p, 1),
  1535.         ("x", ctypes.c_float, 1),
  1536.         ("y", ctypes.c_float, 1),],
  1537.         ctypes.c_int )
  1538.  
  1539. BLI_isect_rctf = _c_external_function(          "BLI_isect_rctf", [
  1540.         ("src1", ctypes.c_void_p, 1),
  1541.         ("src2", ctypes.c_void_p, 1),
  1542.         ("dest", ctypes.c_void_p, 1),],
  1543.         ctypes.c_int )
  1544.  
  1545. BLI_isect_rcti = _c_external_function(          "BLI_isect_rcti", [
  1546.         ("src1", ctypes.c_void_p, 1),
  1547.         ("src2", ctypes.c_void_p, 1),
  1548.         ("dest", ctypes.c_void_p, 1),],
  1549.         ctypes.c_int )
  1550.  
  1551. BLI_union_rctf = _c_external_function(          "BLI_union_rctf", [
  1552.         ("rcta", ctypes.c_void_p, 1),
  1553.         ("rctb", ctypes.c_void_p, 1),],
  1554.         ctypes.c_void_p )
  1555.  
  1556. BLI_union_rcti = _c_external_function(          "BLI_union_rcti", [
  1557.         ("rcti1", ctypes.c_void_p, 1),
  1558.         ("rcti2", ctypes.c_void_p, 1),],
  1559.         ctypes.c_void_p )
  1560.  
  1561. BLI_copy_rcti_rctf = _c_external_function(              "BLI_copy_rcti_rctf", [
  1562.         ("tar", ctypes.c_void_p, 1),
  1563.         ("src", ctypes.c_void_p, 1),],
  1564.         ctypes.c_void_p )
  1565.  
  1566. print_rctf = _c_external_function(              "print_rctf", [
  1567.         ("str", ctypes.c_char_p, 1),
  1568.         ("rect", ctypes.c_void_p, 1),],
  1569.         ctypes.c_void_p )
  1570.  
  1571. print_rcti = _c_external_function(              "print_rcti", [
  1572.         ("str", ctypes.c_char_p, 1),
  1573.         ("rect", ctypes.c_void_p, 1),],
  1574.         ctypes.c_void_p )
  1575.  
  1576. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  1577. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  1578. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  1579. #class EditVert(ctypes.Structure): pass         # typedef or forward reference #
  1580. BLI_addfillvert = _c_external_function(         "BLI_addfillvert", [
  1581.         ("vec", ctypes.POINTER( ctypes.c_float ), 1),],
  1582.         ctypes.c_void_p )
  1583.  
  1584. BLI_addfilledge = _c_external_function(         "BLI_addfilledge", [
  1585.         ("v1", ctypes.c_void_p, 1),
  1586.         ("v2", ctypes.c_void_p, 1),],
  1587.         ctypes.c_void_p )
  1588.  
  1589. BLI_edgefill = _c_external_function(            "BLI_edgefill", [
  1590.         ("mode", ctypes.c_int, 1),
  1591.         ("mat_nr", ctypes.c_int, 1),],
  1592.         ctypes.c_int )
  1593.  
  1594. BLI_end_edgefill = _c_external_function(                "BLI_end_edgefill", [],
  1595.         ctypes.c_void_p )
  1596.  
  1597. BLI_setErrorCallBack = _c_external_function(            "BLI_setErrorCallBack", [
  1598.         ("f", ctypes.c_void_p, 1),],
  1599.         ctypes.c_void_p )
  1600.  
  1601. BLI_setInterruptCallBack = _c_external_function(                "BLI_setInterruptCallBack", [
  1602.         ("f", ctypes.c_void_p, 1),],
  1603.         ctypes.c_void_p )
  1604.  
  1605. BLI_hnoise = _c_external_function(              "BLI_hnoise", [
  1606.         ("noisesize", ctypes.c_float, 1),
  1607.         ("x", ctypes.c_float, 1),
  1608.         ("y", ctypes.c_float, 1),
  1609.         ("z", ctypes.c_float, 1),],
  1610.         ctypes.c_float )
  1611.  
  1612. BLI_hnoisep = _c_external_function(             "BLI_hnoisep", [
  1613.         ("noisesize", ctypes.c_float, 1),
  1614.         ("x", ctypes.c_float, 1),
  1615.         ("y", ctypes.c_float, 1),
  1616.         ("z", ctypes.c_float, 1),],
  1617.         ctypes.c_float )
  1618.  
  1619. BLI_turbulence = _c_external_function(          "BLI_turbulence", [
  1620.         ("noisesize", ctypes.c_float, 1),
  1621.         ("x", ctypes.c_float, 1),
  1622.         ("y", ctypes.c_float, 1),
  1623.         ("z", ctypes.c_float, 1),
  1624.         ("nr", ctypes.c_int, 1),],
  1625.         ctypes.c_float )
  1626.  
  1627. BLI_turbulence1 = _c_external_function(         "BLI_turbulence1", [
  1628.         ("noisesize", ctypes.c_float, 1),
  1629.         ("x", ctypes.c_float, 1),
  1630.         ("y", ctypes.c_float, 1),
  1631.         ("z", ctypes.c_float, 1),
  1632.         ("nr", ctypes.c_int, 1),],
  1633.         ctypes.c_float )
  1634.  
  1635. BLI_gNoise = _c_external_function(              "BLI_gNoise", [
  1636.         ("noisesize", ctypes.c_float, 1),
  1637.         ("x", ctypes.c_float, 1),
  1638.         ("y", ctypes.c_float, 1),
  1639.         ("z", ctypes.c_float, 1),
  1640.         ("hard", ctypes.c_int, 1),
  1641.         ("noisebasis", ctypes.c_int, 1),],
  1642.         ctypes.c_float )
  1643.  
  1644. BLI_gTurbulence = _c_external_function(         "BLI_gTurbulence", [
  1645.         ("noisesize", ctypes.c_float, 1),
  1646.         ("x", ctypes.c_float, 1),
  1647.         ("y", ctypes.c_float, 1),
  1648.         ("z", ctypes.c_float, 1),
  1649.         ("oct", ctypes.c_int, 1),
  1650.         ("hard", ctypes.c_int, 1),
  1651.         ("noisebasis", ctypes.c_int, 1),],
  1652.         ctypes.c_float )
  1653.  
  1654. mg_fBm = _c_external_function(          "mg_fBm", [
  1655.         ("x", ctypes.c_float, 1),
  1656.         ("y", ctypes.c_float, 1),
  1657.         ("z", ctypes.c_float, 1),
  1658.         ("H", ctypes.c_float, 1),
  1659.         ("lacunarity", ctypes.c_float, 1),
  1660.         ("octaves", ctypes.c_float, 1),
  1661.         ("noisebasis", ctypes.c_int, 1),],
  1662.         ctypes.c_float )
  1663.  
  1664. mg_MultiFractal = _c_external_function(         "mg_MultiFractal", [
  1665.         ("x", ctypes.c_float, 1),
  1666.         ("y", ctypes.c_float, 1),
  1667.         ("z", ctypes.c_float, 1),
  1668.         ("H", ctypes.c_float, 1),
  1669.         ("lacunarity", ctypes.c_float, 1),
  1670.         ("octaves", ctypes.c_float, 1),
  1671.         ("noisebasis", ctypes.c_int, 1),],
  1672.         ctypes.c_float )
  1673.  
  1674. mg_VLNoise = _c_external_function(              "mg_VLNoise", [
  1675.         ("x", ctypes.c_float, 1),
  1676.         ("y", ctypes.c_float, 1),
  1677.         ("z", ctypes.c_float, 1),
  1678.         ("distortion", ctypes.c_float, 1),
  1679.         ("nbas1", ctypes.c_int, 1),
  1680.         ("nbas2", ctypes.c_int, 1),],
  1681.         ctypes.c_float )
  1682.  
  1683. mg_HeteroTerrain = _c_external_function(                "mg_HeteroTerrain", [
  1684.         ("x", ctypes.c_float, 1),
  1685.         ("y", ctypes.c_float, 1),
  1686.         ("z", ctypes.c_float, 1),
  1687.         ("H", ctypes.c_float, 1),
  1688.         ("lacunarity", ctypes.c_float, 1),
  1689.         ("octaves", ctypes.c_float, 1),
  1690.         ("offset", ctypes.c_float, 1),
  1691.         ("noisebasis", ctypes.c_int, 1),],
  1692.         ctypes.c_float )
  1693.  
  1694. mg_HybridMultiFractal = _c_external_function(           "mg_HybridMultiFractal", [
  1695.         ("x", ctypes.c_float, 1),
  1696.         ("y", ctypes.c_float, 1),
  1697.         ("z", ctypes.c_float, 1),
  1698.         ("H", ctypes.c_float, 1),
  1699.         ("lacunarity", ctypes.c_float, 1),
  1700.         ("octaves", ctypes.c_float, 1),
  1701.         ("offset", ctypes.c_float, 1),
  1702.         ("gain", ctypes.c_float, 1),
  1703.         ("noisebasis", ctypes.c_int, 1),],
  1704.         ctypes.c_float )
  1705.  
  1706. mg_RidgedMultiFractal = _c_external_function(           "mg_RidgedMultiFractal", [
  1707.         ("x", ctypes.c_float, 1),
  1708.         ("y", ctypes.c_float, 1),
  1709.         ("z", ctypes.c_float, 1),
  1710.         ("H", ctypes.c_float, 1),
  1711.         ("lacunarity", ctypes.c_float, 1),
  1712.         ("octaves", ctypes.c_float, 1),
  1713.         ("offset", ctypes.c_float, 1),
  1714.         ("gain", ctypes.c_float, 1),
  1715.         ("noisebasis", ctypes.c_int, 1),],
  1716.         ctypes.c_float )
  1717.  
  1718. voronoi = _c_external_function(         "voronoi", [
  1719.         ("x", ctypes.c_float, 1),
  1720.         ("y", ctypes.c_float, 1),
  1721.         ("z", ctypes.c_float, 1),
  1722.         ("da", ctypes.POINTER( ctypes.c_float ), 1),
  1723.         ("pa", ctypes.POINTER( ctypes.c_float ), 1),
  1724.         ("me", ctypes.c_float, 1),
  1725.         ("dtype", ctypes.c_int, 1),],
  1726.         ctypes.c_void_p )
  1727.  
  1728. cellNoise = _c_external_function(               "cellNoise", [
  1729.         ("x", ctypes.c_float, 1),
  1730.         ("y", ctypes.c_float, 1),
  1731.         ("z", ctypes.c_float, 1),],
  1732.         ctypes.c_float )
  1733.  
  1734. cellNoiseV = _c_external_function(              "cellNoiseV", [
  1735.         ("x", ctypes.c_float, 1),
  1736.         ("y", ctypes.c_float, 1),
  1737.         ("z", ctypes.c_float, 1),
  1738.         ("ca", ctypes.POINTER( ctypes.c_float ), 1),],
  1739.         ctypes.c_void_p )
  1740.  
  1741. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  1742. #class MemFile(ctypes.Structure): pass          # typedef or forward reference #
  1743. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  1744. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  1745. #class Scene(ctypes.Structure): pass            # typedef or forward reference #
  1746. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  1747. BKE_read_file = _c_external_function(           "BKE_read_file", [
  1748.         ("C", ctypes.c_void_p, 1),
  1749.         ("dir", ctypes.c_char_p, 1),
  1750.         ("type_r", ctypes.POINTER( ctypes.c_void_p ), 1),
  1751.         ("reports", ctypes.c_void_p, 1),],
  1752.         ctypes.c_int )
  1753.  
  1754. BKE_read_file_from_memory = _c_external_function(               "BKE_read_file_from_memory", [
  1755.         ("C", ctypes.c_void_p, 1),
  1756.         ("filebuf", ctypes.c_char_p, 1),
  1757.         ("filelength", ctypes.c_int, 1),
  1758.         ("type_r", ctypes.POINTER( ctypes.c_void_p ), 1),
  1759.         ("reports", ctypes.c_void_p, 1),],
  1760.         ctypes.c_int )
  1761.  
  1762. BKE_read_file_from_memfile = _c_external_function(              "BKE_read_file_from_memfile", [
  1763.         ("C", ctypes.c_void_p, 1),
  1764.         ("memfile", ctypes.c_void_p, 1),
  1765.         ("reports", ctypes.c_void_p, 1),],
  1766.         ctypes.c_int )
  1767.  
  1768. free_blender = _c_external_function(            "free_blender", [],
  1769.         ctypes.c_void_p )
  1770.  
  1771. initglobals = _c_external_function(             "initglobals", [],
  1772.         ctypes.c_void_p )
  1773.  
  1774. BKE_userdef_free = _c_external_function(                "BKE_userdef_free", [],
  1775.         ctypes.c_void_p )
  1776.  
  1777. set_blender_test_break_cb = _c_external_function(               "set_blender_test_break_cb", [
  1778.         ("func", ctypes.c_void_p, 1),],
  1779.         ctypes.c_void_p )
  1780.  
  1781. blender_test_break = _c_external_function(              "blender_test_break", [],
  1782.         ctypes.c_int )
  1783.  
  1784. BKE_write_undo = _c_external_function(          "BKE_write_undo", [
  1785.         ("C", ctypes.c_void_p, 1),
  1786.         ("name", ctypes.c_char_p, 1),],
  1787.         ctypes.c_void_p )
  1788.  
  1789. BKE_undo_step = _c_external_function(           "BKE_undo_step", [
  1790.         ("C", ctypes.c_void_p, 1),
  1791.         ("step", ctypes.c_int, 1),],
  1792.         ctypes.c_void_p )
  1793.  
  1794. BKE_undo_name = _c_external_function(           "BKE_undo_name", [
  1795.         ("C", ctypes.c_void_p, 1),
  1796.         ("name", ctypes.c_char_p, 1),],
  1797.         ctypes.c_void_p )
  1798.  
  1799. BKE_reset_undo = _c_external_function(          "BKE_reset_undo", [],
  1800.         ctypes.c_void_p )
  1801.  
  1802. BKE_undo_menu_string = _c_external_function(            "BKE_undo_menu_string", [],
  1803.         ctypes.c_char )
  1804.  
  1805. BKE_undo_number = _c_external_function(         "BKE_undo_number", [
  1806.         ("C", ctypes.c_void_p, 1),
  1807.         ("nr", ctypes.c_int, 1),],
  1808.         ctypes.c_void_p )
  1809.  
  1810. BKE_undo_save_quit = _c_external_function(              "BKE_undo_save_quit", [],
  1811.         ctypes.c_void_p )
  1812.  
  1813. BKE_undo_get_main = _c_external_function(               "BKE_undo_get_main", [
  1814.         ("scene", ctypes.c_void_p, 1),],
  1815.         ctypes.c_void_p )
  1816.  
  1817. #class ParameterList(ctypes.Structure): pass            # typedef or forward reference #
  1818. #class FunctionRNA(ctypes.Structure): pass              # typedef or forward reference #
  1819. #class PropertyRNA(ctypes.Structure): pass              # typedef or forward reference #
  1820. #class StructRNA(ctypes.Structure): pass                # typedef or forward reference #
  1821. #class BlenderRNA(ctypes.Structure): pass               # typedef or forward reference #
  1822. #class IDProperty(ctypes.Structure): pass               # typedef or forward reference #
  1823. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  1824. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  1825. class PointerRNA(ctypes.Structure): _fields_=[
  1826.         ( "id", ctypes.c_void_p ),
  1827.         ( "type", ctypes.c_void_p ),
  1828.         ( "data", ctypes.POINTER( ctypes.c_void_p ) ),]
  1829.  
  1830. class PropertyPointerRNA(ctypes.Structure): _fields_=[
  1831.         ( "ptr", ctypes.c_void_p ),
  1832.         ( "prop", ctypes.c_void_p ),]
  1833.  
  1834. PropertyType = {
  1835.         "PROP_BOOLEAN" : 0,
  1836.         "PROP_INT" : 1,
  1837.         "PROP_FLOAT" : 2,
  1838.         "PROP_STRING" : 3,
  1839.         "PROP_ENUM" : 4,
  1840.         "PROP_POINTER" : 5,
  1841.         "PROP_COLLECTION" : 6,
  1842. }
  1843.  
  1844. PropertyUnit = {
  1845.         "PROP_UNIT_NONE" : 0,
  1846.         "PROP_UNIT_LENGTH" : 4194304,
  1847.         "PROP_UNIT_AREA" : 8388608,
  1848.         "PROP_UNIT_VOLUME" : 12582912,
  1849.         "PROP_UNIT_MASS" : 16777216,
  1850.         "PROP_UNIT_ROTATION" : 20971520,
  1851.         "PROP_UNIT_TIME" : 25165824,
  1852.         "PROP_UNIT_VELOCITY" : 29360128,
  1853.         "PROP_UNIT_ACCELERATION" : 33554432,
  1854. }
  1855.  
  1856. PropertySubType = {
  1857.         "PROP_NONE" : 0,
  1858.         "PROP_FILEPATH" : 1,
  1859.         "PROP_DIRPATH" : 2,
  1860.         "PROP_FILENAME" : 3,
  1861.         "PROP_UNSIGNED" : 19,
  1862.         "PROP_PERCENTAGE" : 20,
  1863.         "PROP_FACTOR" : 21,
  1864.         "PROP_ANGLE" : 20971542,
  1865.         "PROP_TIME" : 25165847,
  1866.         "PROP_DISTANCE" : 4194328,
  1867.         "PROP_COLOR" : 32,
  1868.         "PROP_TRANSLATION" : 4194337,
  1869.         "PROP_DIRECTION" : 34,
  1870.         "PROP_VELOCITY" : 29360163,
  1871.         "PROP_ACCELERATION" : 33554468,
  1872.         "PROP_MATRIX" : 37,
  1873.         "PROP_EULER" : 20971558,
  1874.         "PROP_QUATERNION" : 39,
  1875.         "PROP_AXISANGLE" : 40,
  1876.         "PROP_XYZ" : 41,
  1877.         "PROP_XYZ_LENGTH" : 4194345,
  1878.         "PROP_COLOR_GAMMA" : 48,
  1879.         "PROP_LAYER" : 64,
  1880.         "PROP_LAYER_MEMBER" : 65,
  1881. }
  1882.  
  1883. PropertyFlag = {
  1884.         "PROP_EDITABLE" : 1,
  1885.         "PROP_LIB_EXCEPTION" : 4194304,
  1886.         "PROP_ANIMATABLE" : 2,
  1887.         "PROP_ICONS_CONSECUTIVE" : 262144,
  1888.         "PROP_HIDDEN" : 33554432,
  1889.         "PROP_REQUIRED" : 4,
  1890.         "PROP_OUTPUT" : 8,
  1891.         "PROP_RNAPTR" : 131072,
  1892.         "PROP_REGISTER" : 16,
  1893.         "PROP_REGISTER_OPTIONAL" : 48,
  1894.         "PROP_ID_REFCOUNT" : 64,
  1895.         "PROP_ID_SELF_CHECK" : 4294967296,
  1896.         "PROP_NEVER_NULL" : 16777216,
  1897.         "PROP_ENUM_FLAG" : 8589934592,
  1898.         "PROP_CONTEXT_UPDATE" : 17179869184,
  1899.         "PROP_THICK_WRAP" : 34359738368,
  1900.         "PROP_BUILTIN" : 128,
  1901.         "PROP_EXPORT" : 256,
  1902.         "PROP_RUNTIME" : 512,
  1903.         "PROP_IDPROPERTY" : 65536,
  1904.         "PROP_RAW_ACCESS" : 524288,
  1905.         "PROP_RAW_ARRAY" : 1048576,
  1906.         "PROP_FREE_POINTERS" : 2097152,
  1907.         "PROP_DYNAMIC" : 8388608,
  1908.         "PROP_ENUM_NO_CONTEXT" : 16777216,
  1909. }
  1910.  
  1911. class CollectionPropertyIterator(ctypes.Structure): _fields_=[
  1912.         ( "parent", ctypes.c_void_p ),
  1913.         ( "builtin_parent", ctypes.c_void_p ),
  1914.         ( "prop", ctypes.c_void_p ),
  1915.         ( "internal", ctypes.POINTER( ctypes.c_void_p ) ),
  1916.         ( "idprop", ctypes.c_int ),
  1917.         ( "level", ctypes.c_int ),
  1918.         ( "valid", ctypes.c_int ),
  1919.         ( "ptr", ctypes.c_void_p ),]
  1920.  
  1921. class CollectionPointerLink(ctypes.Structure): _fields_=[
  1922.         ( "next", ctypes.c_void_p ),
  1923.         ( "prev", ctypes.c_void_p ),
  1924.         ( "ptr", ctypes.c_void_p ),]
  1925.  
  1926. RawPropertyType = {
  1927.         "PROP_RAW_UNSET" : 0,
  1928.         "PROP_RAW_INT" : 1,
  1929.         "PROP_RAW_SHORT" : 2,
  1930.         "PROP_RAW_CHAR" : 3,
  1931.         "PROP_RAW_DOUBLE" : 4,
  1932.         "PROP_RAW_FLOAT" : 5,
  1933. }
  1934.  
  1935. class RawArray(ctypes.Structure): _fields_=[
  1936.         ( "array", ctypes.POINTER( ctypes.c_void_p ) ),
  1937.         ( "type", ctypes.c_void_p ),
  1938.         ( "len", ctypes.c_int ),
  1939.         ( "stride", ctypes.c_int ),]
  1940.  
  1941. class EnumPropertyItem(ctypes.Structure): _fields_=[
  1942.         ( "value", ctypes.c_int ),
  1943.         ( "identifier", ctypes.c_char_p ),
  1944.         ( "icon", ctypes.c_int ),
  1945.         ( "name", ctypes.c_char_p ),
  1946.         ( "description", ctypes.c_char_p ),]
  1947.  
  1948. EnumPropertyItemFunc = _c_external_function(            "EnumPropertyItemFunc", [
  1949.         ("C", ctypes.c_void_p, 1),
  1950.         ("ptr", ctypes.c_void_p, 1),
  1951.         ("free", ctypes.POINTER( ctypes.c_int ), 1),],
  1952.         ctypes.c_void_p )
  1953.  
  1954. #class PropertyRNA(ctypes.Structure): pass              # typedef or forward reference #
  1955. class ParameterList(ctypes.Structure): _fields_=[
  1956.         ( "data", ctypes.POINTER( ctypes.c_void_p ) ),
  1957.         ( "alloc_size", ctypes.c_int ),
  1958.         ( "arg_count", ctypes.c_int ),
  1959.         ( "ret_count", ctypes.c_int ),
  1960.         ( "func", ctypes.c_void_p ),]
  1961.  
  1962. class ParameterIterator(ctypes.Structure): _fields_=[
  1963.         ( "parms", ctypes.c_void_p ),
  1964.         ( "funcptr", ctypes.c_void_p ),
  1965.         ( "data", ctypes.POINTER( ctypes.c_void_p ) ),
  1966.         ( "size", ctypes.c_int ),
  1967.         ( "offset", ctypes.c_int ),
  1968.         ( "parm", ctypes.c_void_p ),
  1969.         ( "valid", ctypes.c_int ),]
  1970.  
  1971. class ParameterDynAlloc(ctypes.Structure): _fields_=[
  1972.         ( "array_tot", ctypes.c_void_p ),
  1973.         ( "array", ctypes.POINTER( ctypes.c_void_p ) ),]
  1974.  
  1975. FunctionFlag = {
  1976.         "FUNC_NO_SELF" : 1,
  1977.         "FUNC_USE_CONTEXT" : 2,
  1978.         "FUNC_USE_REPORTS" : 4,
  1979.         "FUNC_USE_SELF_ID" : 8264,
  1980.         "FUNC_REGISTER" : 8,
  1981.         "FUNC_REGISTER_OPTIONAL" : 30,
  1982.         "FUNC_BUILTIN" : 296,
  1983.         "FUNC_EXPORT" : 598,
  1984.         "FUNC_RUNTIME" : 1298,
  1985.         "FUNC_FREE_POINTERS" : 4132,
  1986. }
  1987.  
  1988. CallFunc = _c_external_function(                "CallFunc", [
  1989.         ("C", ctypes.c_void_p, 1),
  1990.         ("reports", ctypes.c_void_p, 1),
  1991.         ("ptr", ctypes.c_void_p, 1),
  1992.         ("parms", ctypes.c_void_p, 1),],
  1993.         ctypes.c_void_p )
  1994.  
  1995. #class FunctionRNA(ctypes.Structure): pass              # typedef or forward reference #
  1996. StructFlag = {
  1997.         "STRUCT_ID" : 1,
  1998.         "STRUCT_ID_REFCOUNT" : 2,
  1999.         "STRUCT_RUNTIME" : 4,
  2000.         "STRUCT_GENERATED" : 8,
  2001.         "STRUCT_FREE_POINTERS" : 22,
  2002.         "STRUCT_NO_IDPROPERTIES" : 50,
  2003. }
  2004.  
  2005. StructValidateFunc = _c_external_function(              "StructValidateFunc", [
  2006.         ("ptr", ctypes.c_void_p, 1),
  2007.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),
  2008.         ("have_function", ctypes.POINTER( ctypes.c_int ), 1),],
  2009.         ctypes.c_int )
  2010.  
  2011. StructCallbackFunc = _c_external_function(              "StructCallbackFunc", [
  2012.         ("ptr", ctypes.c_void_p, 1),
  2013.         ("func", ctypes.c_void_p, 1),
  2014.         ("list", ctypes.c_void_p, 1),],
  2015.         ctypes.c_int )
  2016.  
  2017. StructFreeFunc = _c_external_function(          "StructFreeFunc", [],
  2018.         ctypes.c_void_p )
  2019.  
  2020. StructRegisterFunc = _c_external_function(              "StructRegisterFunc", [
  2021.         ("C", ctypes.c_void_p, 1),
  2022.         ("reports", ctypes.c_void_p, 1),
  2023.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),
  2024.         ("identifier", ctypes.c_char_p, 1),
  2025.         ("validate", ctypes.c_void_p, 1),
  2026.         ("call", ctypes.c_void_p, 1),
  2027.         ("free", ctypes.c_void_p, 1),],
  2028.         ctypes.c_void_p )
  2029.  
  2030. StructUnregisterFunc = _c_external_function(            "StructUnregisterFunc", [
  2031.         ("C", ctypes.c_void_p, 1),
  2032.         ("type", ctypes.c_void_p, 1),],
  2033.         ctypes.c_void_p )
  2034.  
  2035. #class StructRNA(ctypes.Structure): pass                # typedef or forward reference #
  2036. #class BlenderRNA(ctypes.Structure): pass               # typedef or forward reference #
  2037. class ExtensionRNA(ctypes.Structure): _fields_=[
  2038.         ( "data", ctypes.POINTER( ctypes.c_void_p ) ),
  2039.         ( "srna", ctypes.c_void_p ),
  2040.         ( "call", ctypes.c_void_p ),
  2041.         ( "free", ctypes.c_void_p ),]
  2042.  
  2043. #class ARegion(ctypes.Structure): pass          # typedef or forward reference #
  2044. #class bScreen(ctypes.Structure): pass          # typedef or forward reference #
  2045. #class EditMesh(ctypes.Structure): pass         # typedef or forward reference #
  2046. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  2047. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  2048. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  2049. #class PointerRNA(ctypes.Structure): pass               # typedef or forward reference #
  2050. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  2051. #class Scene(ctypes.Structure): pass            # typedef or forward reference #
  2052. #class ScrArea(ctypes.Structure): pass          # typedef or forward reference #
  2053. #class SpaceLink(ctypes.Structure): pass                # typedef or forward reference #
  2054. #class View3D(ctypes.Structure): pass           # typedef or forward reference #
  2055. #class RegionView3D(ctypes.Structure): pass             # typedef or forward reference #
  2056. #class StructRNA(ctypes.Structure): pass                # typedef or forward reference #
  2057. #class ToolSettings(ctypes.Structure): pass             # typedef or forward reference #
  2058. #class Image(ctypes.Structure): pass            # typedef or forward reference #
  2059. #class Text(ctypes.Structure): pass             # typedef or forward reference #
  2060. #class ImBuf(ctypes.Structure): pass            # typedef or forward reference #
  2061. #class EditBone(ctypes.Structure): pass         # typedef or forward reference #
  2062. #class bPoseChannel(ctypes.Structure): pass             # typedef or forward reference #
  2063. #class wmWindow(ctypes.Structure): pass         # typedef or forward reference #
  2064. #class wmWindowManager(ctypes.Structure): pass          # typedef or forward reference #
  2065. #class SpaceText(ctypes.Structure): pass                # typedef or forward reference #
  2066. #class SpaceImage(ctypes.Structure): pass               # typedef or forward reference #
  2067. #class ID(ctypes.Structure): pass               # typedef or forward reference #
  2068. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  2069. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  2070. #class bContextDataResult(ctypes.Structure): pass               # typedef or forward reference #
  2071. #class bContextDataResult(ctypes.Structure): pass               # typedef or forward reference #
  2072. bContextDataCallback = _c_external_function(            "bContextDataCallback", [
  2073.         ("C", ctypes.c_void_p, 1),
  2074.         ("member", ctypes.c_char_p, 1),
  2075.         ("result", ctypes.c_void_p, 1),],
  2076.         ctypes.c_int )
  2077.  
  2078. class bContextStoreEntry(ctypes.Structure): _fields_=[
  2079.         ( "next", ctypes.c_void_p ),
  2080.         ( "prev", ctypes.c_void_p ),
  2081.         ( "name", ctypes.c_char ),
  2082.         ( "ptr", ctypes.c_void_p ),]
  2083.  
  2084. class bContextStore(ctypes.Structure): _fields_=[
  2085.         ( "next", ctypes.c_void_p ),
  2086.         ( "prev", ctypes.c_void_p ),
  2087.         ( "entries", ctypes.c_void_p ),
  2088.         ( "used", ctypes.c_int ),]
  2089.  
  2090. #None                                                   <ast=Decl>
  2091. CTX_create = _c_external_function(              "CTX_create", [],
  2092.         ctypes.c_void_p )
  2093.  
  2094. CTX_free = _c_external_function(                "CTX_free", [
  2095.         ("C", ctypes.c_void_p, 1),],
  2096.         ctypes.c_void_p )
  2097.  
  2098. CTX_copy = _c_external_function(                "CTX_copy", [
  2099.         ("C", ctypes.c_void_p, 1),],
  2100.         ctypes.c_void_p )
  2101.  
  2102. CTX_store_add = _c_external_function(           "CTX_store_add", [
  2103.         ("contexts", ctypes.c_void_p, 1),
  2104.         ("name", ctypes.c_char_p, 1),
  2105.         ("ptr", ctypes.c_void_p, 1),],
  2106.         ctypes.c_void_p )
  2107.  
  2108. CTX_store_set = _c_external_function(           "CTX_store_set", [
  2109.         ("C", ctypes.c_void_p, 1),
  2110.         ("store", ctypes.c_void_p, 1),],
  2111.         ctypes.c_void_p )
  2112.  
  2113. CTX_store_copy = _c_external_function(          "CTX_store_copy", [
  2114.         ("store", ctypes.c_void_p, 1),],
  2115.         ctypes.c_void_p )
  2116.  
  2117. CTX_store_free = _c_external_function(          "CTX_store_free", [
  2118.         ("store", ctypes.c_void_p, 1),],
  2119.         ctypes.c_void_p )
  2120.  
  2121. CTX_store_free_list = _c_external_function(             "CTX_store_free_list", [
  2122.         ("contexts", ctypes.c_void_p, 1),],
  2123.         ctypes.c_void_p )
  2124.  
  2125. CTX_py_init_get = _c_external_function(         "CTX_py_init_get", [
  2126.         ("C", ctypes.c_void_p, 1),],
  2127.         ctypes.c_int )
  2128.  
  2129. CTX_py_init_set = _c_external_function(         "CTX_py_init_set", [
  2130.         ("C", ctypes.c_void_p, 1),
  2131.         ("value", ctypes.c_int, 1),],
  2132.         ctypes.c_void_p )
  2133.  
  2134. CTX_py_dict_get = _c_external_function(         "CTX_py_dict_get", [
  2135.         ("C", ctypes.c_void_p, 1),],
  2136.         ctypes.c_void_p )
  2137.  
  2138. CTX_py_dict_set = _c_external_function(         "CTX_py_dict_set", [
  2139.         ("C", ctypes.c_void_p, 1),
  2140.         ("value", ctypes.POINTER( ctypes.c_void_p ), 1),],
  2141.         ctypes.c_void_p )
  2142.  
  2143. CTX_wm_manager = _c_external_function(          "CTX_wm_manager", [
  2144.         ("C", ctypes.c_void_p, 1),],
  2145.         ctypes.c_void_p )
  2146.  
  2147. CTX_wm_window = _c_external_function(           "CTX_wm_window", [
  2148.         ("C", ctypes.c_void_p, 1),],
  2149.         ctypes.c_void_p )
  2150.  
  2151. CTX_wm_screen = _c_external_function(           "CTX_wm_screen", [
  2152.         ("C", ctypes.c_void_p, 1),],
  2153.         ctypes.c_void_p )
  2154.  
  2155. CTX_wm_area = _c_external_function(             "CTX_wm_area", [
  2156.         ("C", ctypes.c_void_p, 1),],
  2157.         ctypes.c_void_p )
  2158.  
  2159. CTX_wm_space_data = _c_external_function(               "CTX_wm_space_data", [
  2160.         ("C", ctypes.c_void_p, 1),],
  2161.         ctypes.c_void_p )
  2162.  
  2163. CTX_wm_region = _c_external_function(           "CTX_wm_region", [
  2164.         ("C", ctypes.c_void_p, 1),],
  2165.         ctypes.c_void_p )
  2166.  
  2167. CTX_wm_region_data = _c_external_function(              "CTX_wm_region_data", [
  2168.         ("C", ctypes.c_void_p, 1),],
  2169.         ctypes.c_void_p )
  2170.  
  2171. CTX_wm_menu = _c_external_function(             "CTX_wm_menu", [
  2172.         ("C", ctypes.c_void_p, 1),],
  2173.         ctypes.c_void_p )
  2174.  
  2175. CTX_wm_reports = _c_external_function(          "CTX_wm_reports", [
  2176.         ("C", ctypes.c_void_p, 1),],
  2177.         ctypes.c_void_p )
  2178.  
  2179. CTX_wm_view3d = _c_external_function(           "CTX_wm_view3d", [
  2180.         ("C", ctypes.c_void_p, 1),],
  2181.         ctypes.c_void_p )
  2182.  
  2183. CTX_wm_region_view3d = _c_external_function(            "CTX_wm_region_view3d", [
  2184.         ("C", ctypes.c_void_p, 1),],
  2185.         ctypes.c_void_p )
  2186.  
  2187. CTX_wm_space_text = _c_external_function(               "CTX_wm_space_text", [
  2188.         ("C", ctypes.c_void_p, 1),],
  2189.         ctypes.c_void_p )
  2190.  
  2191. CTX_wm_space_image = _c_external_function(              "CTX_wm_space_image", [
  2192.         ("C", ctypes.c_void_p, 1),],
  2193.         ctypes.c_void_p )
  2194.  
  2195. CTX_wm_space_console = _c_external_function(            "CTX_wm_space_console", [
  2196.         ("C", ctypes.c_void_p, 1),],
  2197.         ctypes.c_void_p )
  2198.  
  2199. CTX_wm_space_buts = _c_external_function(               "CTX_wm_space_buts", [
  2200.         ("C", ctypes.c_void_p, 1),],
  2201.         ctypes.c_void_p )
  2202.  
  2203. CTX_wm_space_file = _c_external_function(               "CTX_wm_space_file", [
  2204.         ("C", ctypes.c_void_p, 1),],
  2205.         ctypes.c_void_p )
  2206.  
  2207. CTX_wm_space_seq = _c_external_function(                "CTX_wm_space_seq", [
  2208.         ("C", ctypes.c_void_p, 1),],
  2209.         ctypes.c_void_p )
  2210.  
  2211. CTX_wm_space_outliner = _c_external_function(           "CTX_wm_space_outliner", [
  2212.         ("C", ctypes.c_void_p, 1),],
  2213.         ctypes.c_void_p )
  2214.  
  2215. CTX_wm_space_nla = _c_external_function(                "CTX_wm_space_nla", [
  2216.         ("C", ctypes.c_void_p, 1),],
  2217.         ctypes.c_void_p )
  2218.  
  2219. CTX_wm_space_time = _c_external_function(               "CTX_wm_space_time", [
  2220.         ("C", ctypes.c_void_p, 1),],
  2221.         ctypes.c_void_p )
  2222.  
  2223. CTX_wm_space_node = _c_external_function(               "CTX_wm_space_node", [
  2224.         ("C", ctypes.c_void_p, 1),],
  2225.         ctypes.c_void_p )
  2226.  
  2227. CTX_wm_space_logic = _c_external_function(              "CTX_wm_space_logic", [
  2228.         ("C", ctypes.c_void_p, 1),],
  2229.         ctypes.c_void_p )
  2230.  
  2231. CTX_wm_space_graph = _c_external_function(              "CTX_wm_space_graph", [
  2232.         ("C", ctypes.c_void_p, 1),],
  2233.         ctypes.c_void_p )
  2234.  
  2235. CTX_wm_space_action = _c_external_function(             "CTX_wm_space_action", [
  2236.         ("C", ctypes.c_void_p, 1),],
  2237.         ctypes.c_void_p )
  2238.  
  2239. CTX_wm_space_info = _c_external_function(               "CTX_wm_space_info", [
  2240.         ("C", ctypes.c_void_p, 1),],
  2241.         ctypes.c_void_p )
  2242.  
  2243. CTX_wm_space_userpref = _c_external_function(           "CTX_wm_space_userpref", [
  2244.         ("C", ctypes.c_void_p, 1),],
  2245.         ctypes.c_void_p )
  2246.  
  2247. CTX_wm_manager_set = _c_external_function(              "CTX_wm_manager_set", [
  2248.         ("C", ctypes.c_void_p, 1),
  2249.         ("wm", ctypes.c_void_p, 1),],
  2250.         ctypes.c_void_p )
  2251.  
  2252. CTX_wm_window_set = _c_external_function(               "CTX_wm_window_set", [
  2253.         ("C", ctypes.c_void_p, 1),
  2254.         ("win", ctypes.c_void_p, 1),],
  2255.         ctypes.c_void_p )
  2256.  
  2257. CTX_wm_screen_set = _c_external_function(               "CTX_wm_screen_set", [
  2258.         ("C", ctypes.c_void_p, 1),
  2259.         ("screen", ctypes.c_void_p, 1),],
  2260.         ctypes.c_void_p )
  2261.  
  2262. CTX_wm_area_set = _c_external_function(         "CTX_wm_area_set", [
  2263.         ("C", ctypes.c_void_p, 1),
  2264.         ("sa", ctypes.c_void_p, 1),],
  2265.         ctypes.c_void_p )
  2266.  
  2267. CTX_wm_region_set = _c_external_function(               "CTX_wm_region_set", [
  2268.         ("C", ctypes.c_void_p, 1),
  2269.         ("region", ctypes.c_void_p, 1),],
  2270.         ctypes.c_void_p )
  2271.  
  2272. CTX_wm_menu_set = _c_external_function(         "CTX_wm_menu_set", [
  2273.         ("C", ctypes.c_void_p, 1),
  2274.         ("menu", ctypes.c_void_p, 1),],
  2275.         ctypes.c_void_p )
  2276.  
  2277. #None                                                   <ast=Decl>
  2278. CTX_data_pointer_get = _c_external_function(            "CTX_data_pointer_get", [
  2279.         ("C", ctypes.c_void_p, 1),
  2280.         ("member", ctypes.c_char_p, 1),],
  2281.         ctypes.c_void_p )
  2282.  
  2283. CTX_data_pointer_get_type = _c_external_function(               "CTX_data_pointer_get_type", [
  2284.         ("C", ctypes.c_void_p, 1),
  2285.         ("member", ctypes.c_char_p, 1),
  2286.         ("type", ctypes.c_void_p, 1),],
  2287.         ctypes.c_void_p )
  2288.  
  2289. CTX_data_collection_get = _c_external_function(         "CTX_data_collection_get", [
  2290.         ("C", ctypes.c_void_p, 1),
  2291.         ("member", ctypes.c_char_p, 1),],
  2292.         ctypes.c_void_p )
  2293.  
  2294. CTX_data_dir_get = _c_external_function(                "CTX_data_dir_get", [
  2295.         ("C", ctypes.c_void_p, 1),],
  2296.         ctypes.c_void_p )
  2297.  
  2298. CTX_data_get = _c_external_function(            "CTX_data_get", [
  2299.         ("C", ctypes.c_void_p, 1),
  2300.         ("member", ctypes.c_char_p, 1),
  2301.         ("r_ptr", ctypes.c_void_p, 1),
  2302.         ("r_lb", ctypes.c_void_p, 1),
  2303.         ("r_type", ctypes.POINTER( ctypes.c_short ), 1),],
  2304.         ctypes.c_int )
  2305.  
  2306. CTX_data_id_pointer_set = _c_external_function(         "CTX_data_id_pointer_set", [
  2307.         ("result", ctypes.c_void_p, 1),
  2308.         ("id", ctypes.c_void_p, 1),],
  2309.         ctypes.c_void_p )
  2310.  
  2311. CTX_data_pointer_set = _c_external_function(            "CTX_data_pointer_set", [
  2312.         ("result", ctypes.c_void_p, 1),
  2313.         ("id", ctypes.c_void_p, 1),
  2314.         ("type", ctypes.c_void_p, 1),
  2315.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  2316.         ctypes.c_void_p )
  2317.  
  2318. CTX_data_id_list_add = _c_external_function(            "CTX_data_id_list_add", [
  2319.         ("result", ctypes.c_void_p, 1),
  2320.         ("id", ctypes.c_void_p, 1),],
  2321.         ctypes.c_void_p )
  2322.  
  2323. CTX_data_list_add = _c_external_function(               "CTX_data_list_add", [
  2324.         ("result", ctypes.c_void_p, 1),
  2325.         ("id", ctypes.c_void_p, 1),
  2326.         ("type", ctypes.c_void_p, 1),
  2327.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  2328.         ctypes.c_void_p )
  2329.  
  2330. CTX_data_dir_set = _c_external_function(                "CTX_data_dir_set", [
  2331.         ("result", ctypes.c_void_p, 1),
  2332.         ("member", ctypes.POINTER( ctypes.c_char_p ), 1),],
  2333.         ctypes.c_void_p )
  2334.  
  2335. CTX_data_type_set = _c_external_function(               "CTX_data_type_set", [
  2336.         ("result", ctypes.c_void_p, 1),
  2337.         ("type", ctypes.c_short, 1),],
  2338.         ctypes.c_void_p )
  2339.  
  2340. CTX_data_type_get = _c_external_function(               "CTX_data_type_get", [
  2341.         ("result", ctypes.c_void_p, 1),],
  2342.         ctypes.c_short )
  2343.  
  2344. CTX_data_equals = _c_external_function(         "CTX_data_equals", [
  2345.         ("member", ctypes.c_char_p, 1),
  2346.         ("str", ctypes.c_char_p, 1),],
  2347.         ctypes.c_int )
  2348.  
  2349. CTX_data_dir = _c_external_function(            "CTX_data_dir", [
  2350.         ("member", ctypes.c_char_p, 1),],
  2351.         ctypes.c_int )
  2352.  
  2353. ctx_data_list_count = _c_external_function(             "ctx_data_list_count", [
  2354.         ("C", ctypes.c_void_p, 1),
  2355.         ("func", ctypes.c_void_p, 1),],
  2356.         ctypes.c_int )
  2357.  
  2358. CTX_data_main = _c_external_function(           "CTX_data_main", [
  2359.         ("C", ctypes.c_void_p, 1),],
  2360.         ctypes.c_void_p )
  2361.  
  2362. CTX_data_scene = _c_external_function(          "CTX_data_scene", [
  2363.         ("C", ctypes.c_void_p, 1),],
  2364.         ctypes.c_void_p )
  2365.  
  2366. CTX_data_tool_settings = _c_external_function(          "CTX_data_tool_settings", [
  2367.         ("C", ctypes.c_void_p, 1),],
  2368.         ctypes.c_void_p )
  2369.  
  2370. CTX_data_mode_string = _c_external_function(            "CTX_data_mode_string", [
  2371.         ("C", ctypes.c_void_p, 1),],
  2372.         ctypes.c_char )
  2373.  
  2374. CTX_data_mode_enum = _c_external_function(              "CTX_data_mode_enum", [
  2375.         ("C", ctypes.c_void_p, 1),],
  2376.         ctypes.c_int )
  2377.  
  2378. CTX_data_main_set = _c_external_function(               "CTX_data_main_set", [
  2379.         ("C", ctypes.c_void_p, 1),
  2380.         ("bmain", ctypes.c_void_p, 1),],
  2381.         ctypes.c_void_p )
  2382.  
  2383. CTX_data_scene_set = _c_external_function(              "CTX_data_scene_set", [
  2384.         ("C", ctypes.c_void_p, 1),
  2385.         ("bmain", ctypes.c_void_p, 1),],
  2386.         ctypes.c_void_p )
  2387.  
  2388. CTX_data_selected_editable_objects = _c_external_function(              "CTX_data_selected_editable_objects", [
  2389.         ("C", ctypes.c_void_p, 1),
  2390.         ("list", ctypes.c_void_p, 1),],
  2391.         ctypes.c_int )
  2392.  
  2393. CTX_data_selected_editable_bases = _c_external_function(                "CTX_data_selected_editable_bases", [
  2394.         ("C", ctypes.c_void_p, 1),
  2395.         ("list", ctypes.c_void_p, 1),],
  2396.         ctypes.c_int )
  2397.  
  2398. CTX_data_selected_objects = _c_external_function(               "CTX_data_selected_objects", [
  2399.         ("C", ctypes.c_void_p, 1),
  2400.         ("list", ctypes.c_void_p, 1),],
  2401.         ctypes.c_int )
  2402.  
  2403. CTX_data_selected_bases = _c_external_function(         "CTX_data_selected_bases", [
  2404.         ("C", ctypes.c_void_p, 1),
  2405.         ("list", ctypes.c_void_p, 1),],
  2406.         ctypes.c_int )
  2407.  
  2408. CTX_data_visible_objects = _c_external_function(                "CTX_data_visible_objects", [
  2409.         ("C", ctypes.c_void_p, 1),
  2410.         ("list", ctypes.c_void_p, 1),],
  2411.         ctypes.c_int )
  2412.  
  2413. CTX_data_visible_bases = _c_external_function(          "CTX_data_visible_bases", [
  2414.         ("C", ctypes.c_void_p, 1),
  2415.         ("list", ctypes.c_void_p, 1),],
  2416.         ctypes.c_int )
  2417.  
  2418. CTX_data_selectable_objects = _c_external_function(             "CTX_data_selectable_objects", [
  2419.         ("C", ctypes.c_void_p, 1),
  2420.         ("list", ctypes.c_void_p, 1),],
  2421.         ctypes.c_int )
  2422.  
  2423. CTX_data_selectable_bases = _c_external_function(               "CTX_data_selectable_bases", [
  2424.         ("C", ctypes.c_void_p, 1),
  2425.         ("list", ctypes.c_void_p, 1),],
  2426.         ctypes.c_int )
  2427.  
  2428. CTX_data_active_object = _c_external_function(          "CTX_data_active_object", [
  2429.         ("C", ctypes.c_void_p, 1),],
  2430.         ctypes.c_void_p )
  2431.  
  2432. CTX_data_active_base = _c_external_function(            "CTX_data_active_base", [
  2433.         ("C", ctypes.c_void_p, 1),],
  2434.         ctypes.c_void_p )
  2435.  
  2436. CTX_data_edit_object = _c_external_function(            "CTX_data_edit_object", [
  2437.         ("C", ctypes.c_void_p, 1),],
  2438.         ctypes.c_void_p )
  2439.  
  2440. CTX_data_edit_image = _c_external_function(             "CTX_data_edit_image", [
  2441.         ("C", ctypes.c_void_p, 1),],
  2442.         ctypes.c_void_p )
  2443.  
  2444. CTX_data_edit_text = _c_external_function(              "CTX_data_edit_text", [
  2445.         ("C", ctypes.c_void_p, 1),],
  2446.         ctypes.c_void_p )
  2447.  
  2448. CTX_data_selected_nodes = _c_external_function(         "CTX_data_selected_nodes", [
  2449.         ("C", ctypes.c_void_p, 1),
  2450.         ("list", ctypes.c_void_p, 1),],
  2451.         ctypes.c_int )
  2452.  
  2453. CTX_data_active_bone = _c_external_function(            "CTX_data_active_bone", [
  2454.         ("C", ctypes.c_void_p, 1),],
  2455.         ctypes.c_void_p )
  2456.  
  2457. CTX_data_selected_bones = _c_external_function(         "CTX_data_selected_bones", [
  2458.         ("C", ctypes.c_void_p, 1),
  2459.         ("list", ctypes.c_void_p, 1),],
  2460.         ctypes.c_int )
  2461.  
  2462. CTX_data_selected_editable_bones = _c_external_function(                "CTX_data_selected_editable_bones", [
  2463.         ("C", ctypes.c_void_p, 1),
  2464.         ("list", ctypes.c_void_p, 1),],
  2465.         ctypes.c_int )
  2466.  
  2467. CTX_data_visible_bones = _c_external_function(          "CTX_data_visible_bones", [
  2468.         ("C", ctypes.c_void_p, 1),
  2469.         ("list", ctypes.c_void_p, 1),],
  2470.         ctypes.c_int )
  2471.  
  2472. CTX_data_editable_bones = _c_external_function(         "CTX_data_editable_bones", [
  2473.         ("C", ctypes.c_void_p, 1),
  2474.         ("list", ctypes.c_void_p, 1),],
  2475.         ctypes.c_int )
  2476.  
  2477. CTX_data_active_pose_bone = _c_external_function(               "CTX_data_active_pose_bone", [
  2478.         ("C", ctypes.c_void_p, 1),],
  2479.         ctypes.c_void_p )
  2480.  
  2481. CTX_data_selected_pose_bones = _c_external_function(            "CTX_data_selected_pose_bones", [
  2482.         ("C", ctypes.c_void_p, 1),
  2483.         ("list", ctypes.c_void_p, 1),],
  2484.         ctypes.c_int )
  2485.  
  2486. CTX_data_visible_pose_bones = _c_external_function(             "CTX_data_visible_pose_bones", [
  2487.         ("C", ctypes.c_void_p, 1),
  2488.         ("list", ctypes.c_void_p, 1),],
  2489.         ctypes.c_int )
  2490.  
  2491. #class VFont(ctypes.Structure): pass            # typedef or forward reference #
  2492. #class Scene(ctypes.Structure): pass            # typedef or forward reference #
  2493. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  2494. #class Curve(ctypes.Structure): pass            # typedef or forward reference #
  2495. #class objfnt(ctypes.Structure): pass           # typedef or forward reference #
  2496. #class TmpFont(ctypes.Structure): pass          # typedef or forward reference #
  2497. #class CharInfo(ctypes.Structure): pass         # typedef or forward reference #
  2498. class chartrans(ctypes.Structure): _fields_=[
  2499.         ( "xof", ctypes.c_float ),
  2500.         ( "yof", ctypes.c_float ),
  2501.         ( "rot", ctypes.c_float ),
  2502.         ( "linenr", ctypes.c_short ),
  2503.         ( "charnr", ctypes.c_short ),
  2504.         ( "dobreak", ctypes.c_char ),]
  2505.  
  2506. class SelBox(ctypes.Structure): _fields_=[
  2507.         ( "x", ctypes.c_float ),
  2508.         ( "y", ctypes.c_float ),
  2509.         ( "w", ctypes.c_float ),
  2510.         ( "h", ctypes.c_float ),]
  2511.  
  2512. class EditFont(ctypes.Structure): _fields_=[
  2513.         ( "copybuf", ctypes.c_void_p ),
  2514.         ( "copybufinfo", ctypes.c_void_p ),
  2515.         ( "textbuf", ctypes.c_void_p ),
  2516.         ( "textbufinfo", ctypes.c_void_p ),
  2517.         ( "oldstr", ctypes.c_void_p ),
  2518.         ( "oldstrinfo", ctypes.c_void_p ),
  2519.         ( "textcurs", ctypes.c_float ),]
  2520.  
  2521. BKE_font_register_builtin = _c_external_function(               "BKE_font_register_builtin", [
  2522.         ("mem", ctypes.POINTER( ctypes.c_void_p ), 1),
  2523.         ("size", ctypes.c_int, 1),],
  2524.         ctypes.c_void_p )
  2525.  
  2526. free_vfont = _c_external_function(              "free_vfont", [
  2527.         ("sc", ctypes.c_void_p, 1),],
  2528.         ctypes.c_void_p )
  2529.  
  2530. free_ttfont = _c_external_function(             "free_ttfont", [],
  2531.         ctypes.c_void_p )
  2532.  
  2533. get_builtin_font = _c_external_function(                "get_builtin_font", [],
  2534.         ctypes.c_void_p )
  2535.  
  2536. load_vfont = _c_external_function(              "load_vfont", [
  2537.         ("name", ctypes.c_char_p, 1),],
  2538.         ctypes.c_void_p )
  2539.  
  2540. vfont_find_tmpfont = _c_external_function(              "vfont_find_tmpfont", [
  2541.         ("vfont", ctypes.c_void_p, 1),],
  2542.         ctypes.c_void_p )
  2543.  
  2544. BKE_text_to_curve = _c_external_function(               "BKE_text_to_curve", [
  2545.         ("scene", ctypes.c_void_p, 1),
  2546.         ("ob", ctypes.c_void_p, 1),
  2547.         ("mode", ctypes.c_int, 1),],
  2548.         ctypes.c_void_p )
  2549.  
  2550. BKE_font_getselection = _c_external_function(           "BKE_font_getselection", [
  2551.         ("ob", ctypes.c_void_p, 1),
  2552.         ("start", ctypes.POINTER( ctypes.c_int ), 1),
  2553.         ("end", ctypes.POINTER( ctypes.c_int ), 1),],
  2554.         ctypes.c_int )
  2555.  
  2556. chtoutf8 = _c_external_function(                "chtoutf8", [
  2557.         ("c", ctypes.c_long, 1),
  2558.         ("o", ctypes.c_char_p, 1),],
  2559.         ctypes.c_void_p )
  2560.  
  2561. wcs2utf8s = _c_external_function(               "wcs2utf8s", [
  2562.         ("dst", ctypes.c_char_p, 1),
  2563.         ("src", ctypes.c_void_p, 1),],
  2564.         ctypes.c_void_p )
  2565.  
  2566. wcsleninu8 = _c_external_function(              "wcsleninu8", [
  2567.         ("src", ctypes.c_void_p, 1),],
  2568.         ctypes.c_int )
  2569.  
  2570. utf8towchar = _c_external_function(             "utf8towchar", [
  2571.         ("w", ctypes.c_void_p, 1),
  2572.         ("c", ctypes.c_char_p, 1),],
  2573.         ctypes.c_int )
  2574.  
  2575. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  2576. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  2577. #class BME_Glob(ctypes.Structure): pass         # typedef or forward reference #
  2578. class Global(ctypes.Structure): _fields_=[
  2579.         ( "main", ctypes.c_void_p ),
  2580.         ( "ima", ctypes.c_char ),
  2581.         ( "sce", ctypes.c_char ),
  2582.         ( "lib", ctypes.c_char ),
  2583.         ( "relbase_valid", ctypes.c_int ),
  2584.         ( "recent_files", ctypes.c_void_p ),
  2585.         ( "afbreek", ctypes.c_short ),
  2586.         ( "moving", ctypes.c_short ),
  2587.         ( "file_loaded", ctypes.c_short ),
  2588.         ( "background", ctypes.c_short ),
  2589.         ( "winpos", ctypes.c_short ),
  2590.         ( "displaymode", ctypes.c_short ),
  2591.         ( "rendering", ctypes.c_short ),
  2592.         ( "rt", ctypes.c_short ),
  2593.         ( "f", ctypes.c_int ),
  2594.         ( "editBMesh", ctypes.c_void_p ),
  2595.         ( "save_over", ctypes.c_int ),
  2596.         ( "have_quicktime", ctypes.c_int ),
  2597.         ( "ui_international", ctypes.c_int ),
  2598.         ( "charstart", ctypes.c_int ),
  2599.         ( "charmin", ctypes.c_int ),
  2600.         ( "charmax", ctypes.c_int ),
  2601.         ( "selfont", ctypes.c_void_p ),
  2602.         ( "ttfdata", ctypes.c_void_p ),
  2603.         ( "fileflags", ctypes.c_int ),
  2604.         ( "windowstate", ctypes.c_int ),
  2605.         ( "ndofdevice", ctypes.c_int ),
  2606.         ( "flags", ctypes.c_int ),]
  2607.  
  2608. #ENDIAN_ORDER                                                   <TypeDecl=short>
  2609. #G                                                      <TypeDecl=Global>
  2610. #class Library(ctypes.Structure): pass          # typedef or forward reference #
  2611. class Main(ctypes.Structure): _fields_=[
  2612.         ( "next", ctypes.c_void_p ),
  2613.         ( "prev", ctypes.c_void_p ),
  2614.         ( "name", ctypes.c_char ),
  2615.         ( "versionfile", ctypes.c_short ),
  2616.         ( "subversionfile", ctypes.c_short ),
  2617.         ( "minversionfile", ctypes.c_short ),
  2618.         ( "minsubversionfile", ctypes.c_short ),
  2619.         ( "curlib", ctypes.c_void_p ),
  2620.         ( "scene", ctypes.c_void_p ),
  2621.         ( "library", ctypes.c_void_p ),
  2622.         ( "object", ctypes.c_void_p ),
  2623.         ( "mesh", ctypes.c_void_p ),
  2624.         ( "curve", ctypes.c_void_p ),
  2625.         ( "mball", ctypes.c_void_p ),
  2626.         ( "mat", ctypes.c_void_p ),
  2627.         ( "tex", ctypes.c_void_p ),
  2628.         ( "image", ctypes.c_void_p ),
  2629.         ( "latt", ctypes.c_void_p ),
  2630.         ( "lamp", ctypes.c_void_p ),
  2631.         ( "camera", ctypes.c_void_p ),
  2632.         ( "ipo", ctypes.c_void_p ),
  2633.         ( "key", ctypes.c_void_p ),
  2634.         ( "world", ctypes.c_void_p ),
  2635.         ( "screen", ctypes.c_void_p ),
  2636.         ( "script", ctypes.c_void_p ),
  2637.         ( "vfont", ctypes.c_void_p ),
  2638.         ( "text", ctypes.c_void_p ),
  2639.         ( "sound", ctypes.c_void_p ),
  2640.         ( "group", ctypes.c_void_p ),
  2641.         ( "armature", ctypes.c_void_p ),
  2642.         ( "action", ctypes.c_void_p ),
  2643.         ( "nodetree", ctypes.c_void_p ),
  2644.         ( "brush", ctypes.c_void_p ),
  2645.         ( "particle", ctypes.c_void_p ),
  2646.         ( "wm", ctypes.c_void_p ),
  2647.         ( "gpencil", ctypes.c_void_p ),]
  2648.  
  2649. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  2650. #class Material(ctypes.Structure): pass         # typedef or forward reference #
  2651. #class ID(ctypes.Structure): pass               # typedef or forward reference #
  2652. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  2653. init_def_material = _c_external_function(               "init_def_material", [],
  2654.         ctypes.c_void_p )
  2655.  
  2656. free_material = _c_external_function(           "free_material", [
  2657.         ("sc", ctypes.c_void_p, 1),],
  2658.         ctypes.c_void_p )
  2659.  
  2660. test_object_materials = _c_external_function(           "test_object_materials", [
  2661.         ("id", ctypes.c_void_p, 1),],
  2662.         ctypes.c_void_p )
  2663.  
  2664. init_material = _c_external_function(           "init_material", [
  2665.         ("ma", ctypes.c_void_p, 1),],
  2666.         ctypes.c_void_p )
  2667.  
  2668. add_material = _c_external_function(            "add_material", [
  2669.         ("name", ctypes.c_char_p, 1),],
  2670.         ctypes.c_void_p )
  2671.  
  2672. copy_material = _c_external_function(           "copy_material", [
  2673.         ("ma", ctypes.c_void_p, 1),],
  2674.         ctypes.c_void_p )
  2675.  
  2676. give_node_material = _c_external_function(              "give_node_material", [
  2677.         ("ma", ctypes.c_void_p, 1),],
  2678.         ctypes.c_void_p )
  2679.  
  2680. make_local_material = _c_external_function(             "make_local_material", [
  2681.         ("ma", ctypes.c_void_p, 1),],
  2682.         ctypes.c_void_p )
  2683.  
  2684. automatname = _c_external_function(             "automatname", [
  2685.         ("Material", ctypes.c_void_p, 1),],
  2686.         ctypes.c_void_p )
  2687.  
  2688. give_matarar = _c_external_function(            "give_matarar", [
  2689.         ("ob", ctypes.c_void_p, 1),],
  2690.         ctypes.c_void_p )
  2691.  
  2692. give_totcolp = _c_external_function(            "give_totcolp", [
  2693.         ("ob", ctypes.c_void_p, 1),],
  2694.         ctypes.c_short )
  2695.  
  2696. give_matarar_id = _c_external_function(         "give_matarar_id", [
  2697.         ("id", ctypes.c_void_p, 1),],
  2698.         ctypes.c_void_p )
  2699.  
  2700. give_totcolp_id = _c_external_function(         "give_totcolp_id", [
  2701.         ("id", ctypes.c_void_p, 1),],
  2702.         ctypes.c_short )
  2703.  
  2704. give_current_material = _c_external_function(           "give_current_material", [
  2705.         ("ob", ctypes.c_void_p, 1),
  2706.         ("act", ctypes.c_int, 1),],
  2707.         ctypes.c_void_p )
  2708.  
  2709. material_from = _c_external_function(           "material_from", [
  2710.         ("ob", ctypes.c_void_p, 1),
  2711.         ("act", ctypes.c_int, 1),],
  2712.         ctypes.c_void_p )
  2713.  
  2714. assign_material = _c_external_function(         "assign_material", [
  2715.         ("ob", ctypes.c_void_p, 1),
  2716.         ("ma", ctypes.c_void_p, 1),
  2717.         ("act", ctypes.c_int, 1),],
  2718.         ctypes.c_void_p )
  2719.  
  2720. assign_matarar = _c_external_function(          "assign_matarar", [
  2721.         ("ob", ctypes.c_void_p, 1),
  2722.         ("matar", ctypes.c_void_p, 1),
  2723.         ("totcol", ctypes.c_int, 1),],
  2724.         ctypes.c_void_p )
  2725.  
  2726. find_material_index = _c_external_function(             "find_material_index", [
  2727.         ("ob", ctypes.c_void_p, 1),
  2728.         ("ma", ctypes.c_void_p, 1),],
  2729.         ctypes.c_int )
  2730.  
  2731. object_add_material_slot = _c_external_function(                "object_add_material_slot", [
  2732.         ("ob", ctypes.c_void_p, 1),],
  2733.         ctypes.c_int )
  2734.  
  2735. object_remove_material_slot = _c_external_function(             "object_remove_material_slot", [
  2736.         ("ob", ctypes.c_void_p, 1),],
  2737.         ctypes.c_int )
  2738.  
  2739. material_append_id = _c_external_function(              "material_append_id", [
  2740.         ("id", ctypes.c_void_p, 1),
  2741.         ("ma", ctypes.c_void_p, 1),],
  2742.         ctypes.c_void_p )
  2743.  
  2744. material_pop_id = _c_external_function(         "material_pop_id", [
  2745.         ("id", ctypes.c_void_p, 1),
  2746.         ("index", ctypes.c_int, 1),],
  2747.         ctypes.c_void_p )
  2748.  
  2749. init_render_material = _c_external_function(            "init_render_material", [
  2750.         ("Material", ctypes.c_void_p, 1),
  2751.         ("None", ctypes.c_int, 1),
  2752.         ("None", ctypes.POINTER( ctypes.c_float ), 1),],
  2753.         ctypes.c_void_p )
  2754.  
  2755. init_render_materials = _c_external_function(           "init_render_materials", [
  2756.         ("Main", ctypes.c_void_p, 1),
  2757.         ("None", ctypes.c_int, 1),
  2758.         ("None", ctypes.POINTER( ctypes.c_float ), 1),],
  2759.         ctypes.c_void_p )
  2760.  
  2761. end_render_material = _c_external_function(             "end_render_material", [
  2762.         ("Material", ctypes.c_void_p, 1),],
  2763.         ctypes.c_void_p )
  2764.  
  2765. end_render_materials = _c_external_function(            "end_render_materials", [
  2766.         ("Main", ctypes.c_void_p, 1),],
  2767.         ctypes.c_void_p )
  2768.  
  2769. material_in_material = _c_external_function(            "material_in_material", [
  2770.         ("parmat", ctypes.c_void_p, 1),
  2771.         ("mat", ctypes.c_void_p, 1),],
  2772.         ctypes.c_int )
  2773.  
  2774. ramp_blend = _c_external_function(              "ramp_blend", [
  2775.         ("type", ctypes.c_int, 1),
  2776.         ("r", ctypes.POINTER( ctypes.c_float ), 1),
  2777.         ("g", ctypes.POINTER( ctypes.c_float ), 1),
  2778.         ("b", ctypes.POINTER( ctypes.c_float ), 1),
  2779.         ("fac", ctypes.c_float, 1),
  2780.         ("col", ctypes.POINTER( ctypes.c_float ), 1),],
  2781.         ctypes.c_void_p )
  2782.  
  2783. clear_matcopybuf = _c_external_function(                "clear_matcopybuf", [],
  2784.         ctypes.c_void_p )
  2785.  
  2786. free_matcopybuf = _c_external_function(         "free_matcopybuf", [],
  2787.         ctypes.c_void_p )
  2788.  
  2789. copy_matcopybuf = _c_external_function(         "copy_matcopybuf", [
  2790.         ("ma", ctypes.c_void_p, 1),],
  2791.         ctypes.c_void_p )
  2792.  
  2793. paste_matcopybuf = _c_external_function(                "paste_matcopybuf", [
  2794.         ("ma", ctypes.c_void_p, 1),],
  2795.         ctypes.c_void_p )
  2796.  
  2797. clear_mat_mtex_copybuf = _c_external_function(          "clear_mat_mtex_copybuf", [],
  2798.         ctypes.c_void_p )
  2799.  
  2800. copy_mat_mtex_copybuf = _c_external_function(           "copy_mat_mtex_copybuf", [
  2801.         ("id", ctypes.c_void_p, 1),],
  2802.         ctypes.c_void_p )
  2803.  
  2804. paste_mat_mtex_copybuf = _c_external_function(          "paste_mat_mtex_copybuf", [
  2805.         ("id", ctypes.c_void_p, 1),],
  2806.         ctypes.c_void_p )
  2807.  
  2808. #class bSound(ctypes.Structure): pass           # typedef or forward reference #
  2809. #class Image(ctypes.Structure): pass            # typedef or forward reference #
  2810. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  2811. #class PackedFile(ctypes.Structure): pass               # typedef or forward reference #
  2812. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  2813. #class VFont(ctypes.Structure): pass            # typedef or forward reference #
  2814. newPackedFile = _c_external_function(           "newPackedFile", [
  2815.         ("reports", ctypes.c_void_p, 1),
  2816.         ("filename", ctypes.c_char_p, 1),],
  2817.         ctypes.c_void_p )
  2818.  
  2819. newPackedFileMemory = _c_external_function(             "newPackedFileMemory", [
  2820.         ("mem", ctypes.POINTER( ctypes.c_void_p ), 1),
  2821.         ("memlen", ctypes.c_int, 1),],
  2822.         ctypes.c_void_p )
  2823.  
  2824. packAll = _c_external_function(         "packAll", [
  2825.         ("bmain", ctypes.c_void_p, 1),
  2826.         ("reports", ctypes.c_void_p, 1),],
  2827.         ctypes.c_void_p )
  2828.  
  2829. unpackFile = _c_external_function(              "unpackFile", [
  2830.         ("reports", ctypes.c_void_p, 1),
  2831.         ("abs_name", ctypes.c_char_p, 1),
  2832.         ("local_name", ctypes.c_char_p, 1),
  2833.         ("pf", ctypes.c_void_p, 1),
  2834.         ("how", ctypes.c_int, 1),],
  2835.         ctypes.c_char )
  2836.  
  2837. unpackVFont = _c_external_function(             "unpackVFont", [
  2838.         ("reports", ctypes.c_void_p, 1),
  2839.         ("vfont", ctypes.c_void_p, 1),
  2840.         ("how", ctypes.c_int, 1),],
  2841.         ctypes.c_int )
  2842.  
  2843. unpackSound = _c_external_function(             "unpackSound", [
  2844.         ("reports", ctypes.c_void_p, 1),
  2845.         ("sound", ctypes.c_void_p, 1),
  2846.         ("how", ctypes.c_int, 1),],
  2847.         ctypes.c_int )
  2848.  
  2849. unpackImage = _c_external_function(             "unpackImage", [
  2850.         ("reports", ctypes.c_void_p, 1),
  2851.         ("ima", ctypes.c_void_p, 1),
  2852.         ("how", ctypes.c_int, 1),],
  2853.         ctypes.c_int )
  2854.  
  2855. unpackAll = _c_external_function(               "unpackAll", [
  2856.         ("bmain", ctypes.c_void_p, 1),
  2857.         ("reports", ctypes.c_void_p, 1),
  2858.         ("how", ctypes.c_int, 1),],
  2859.         ctypes.c_void_p )
  2860.  
  2861. writePackedFile = _c_external_function(         "writePackedFile", [
  2862.         ("reports", ctypes.c_void_p, 1),
  2863.         ("filename", ctypes.c_char_p, 1),
  2864.         ("pf", ctypes.c_void_p, 1),
  2865.         ("guimode", ctypes.c_int, 1),],
  2866.         ctypes.c_int )
  2867.  
  2868. freePackedFile = _c_external_function(          "freePackedFile", [
  2869.         ("pf", ctypes.c_void_p, 1),],
  2870.         ctypes.c_void_p )
  2871.  
  2872. countPackedFiles = _c_external_function(                "countPackedFiles", [
  2873.         ("bmain", ctypes.c_void_p, 1),],
  2874.         ctypes.c_int )
  2875.  
  2876. checkPackedFile = _c_external_function(         "checkPackedFile", [
  2877.         ("filename", ctypes.c_char_p, 1),
  2878.         ("pf", ctypes.c_void_p, 1),],
  2879.         ctypes.c_int )
  2880.  
  2881. seekPackedFile = _c_external_function(          "seekPackedFile", [
  2882.         ("pf", ctypes.c_void_p, 1),
  2883.         ("offset", ctypes.c_int, 1),
  2884.         ("whence", ctypes.c_int, 1),],
  2885.         ctypes.c_int )
  2886.  
  2887. rewindPackedFile = _c_external_function(                "rewindPackedFile", [
  2888.         ("pf", ctypes.c_void_p, 1),],
  2889.         ctypes.c_void_p )
  2890.  
  2891. readPackedFile = _c_external_function(          "readPackedFile", [
  2892.         ("pf", ctypes.c_void_p, 1),
  2893.         ("data", ctypes.POINTER( ctypes.c_void_p ), 1),
  2894.         ("size", ctypes.c_int, 1),],
  2895.         ctypes.c_int )
  2896.  
  2897. #class AviCodecData(ctypes.Structure): pass             # typedef or forward reference #
  2898. #class Base(ctypes.Structure): pass             # typedef or forward reference #
  2899. #class bglMats(ctypes.Structure): pass          # typedef or forward reference #
  2900. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  2901. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  2902. #class QuicktimeCodecData(ctypes.Structure): pass               # typedef or forward reference #
  2903. #class RenderData(ctypes.Structure): pass               # typedef or forward reference #
  2904. #class Scene(ctypes.Structure): pass            # typedef or forward reference #
  2905. #class Text(ctypes.Structure): pass             # typedef or forward reference #
  2906. #class Text(ctypes.Structure): pass             # typedef or forward reference #
  2907. _setlooper_base_step = _c_external_function(            "_setlooper_base_step", [
  2908.         ("sce", ctypes.c_void_p, 1),
  2909.         ("base", ctypes.c_void_p, 1),],
  2910.         ctypes.c_void_p )
  2911.  
  2912. free_avicodecdata = _c_external_function(               "free_avicodecdata", [
  2913.         ("acd", ctypes.c_void_p, 1),],
  2914.         ctypes.c_void_p )
  2915.  
  2916. free_qtcodecdata = _c_external_function(                "free_qtcodecdata", [
  2917.         ("acd", ctypes.c_void_p, 1),],
  2918.         ctypes.c_void_p )
  2919.  
  2920. free_scene = _c_external_function(              "free_scene", [
  2921.         ("sce", ctypes.c_void_p, 1),],
  2922.         ctypes.c_void_p )
  2923.  
  2924. add_scene = _c_external_function(               "add_scene", [
  2925.         ("name", ctypes.c_char_p, 1),],
  2926.         ctypes.c_void_p )
  2927.  
  2928. object_in_scene = _c_external_function(         "object_in_scene", [
  2929.         ("ob", ctypes.c_void_p, 1),
  2930.         ("sce", ctypes.c_void_p, 1),],
  2931.         ctypes.c_void_p )
  2932.  
  2933. set_scene_bg = _c_external_function(            "set_scene_bg", [
  2934.         ("bmain", ctypes.c_void_p, 1),
  2935.         ("sce", ctypes.c_void_p, 1),],
  2936.         ctypes.c_void_p )
  2937.  
  2938. set_scene_name = _c_external_function(          "set_scene_name", [
  2939.         ("bmain", ctypes.c_void_p, 1),
  2940.         ("name", ctypes.c_char_p, 1),],
  2941.         ctypes.c_void_p )
  2942.  
  2943. copy_scene = _c_external_function(              "copy_scene", [
  2944.         ("bmain", ctypes.c_void_p, 1),
  2945.         ("sce", ctypes.c_void_p, 1),
  2946.         ("type", ctypes.c_int, 1),],
  2947.         ctypes.c_void_p )
  2948.  
  2949. unlink_scene = _c_external_function(            "unlink_scene", [
  2950.         ("bmain", ctypes.c_void_p, 1),
  2951.         ("sce", ctypes.c_void_p, 1),
  2952.         ("newsce", ctypes.c_void_p, 1),],
  2953.         ctypes.c_void_p )
  2954.  
  2955. next_object = _c_external_function(             "next_object", [
  2956.         ("scene", ctypes.c_void_p, 1),
  2957.         ("val", ctypes.c_int, 1),
  2958.         ("base", ctypes.c_void_p, 1),
  2959.         ("ob", ctypes.c_void_p, 1),],
  2960.         ctypes.c_int )
  2961.  
  2962. scene_find_camera = _c_external_function(               "scene_find_camera", [
  2963.         ("sc", ctypes.c_void_p, 1),],
  2964.         ctypes.c_void_p )
  2965.  
  2966. scene_camera_switch_find = _c_external_function(                "scene_camera_switch_find", [
  2967.         ("scene", ctypes.c_void_p, 1),],
  2968.         ctypes.c_void_p )
  2969.  
  2970. scene_camera_switch_update = _c_external_function(              "scene_camera_switch_update", [
  2971.         ("scene", ctypes.c_void_p, 1),],
  2972.         ctypes.c_int )
  2973.  
  2974. scene_find_marker_name = _c_external_function(          "scene_find_marker_name", [
  2975.         ("scene", ctypes.c_void_p, 1),
  2976.         ("frame", ctypes.c_int, 1),],
  2977.         ctypes.c_char )
  2978.  
  2979. scene_find_last_marker_name = _c_external_function(             "scene_find_last_marker_name", [
  2980.         ("scene", ctypes.c_void_p, 1),
  2981.         ("frame", ctypes.c_int, 1),],
  2982.         ctypes.c_char )
  2983.  
  2984. scene_marker_tfm_translate = _c_external_function(              "scene_marker_tfm_translate", [
  2985.         ("scene", ctypes.c_void_p, 1),
  2986.         ("delta", ctypes.c_int, 1),
  2987.         ("flag", ctypes.c_int, 1),],
  2988.         ctypes.c_int )
  2989.  
  2990. scene_marker_tfm_extend = _c_external_function(         "scene_marker_tfm_extend", [
  2991.         ("scene", ctypes.c_void_p, 1),
  2992.         ("delta", ctypes.c_int, 1),
  2993.         ("flag", ctypes.c_int, 1),
  2994.         ("frame", ctypes.c_int, 1),
  2995.         ("side", ctypes.c_char, 1),],
  2996.         ctypes.c_int )
  2997.  
  2998. scene_add_base = _c_external_function(          "scene_add_base", [
  2999.         ("sce", ctypes.c_void_p, 1),
  3000.         ("ob", ctypes.c_void_p, 1),],
  3001.         ctypes.c_void_p )
  3002.  
  3003. scene_deselect_all = _c_external_function(              "scene_deselect_all", [
  3004.         ("sce", ctypes.c_void_p, 1),],
  3005.         ctypes.c_void_p )
  3006.  
  3007. scene_select_base = _c_external_function(               "scene_select_base", [
  3008.         ("sce", ctypes.c_void_p, 1),
  3009.         ("selbase", ctypes.c_void_p, 1),],
  3010.         ctypes.c_void_p )
  3011.  
  3012. scene_check_setscene = _c_external_function(            "scene_check_setscene", [
  3013.         ("bmain", ctypes.c_void_p, 1),
  3014.         ("sce", ctypes.c_void_p, 1),],
  3015.         ctypes.c_int )
  3016.  
  3017. BKE_curframe = _c_external_function(            "BKE_curframe", [
  3018.         ("scene", ctypes.c_void_p, 1),],
  3019.         ctypes.c_float )
  3020.  
  3021. scene_update_tagged = _c_external_function(             "scene_update_tagged", [
  3022.         ("bmain", ctypes.c_void_p, 1),
  3023.         ("sce", ctypes.c_void_p, 1),],
  3024.         ctypes.c_void_p )
  3025.  
  3026. scene_update_for_newframe = _c_external_function(               "scene_update_for_newframe", [
  3027.         ("bmain", ctypes.c_void_p, 1),
  3028.         ("sce", ctypes.c_void_p, 1),
  3029.         ("lay", ctypes.c_int, 1),],
  3030.         ctypes.c_void_p )
  3031.  
  3032. scene_add_render_layer = _c_external_function(          "scene_add_render_layer", [
  3033.         ("sce", ctypes.c_void_p, 1),],
  3034.         ctypes.c_void_p )
  3035.  
  3036. get_render_subsurf_level = _c_external_function(                "get_render_subsurf_level", [
  3037.         ("r", ctypes.c_void_p, 1),
  3038.         ("level", ctypes.c_int, 1),],
  3039.         ctypes.c_int )
  3040.  
  3041. get_render_child_particle_number = _c_external_function(                "get_render_child_particle_number", [
  3042.         ("r", ctypes.c_void_p, 1),
  3043.         ("num", ctypes.c_int, 1),],
  3044.         ctypes.c_int )
  3045.  
  3046. get_render_shadow_samples = _c_external_function(               "get_render_shadow_samples", [
  3047.         ("r", ctypes.c_void_p, 1),
  3048.         ("samples", ctypes.c_int, 1),],
  3049.         ctypes.c_int )
  3050.  
  3051. get_render_aosss_error = _c_external_function(          "get_render_aosss_error", [
  3052.         ("r", ctypes.c_void_p, 1),
  3053.         ("error", ctypes.c_float, 1),],
  3054.         ctypes.c_float )
  3055.  
  3056. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  3057. #class bNode(ctypes.Structure): pass            # typedef or forward reference #
  3058. #class bNodeLink(ctypes.Structure): pass                # typedef or forward reference #
  3059. #class bNodeSocket(ctypes.Structure): pass              # typedef or forward reference #
  3060. #class bNodeStack(ctypes.Structure): pass               # typedef or forward reference #
  3061. #class bNodeTree(ctypes.Structure): pass                # typedef or forward reference #
  3062. #class GPUMaterial(ctypes.Structure): pass              # typedef or forward reference #
  3063. #class GPUNode(ctypes.Structure): pass          # typedef or forward reference #
  3064. #class GPUNodeStack(ctypes.Structure): pass             # typedef or forward reference #
  3065. #class ID(ctypes.Structure): pass               # typedef or forward reference #
  3066. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  3067. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  3068. #class MTex(ctypes.Structure): pass             # typedef or forward reference #
  3069. #class PointerRNA(ctypes.Structure): pass               # typedef or forward reference #
  3070. #class rctf(ctypes.Structure): pass             # typedef or forward reference #
  3071. #class RenderData(ctypes.Structure): pass               # typedef or forward reference #
  3072. #class Scene(ctypes.Structure): pass            # typedef or forward reference #
  3073. #class Tex(ctypes.Structure): pass              # typedef or forward reference #
  3074. #class uiLayout(ctypes.Structure): pass         # typedef or forward reference #
  3075. class bNodeSocketType(ctypes.Structure): _fields_=[
  3076.         ( "type", ctypes.c_int ),
  3077.         ( "limit", ctypes.c_int ),
  3078.         ( "name", ctypes.c_char_p ),
  3079.         ( "val1", ctypes.c_float ),
  3080.         ( "val2", ctypes.c_float ),
  3081.         ( "val3", ctypes.c_float ),
  3082.         ( "val4", ctypes.c_float ),
  3083.         ( "min", ctypes.c_float ),
  3084.         ( "max", ctypes.c_float ),
  3085.         ( "sock", ctypes.c_void_p ),
  3086.         ( "internsock", ctypes.c_void_p ),
  3087.         ( "own_index", ctypes.c_int ),]
  3088.  
  3089. class bNodeType(ctypes.Structure): _fields_=[
  3090.         ( "next", ctypes.POINTER( ctypes.c_void_p ) ),
  3091.         ( "prev", ctypes.POINTER( ctypes.c_void_p ) ),
  3092.         ( "type", ctypes.c_int ),
  3093.         ( "name", ctypes.c_char_p ),
  3094.         ( "width", ctypes.c_float ),
  3095.         ( "minwidth", ctypes.c_float ),
  3096.         ( "maxwidth", ctypes.c_float ),
  3097.         ( "nclass", ctypes.c_short ),
  3098.         ( "flag", ctypes.c_short ),
  3099.         ( "inputs", ctypes.c_void_p ),
  3100.         ( "outputs", ctypes.c_void_p ),
  3101.         ( "storagename", ctypes.c_char ),
  3102.         ( "execfunc", ctypes.c_void_p ),
  3103.         ( "uifunc", ctypes.c_void_p ),
  3104.         ( "initfunc", ctypes.c_void_p ),
  3105.         ( "freestoragefunc", ctypes.c_void_p ),
  3106.         ( "copystoragefunc", ctypes.c_void_p ),
  3107.         ( "id", ctypes.c_void_p ),
  3108.         ( "pynode", ctypes.POINTER( ctypes.c_void_p ) ),
  3109.         ( "pydict", ctypes.POINTER( ctypes.c_void_p ) ),
  3110.         ( "gpufunc", ctypes.c_void_p ),]
  3111.  
  3112. ntreeVerifyTypes = _c_external_function(                "ntreeVerifyTypes", [
  3113.         ("ntree", ctypes.c_void_p, 1),],
  3114.         ctypes.c_void_p )
  3115.  
  3116. ntreeAddTree = _c_external_function(            "ntreeAddTree", [
  3117.         ("type", ctypes.c_int, 1),],
  3118.         ctypes.c_void_p )
  3119.  
  3120. ntreeInitTypes = _c_external_function(          "ntreeInitTypes", [
  3121.         ("ntree", ctypes.c_void_p, 1),],
  3122.         ctypes.c_void_p )
  3123.  
  3124. ntreeMakeOwnType = _c_external_function(                "ntreeMakeOwnType", [
  3125.         ("ntree", ctypes.c_void_p, 1),],
  3126.         ctypes.c_void_p )
  3127.  
  3128. ntreeUpdateType = _c_external_function(         "ntreeUpdateType", [
  3129.         ("ntree", ctypes.c_void_p, 1),
  3130.         ("ntype", ctypes.c_void_p, 1),],
  3131.         ctypes.c_void_p )
  3132.  
  3133. ntreeFreeTree = _c_external_function(           "ntreeFreeTree", [
  3134.         ("ntree", ctypes.c_void_p, 1),],
  3135.         ctypes.c_void_p )
  3136.  
  3137. ntreeCopyTree = _c_external_function(           "ntreeCopyTree", [
  3138.         ("ntree", ctypes.c_void_p, 1),
  3139.         ("internal_select", ctypes.c_int, 1),],
  3140.         ctypes.c_void_p )
  3141.  
  3142. ntreeSwitchID = _c_external_function(           "ntreeSwitchID", [
  3143.         ("ntree", ctypes.c_void_p, 1),
  3144.         ("sce_from", ctypes.c_void_p, 1),
  3145.         ("sce_to", ctypes.c_void_p, 1),],
  3146.         ctypes.c_void_p )
  3147.  
  3148. ntreeMakeLocal = _c_external_function(          "ntreeMakeLocal", [
  3149.         ("ntree", ctypes.c_void_p, 1),],
  3150.         ctypes.c_void_p )
  3151.  
  3152. ntreeSocketUseFlags = _c_external_function(             "ntreeSocketUseFlags", [
  3153.         ("ntree", ctypes.c_void_p, 1),],
  3154.         ctypes.c_void_p )
  3155.  
  3156. ntreeSolveOrder = _c_external_function(         "ntreeSolveOrder", [
  3157.         ("ntree", ctypes.c_void_p, 1),],
  3158.         ctypes.c_void_p )
  3159.  
  3160. ntreeBeginExecTree = _c_external_function(              "ntreeBeginExecTree", [
  3161.         ("ntree", ctypes.c_void_p, 1),],
  3162.         ctypes.c_void_p )
  3163.  
  3164. ntreeExecTree = _c_external_function(           "ntreeExecTree", [
  3165.         ("ntree", ctypes.c_void_p, 1),
  3166.         ("callerdata", ctypes.POINTER( ctypes.c_void_p ), 1),
  3167.         ("thread", ctypes.c_int, 1),],
  3168.         ctypes.c_void_p )
  3169.  
  3170. ntreeCompositExecTree = _c_external_function(           "ntreeCompositExecTree", [
  3171.         ("ntree", ctypes.c_void_p, 1),
  3172.         ("rd", ctypes.c_void_p, 1),
  3173.         ("do_previews", ctypes.c_int, 1),],
  3174.         ctypes.c_void_p )
  3175.  
  3176. ntreeEndExecTree = _c_external_function(                "ntreeEndExecTree", [
  3177.         ("ntree", ctypes.c_void_p, 1),],
  3178.         ctypes.c_void_p )
  3179.  
  3180. ntreeInitPreview = _c_external_function(                "ntreeInitPreview", [
  3181.         ("bNodeTree", ctypes.c_void_p, 1),
  3182.         ("xsize", ctypes.c_int, 1),
  3183.         ("ysize", ctypes.c_int, 1),],
  3184.         ctypes.c_void_p )
  3185.  
  3186. ntreeClearPreview = _c_external_function(               "ntreeClearPreview", [
  3187.         ("ntree", ctypes.c_void_p, 1),],
  3188.         ctypes.c_void_p )
  3189.  
  3190. ntreeFreeCache = _c_external_function(          "ntreeFreeCache", [
  3191.         ("ntree", ctypes.c_void_p, 1),],
  3192.         ctypes.c_void_p )
  3193.  
  3194. ntreeLocalize = _c_external_function(           "ntreeLocalize", [
  3195.         ("ntree", ctypes.c_void_p, 1),],
  3196.         ctypes.c_void_p )
  3197.  
  3198. ntreeLocalSync = _c_external_function(          "ntreeLocalSync", [
  3199.         ("localtree", ctypes.c_void_p, 1),
  3200.         ("ntree", ctypes.c_void_p, 1),],
  3201.         ctypes.c_void_p )
  3202.  
  3203. ntreeLocalMerge = _c_external_function(         "ntreeLocalMerge", [
  3204.         ("localtree", ctypes.c_void_p, 1),
  3205.         ("ntree", ctypes.c_void_p, 1),],
  3206.         ctypes.c_void_p )
  3207.  
  3208. nodeVerifyType = _c_external_function(          "nodeVerifyType", [
  3209.         ("ntree", ctypes.c_void_p, 1),
  3210.         ("node", ctypes.c_void_p, 1),],
  3211.         ctypes.c_void_p )
  3212.  
  3213. nodeAddToPreview = _c_external_function(                "nodeAddToPreview", [
  3214.         ("bNode", ctypes.c_void_p, 1),
  3215.         ("None", ctypes.POINTER( ctypes.c_float ), 1),
  3216.         ("None", ctypes.c_int, 1),
  3217.         ("None", ctypes.c_int, 1),],
  3218.         ctypes.c_void_p )
  3219.  
  3220. nodeUnlinkNode = _c_external_function(          "nodeUnlinkNode", [
  3221.         ("ntree", ctypes.c_void_p, 1),
  3222.         ("node", ctypes.c_void_p, 1),],
  3223.         ctypes.c_void_p )
  3224.  
  3225. nodeUniqueName = _c_external_function(          "nodeUniqueName", [
  3226.         ("ntree", ctypes.c_void_p, 1),
  3227.         ("node", ctypes.c_void_p, 1),],
  3228.         ctypes.c_void_p )
  3229.  
  3230. nodeAddSockets = _c_external_function(          "nodeAddSockets", [
  3231.         ("node", ctypes.c_void_p, 1),
  3232.         ("ntype", ctypes.c_void_p, 1),],
  3233.         ctypes.c_void_p )
  3234.  
  3235. nodeAddNodeType = _c_external_function(         "nodeAddNodeType", [
  3236.         ("ntree", ctypes.c_void_p, 1),
  3237.         ("type", ctypes.c_int, 1),
  3238.         ("ngroup", ctypes.c_void_p, 1),
  3239.         ("id", ctypes.c_void_p, 1),],
  3240.         ctypes.c_void_p )
  3241.  
  3242. nodeRegisterType = _c_external_function(                "nodeRegisterType", [
  3243.         ("typelist", ctypes.c_void_p, 1),
  3244.         ("ntype", ctypes.c_void_p, 1),],
  3245.         ctypes.c_void_p )
  3246.  
  3247. nodeUpdateType = _c_external_function(          "nodeUpdateType", [
  3248.         ("ntree", ctypes.c_void_p, 1),
  3249.         ("node", ctypes.c_void_p, 1),
  3250.         ("ntype", ctypes.c_void_p, 1),],
  3251.         ctypes.c_void_p )
  3252.  
  3253. nodeMakeDynamicType = _c_external_function(             "nodeMakeDynamicType", [
  3254.         ("node", ctypes.c_void_p, 1),],
  3255.         ctypes.c_void_p )
  3256.  
  3257. nodeDynamicUnlinkText = _c_external_function(           "nodeDynamicUnlinkText", [
  3258.         ("txtid", ctypes.c_void_p, 1),],
  3259.         ctypes.c_int )
  3260.  
  3261. nodeFreeNode = _c_external_function(            "nodeFreeNode", [
  3262.         ("ntree", ctypes.c_void_p, 1),
  3263.         ("node", ctypes.c_void_p, 1),],
  3264.         ctypes.c_void_p )
  3265.  
  3266. nodeCopyNode = _c_external_function(            "nodeCopyNode", [
  3267.         ("ntree", ctypes.c_void_p, 1),
  3268.         ("node", ctypes.c_void_p, 1),
  3269.         ("internal", ctypes.c_int, 1),],
  3270.         ctypes.c_void_p )
  3271.  
  3272. nodeAddLink = _c_external_function(             "nodeAddLink", [
  3273.         ("ntree", ctypes.c_void_p, 1),
  3274.         ("fromnode", ctypes.c_void_p, 1),
  3275.         ("fromsock", ctypes.c_void_p, 1),
  3276.         ("tonode", ctypes.c_void_p, 1),
  3277.         ("tosock", ctypes.c_void_p, 1),],
  3278.         ctypes.c_void_p )
  3279.  
  3280. nodeRemLink = _c_external_function(             "nodeRemLink", [
  3281.         ("ntree", ctypes.c_void_p, 1),
  3282.         ("link", ctypes.c_void_p, 1),],
  3283.         ctypes.c_void_p )
  3284.  
  3285. nodeRemSocketLinks = _c_external_function(              "nodeRemSocketLinks", [
  3286.         ("ntree", ctypes.c_void_p, 1),
  3287.         ("sock", ctypes.c_void_p, 1),],
  3288.         ctypes.c_void_p )
  3289.  
  3290. nodeFindNodebyName = _c_external_function(              "nodeFindNodebyName", [
  3291.         ("ntree", ctypes.c_void_p, 1),
  3292.         ("name", ctypes.c_char_p, 1),],
  3293.         ctypes.c_void_p )
  3294.  
  3295. nodeFindNode = _c_external_function(            "nodeFindNode", [
  3296.         ("ntree", ctypes.c_void_p, 1),
  3297.         ("sock", ctypes.c_void_p, 1),
  3298.         ("nodep", ctypes.c_void_p, 1),
  3299.         ("sockindex", ctypes.POINTER( ctypes.c_int ), 1),],
  3300.         ctypes.c_int )
  3301.  
  3302. nodeFindLink = _c_external_function(            "nodeFindLink", [
  3303.         ("ntree", ctypes.c_void_p, 1),
  3304.         ("from", ctypes.c_void_p, 1),
  3305.         ("to", ctypes.c_void_p, 1),],
  3306.         ctypes.c_void_p )
  3307.  
  3308. nodeCountSocketLinks = _c_external_function(            "nodeCountSocketLinks", [
  3309.         ("ntree", ctypes.c_void_p, 1),
  3310.         ("sock", ctypes.c_void_p, 1),],
  3311.         ctypes.c_int )
  3312.  
  3313. nodeSetActive = _c_external_function(           "nodeSetActive", [
  3314.         ("ntree", ctypes.c_void_p, 1),
  3315.         ("node", ctypes.c_void_p, 1),],
  3316.         ctypes.c_void_p )
  3317.  
  3318. nodeGetActive = _c_external_function(           "nodeGetActive", [
  3319.         ("ntree", ctypes.c_void_p, 1),],
  3320.         ctypes.c_void_p )
  3321.  
  3322. nodeGetActiveID = _c_external_function(         "nodeGetActiveID", [
  3323.         ("ntree", ctypes.c_void_p, 1),
  3324.         ("idtype", ctypes.c_short, 1),],
  3325.         ctypes.c_void_p )
  3326.  
  3327. nodeSetActiveID = _c_external_function(         "nodeSetActiveID", [
  3328.         ("ntree", ctypes.c_void_p, 1),
  3329.         ("idtype", ctypes.c_short, 1),
  3330.         ("id", ctypes.c_void_p, 1),],
  3331.         ctypes.c_int )
  3332.  
  3333. nodeClearActiveID = _c_external_function(               "nodeClearActiveID", [
  3334.         ("ntree", ctypes.c_void_p, 1),
  3335.         ("idtype", ctypes.c_short, 1),],
  3336.         ctypes.c_void_p )
  3337.  
  3338. NodeTagChanged = _c_external_function(          "NodeTagChanged", [
  3339.         ("ntree", ctypes.c_void_p, 1),
  3340.         ("node", ctypes.c_void_p, 1),],
  3341.         ctypes.c_void_p )
  3342.  
  3343. NodeTagIDChanged = _c_external_function(                "NodeTagIDChanged", [
  3344.         ("ntree", ctypes.c_void_p, 1),
  3345.         ("id", ctypes.c_void_p, 1),],
  3346.         ctypes.c_int )
  3347.  
  3348. nodeMakeGroupFromSelected = _c_external_function(               "nodeMakeGroupFromSelected", [
  3349.         ("ntree", ctypes.c_void_p, 1),],
  3350.         ctypes.c_void_p )
  3351.  
  3352. nodeGroupUnGroup = _c_external_function(                "nodeGroupUnGroup", [
  3353.         ("ntree", ctypes.c_void_p, 1),
  3354.         ("gnode", ctypes.c_void_p, 1),],
  3355.         ctypes.c_int )
  3356.  
  3357. nodeVerifyGroup = _c_external_function(         "nodeVerifyGroup", [
  3358.         ("ngroup", ctypes.c_void_p, 1),],
  3359.         ctypes.c_void_p )
  3360.  
  3361. nodeGroupSocketUseFlags = _c_external_function(         "nodeGroupSocketUseFlags", [
  3362.         ("ngroup", ctypes.c_void_p, 1),],
  3363.         ctypes.c_void_p )
  3364.  
  3365. nodeCopyGroup = _c_external_function(           "nodeCopyGroup", [
  3366.         ("gnode", ctypes.c_void_p, 1),],
  3367.         ctypes.c_void_p )
  3368.  
  3369. #node_group_typeinfo                                                    <TypeDecl=bNodeType>
  3370. #class ShadeInput(ctypes.Structure): pass               # typedef or forward reference #
  3371. #class ShadeResult(ctypes.Structure): pass              # typedef or forward reference #
  3372. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  3373. ntreeShaderExecTree = _c_external_function(             "ntreeShaderExecTree", [
  3374.         ("ntree", ctypes.c_void_p, 1),
  3375.         ("shi", ctypes.c_void_p, 1),
  3376.         ("shr", ctypes.c_void_p, 1),],
  3377.         ctypes.c_void_p )
  3378.  
  3379. ntreeShaderGetTexcoMode = _c_external_function(         "ntreeShaderGetTexcoMode", [
  3380.         ("ntree", ctypes.c_void_p, 1),
  3381.         ("osa", ctypes.c_int, 1),
  3382.         ("texco", ctypes.POINTER( ctypes.c_short ), 1),
  3383.         ("mode", ctypes.POINTER( ctypes.c_int ), 1),],
  3384.         ctypes.c_void_p )
  3385.  
  3386. nodeShaderSynchronizeID = _c_external_function(         "nodeShaderSynchronizeID", [
  3387.         ("node", ctypes.c_void_p, 1),
  3388.         ("copyto", ctypes.c_int, 1),],
  3389.         ctypes.c_void_p )
  3390.  
  3391. node_shader_lamp_loop = _c_external_function(           "node_shader_lamp_loop", [
  3392.         ("ShadeInput", ctypes.c_void_p, 1),
  3393.         ("ShadeResult", ctypes.c_void_p, 1),],
  3394.         ctypes.c_void_p )
  3395.  
  3396. set_node_shader_lamp_loop = _c_external_function(               "set_node_shader_lamp_loop", [
  3397.         ("lamp_loop_func", ctypes.c_void_p, 1),],
  3398.         ctypes.c_void_p )
  3399.  
  3400. ntreeGPUMaterialNodes = _c_external_function(           "ntreeGPUMaterialNodes", [
  3401.         ("ntree", ctypes.c_void_p, 1),
  3402.         ("mat", ctypes.c_void_p, 1),],
  3403.         ctypes.c_void_p )
  3404.  
  3405. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  3406. #class CompBuf(ctypes.Structure): pass          # typedef or forward reference #
  3407. ntreeCompositTagRender = _c_external_function(          "ntreeCompositTagRender", [
  3408.         ("sce", ctypes.c_void_p, 1),],
  3409.         ctypes.c_void_p )
  3410.  
  3411. ntreeCompositTagAnimated = _c_external_function(                "ntreeCompositTagAnimated", [
  3412.         ("ntree", ctypes.c_void_p, 1),],
  3413.         ctypes.c_int )
  3414.  
  3415. ntreeCompositTagGenerators = _c_external_function(              "ntreeCompositTagGenerators", [
  3416.         ("ntree", ctypes.c_void_p, 1),],
  3417.         ctypes.c_void_p )
  3418.  
  3419. ntreeCompositForceHidden = _c_external_function(                "ntreeCompositForceHidden", [
  3420.         ("ntree", ctypes.c_void_p, 1),
  3421.         ("scene", ctypes.c_void_p, 1),],
  3422.         ctypes.c_void_p )
  3423.  
  3424. free_compbuf = _c_external_function(            "free_compbuf", [
  3425.         ("cbuf", ctypes.c_void_p, 1),],
  3426.         ctypes.c_void_p )
  3427.  
  3428. #class TexResult(ctypes.Structure): pass                # typedef or forward reference #
  3429. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  3430. ntreeTexTagAnimated = _c_external_function(             "ntreeTexTagAnimated", [
  3431.         ("ntree", ctypes.c_void_p, 1),],
  3432.         ctypes.c_int )
  3433.  
  3434. ntreeTexSetPreviewFlag = _c_external_function(          "ntreeTexSetPreviewFlag", [
  3435.         ("None", ctypes.c_int, 1),],
  3436.         ctypes.c_void_p )
  3437.  
  3438. ntreeTexExecTree = _c_external_function(                "ntreeTexExecTree", [
  3439.         ("ntree", ctypes.c_void_p, 1),
  3440.         ("target", ctypes.c_void_p, 1),
  3441.         ("coord", ctypes.POINTER( ctypes.c_float ), 1),
  3442.         ("dxt", ctypes.POINTER( ctypes.c_float ), 1),
  3443.         ("dyt", ctypes.POINTER( ctypes.c_float ), 1),
  3444.         ("osatex", ctypes.c_int, 1),
  3445.         ("thread", ctypes.c_short, 1),
  3446.         ("tex", ctypes.c_void_p, 1),
  3447.         ("which_output", ctypes.c_short, 1),
  3448.         ("cfra", ctypes.c_int, 1),
  3449.         ("preview", ctypes.c_int, 1),
  3450.         ("shi", ctypes.c_void_p, 1),
  3451.         ("mtex", ctypes.c_void_p, 1),],
  3452.         ctypes.c_int )
  3453.  
  3454. ntreeTexCheckCyclics = _c_external_function(            "ntreeTexCheckCyclics", [
  3455.         ("ntree", ctypes.c_void_p, 1),],
  3456.         ctypes.c_void_p )
  3457.  
  3458. ntreeTexOutputMenu = _c_external_function(              "ntreeTexOutputMenu", [
  3459.         ("ntree", ctypes.c_void_p, 1),],
  3460.         ctypes.c_char )
  3461.  
  3462. init_nodesystem = _c_external_function(         "init_nodesystem", [],
  3463.         ctypes.c_void_p )
  3464.  
  3465. free_nodesystem = _c_external_function(         "free_nodesystem", [],
  3466.         ctypes.c_void_p )
  3467.  
  3468. clear_scene_in_nodes = _c_external_function(            "clear_scene_in_nodes", [
  3469.         ("bmain", ctypes.c_void_p, 1),
  3470.         ("sce", ctypes.c_void_p, 1),],
  3471.         ctypes.c_void_p )
  3472.  
  3473. #class wmWindowManager(ctypes.Structure): pass          # typedef or forward reference #
  3474. #class wmWindow(ctypes.Structure): pass         # typedef or forward reference #
  3475. #class wmEvent(ctypes.Structure): pass          # typedef or forward reference #
  3476. #class wmGesture(ctypes.Structure): pass                # typedef or forward reference #
  3477. #class wmOperatorType(ctypes.Structure): pass           # typedef or forward reference #
  3478. #class wmOperator(ctypes.Structure): pass               # typedef or forward reference #
  3479. #class wmKeyMap(ctypes.Structure): pass         # typedef or forward reference #
  3480. #class wmKeyConfig(ctypes.Structure): pass              # typedef or forward reference #
  3481. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  3482. #class wmLocal(ctypes.Structure): pass          # typedef or forward reference #
  3483. #class bScreen(ctypes.Structure): pass          # typedef or forward reference #
  3484. #class uiBlock(ctypes.Structure): pass          # typedef or forward reference #
  3485. #class wmSubWindow(ctypes.Structure): pass              # typedef or forward reference #
  3486. #class wmTimer(ctypes.Structure): pass          # typedef or forward reference #
  3487. #class StructRNA(ctypes.Structure): pass                # typedef or forward reference #
  3488. #class PointerRNA(ctypes.Structure): pass               # typedef or forward reference #
  3489. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  3490. #class Report(ctypes.Structure): pass           # typedef or forward reference #
  3491. #class uiLayout(ctypes.Structure): pass         # typedef or forward reference #
  3492. ReportType = {
  3493.         "RPT_DEBUG" : 1,
  3494.         "RPT_INFO" : 2,
  3495.         "RPT_OPERATOR" : 4,
  3496.         "RPT_WARNING" : 8,
  3497.         "RPT_ERROR" : 16,
  3498.         "RPT_ERROR_INVALID_INPUT" : 32,
  3499.         "RPT_ERROR_INVALID_CONTEXT" : 64,
  3500.         "RPT_ERROR_OUT_OF_MEMORY" : 128,
  3501. }
  3502.  
  3503. ReportListFlags = {
  3504.         "RPT_PRINT" : 1,
  3505.         "RPT_STORE" : 2,
  3506.         "RPT_FREE" : 4,
  3507. }
  3508.  
  3509. class Report(ctypes.Structure): _fields_=[
  3510.         ( "next", ctypes.c_void_p ),
  3511.         ( "prev", ctypes.c_void_p ),
  3512.         ( "type", ctypes.c_short ),
  3513.         ( "flag", ctypes.c_short ),
  3514.         ( "len", ctypes.c_int ),
  3515.         ( "typestr", ctypes.c_char_p ),
  3516.         ( "message", ctypes.c_char_p ),]
  3517.  
  3518. class ReportList(ctypes.Structure): _fields_=[
  3519.         ( "list", ctypes.c_void_p ),
  3520.         ( "printlevel", ctypes.c_int ),
  3521.         ( "storelevel", ctypes.c_int ),
  3522.         ( "flag", ctypes.c_int ),
  3523.         ( "pad", ctypes.c_int ),
  3524.         ( "reporttimer", ctypes.c_void_p ),]
  3525.  
  3526. class ReportTimerInfo(ctypes.Structure): _fields_=[
  3527.         ( "col", ctypes.c_float ),
  3528.         ( "greyscale", ctypes.c_float ),
  3529.         ( "widthfac", ctypes.c_float ),]
  3530.  
  3531. class wmWindowManager(ctypes.Structure): _fields_=[
  3532.         ( "id", ctypes.c_void_p ),
  3533.         ( "windrawable", ctypes.c_void_p ),
  3534.         ( "winactive", ctypes.c_void_p ),
  3535.         ( "windows", ctypes.c_void_p ),
  3536.         ( "initialized", ctypes.c_int ),
  3537.         ( "file_saved", ctypes.c_short ),
  3538.         ( "op_undo_depth", ctypes.c_short ),
  3539.         ( "operators", ctypes.c_void_p ),
  3540.         ( "queue", ctypes.c_void_p ),
  3541.         ( "reports", ctypes.c_void_p ),
  3542.         ( "jobs", ctypes.c_void_p ),
  3543.         ( "paintcursors", ctypes.c_void_p ),
  3544.         ( "drags", ctypes.c_void_p ),
  3545.         ( "keyconfigs", ctypes.c_void_p ),
  3546.         ( "defaultconf", ctypes.c_void_p ),
  3547.         ( "timers", ctypes.c_void_p ),
  3548.         ( "autosavetimer", ctypes.c_void_p ),]
  3549.  
  3550. class wmWindow(ctypes.Structure): _fields_=[
  3551.         ( "next", ctypes.c_void_p ),
  3552.         ( "prev", ctypes.c_void_p ),
  3553.         ( "ghostwin", ctypes.POINTER( ctypes.c_void_p ) ),
  3554.         ( "winid", ctypes.c_int ),
  3555.         ( "grabcursor", ctypes.c_short ),
  3556.         ( "pad", ctypes.c_short ),
  3557.         ( "screen", ctypes.c_void_p ),
  3558.         ( "newscreen", ctypes.c_void_p ),
  3559.         ( "screenname", ctypes.c_char ),
  3560.         ( "posx", ctypes.c_short ),
  3561.         ( "posy", ctypes.c_short ),
  3562.         ( "sizex", ctypes.c_short ),
  3563.         ( "sizey", ctypes.c_short ),
  3564.         ( "windowstate", ctypes.c_short ),
  3565.         ( "monitor", ctypes.c_short ),
  3566.         ( "active", ctypes.c_short ),
  3567.         ( "cursor", ctypes.c_short ),
  3568.         ( "lastcursor", ctypes.c_short ),
  3569.         ( "addmousemove", ctypes.c_short ),
  3570.         ( "pad2", ctypes.c_short ),
  3571.         ( "eventstate", ctypes.c_void_p ),
  3572.         ( "curswin", ctypes.c_void_p ),
  3573.         ( "tweak", ctypes.c_void_p ),
  3574.         ( "drawmethod", ctypes.c_int ),
  3575.         ( "drawfail", ctypes.c_int ),
  3576.         ( "drawdata", ctypes.POINTER( ctypes.c_void_p ) ),
  3577.         ( "queue", ctypes.c_void_p ),
  3578.         ( "handlers", ctypes.c_void_p ),
  3579.         ( "modalhandlers", ctypes.c_void_p ),
  3580.         ( "subwindows", ctypes.c_void_p ),
  3581.         ( "gesture", ctypes.c_void_p ),]
  3582.  
  3583. class wmOperatorTypeMacro(ctypes.Structure): _fields_=[
  3584.         ( "next", ctypes.c_void_p ),
  3585.         ( "prev", ctypes.c_void_p ),
  3586.         ( "idname", ctypes.c_char ),
  3587.         ( "properties", ctypes.c_void_p ),
  3588.         ( "ptr", ctypes.c_void_p ),]
  3589.  
  3590. class wmKeyMapItem(ctypes.Structure): _fields_=[
  3591.         ( "next", ctypes.c_void_p ),
  3592.         ( "prev", ctypes.c_void_p ),
  3593.         ( "idname", ctypes.c_char ),
  3594.         ( "properties", ctypes.c_void_p ),
  3595.         ( "propvalue", ctypes.c_short ),
  3596.         ( "type", ctypes.c_short ),
  3597.         ( "val", ctypes.c_short ),
  3598.         ( "shift", ctypes.c_short ),
  3599.         ( "ctrl", ctypes.c_short ),
  3600.         ( "alt", ctypes.c_short ),
  3601.         ( "oskey", ctypes.c_short ),
  3602.         ( "keymodifier", ctypes.c_short ),
  3603.         ( "flag", ctypes.c_short ),
  3604.         ( "maptype", ctypes.c_short ),
  3605.         ( "id", ctypes.c_short ),
  3606.         ( "pad", ctypes.c_short ),
  3607.         ( "ptr", ctypes.c_void_p ),]
  3608.  
  3609. class wmKeyMap(ctypes.Structure): _fields_=[
  3610.         ( "next", ctypes.c_void_p ),
  3611.         ( "prev", ctypes.c_void_p ),
  3612.         ( "items", ctypes.c_void_p ),
  3613.         ( "idname", ctypes.c_char ),
  3614.         ( "spaceid", ctypes.c_short ),
  3615.         ( "regionid", ctypes.c_short ),
  3616.         ( "flag", ctypes.c_short ),
  3617.         ( "kmi_id", ctypes.c_short ),
  3618.         ( "poll", ctypes.c_void_p ),
  3619.         ( "modal_items", ctypes.POINTER( ctypes.c_void_p ) ),]
  3620.  
  3621. class wmKeyConfig(ctypes.Structure): _fields_=[
  3622.         ( "next", ctypes.c_void_p ),
  3623.         ( "prev", ctypes.c_void_p ),
  3624.         ( "idname", ctypes.c_char ),
  3625.         ( "basename", ctypes.c_char ),
  3626.         ( "keymaps", ctypes.c_void_p ),
  3627.         ( "actkeymap", ctypes.c_int ),
  3628.         ( "flag", ctypes.c_int ),]
  3629.  
  3630. class wmOperator(ctypes.Structure): _fields_=[
  3631.         ( "next", ctypes.c_void_p ),
  3632.         ( "prev", ctypes.c_void_p ),
  3633.         ( "idname", ctypes.c_char ),
  3634.         ( "properties", ctypes.c_void_p ),
  3635.         ( "type", ctypes.c_void_p ),
  3636.         ( "customdata", ctypes.POINTER( ctypes.c_void_p ) ),
  3637.         ( "py_instance", ctypes.POINTER( ctypes.c_void_p ) ),
  3638.         ( "ptr", ctypes.c_void_p ),
  3639.         ( "reports", ctypes.c_void_p ),
  3640.         ( "macro", ctypes.c_void_p ),
  3641.         ( "opm", ctypes.c_void_p ),
  3642.         ( "layout", ctypes.c_void_p ),
  3643.         ( "flag", ctypes.c_short ),
  3644.         ( "pad", ctypes.c_short ),]
  3645.  
  3646. wmRadialControlMode = {
  3647.         "WM_RADIALCONTROL_SIZE" : 0,
  3648.         "WM_RADIALCONTROL_STRENGTH" : 1,
  3649.         "WM_RADIALCONTROL_ANGLE" : 2,
  3650. }
  3651.  
  3652. BKE_reports_init = _c_external_function(                "BKE_reports_init", [
  3653.         ("reports", ctypes.c_void_p, 1),
  3654.         ("flag", ctypes.c_int, 1),],
  3655.         ctypes.c_void_p )
  3656.  
  3657. BKE_reports_clear = _c_external_function(               "BKE_reports_clear", [
  3658.         ("reports", ctypes.c_void_p, 1),],
  3659.         ctypes.c_void_p )
  3660.  
  3661. BKE_report = _c_external_function(              "BKE_report", [
  3662.         ("reports", ctypes.c_void_p, 1),
  3663.         ("type", ctypes.c_void_p, 1),
  3664.         ("message", ctypes.c_char_p, 1),],
  3665.         ctypes.c_void_p )
  3666.  
  3667. BKE_reportf = _c_external_function(             "BKE_reportf", [
  3668.         ("reports", ctypes.c_void_p, 1),
  3669.         ("type", ctypes.c_void_p, 1),
  3670.         ("format", ctypes.c_char_p, 1),],
  3671.         ctypes.c_void_p )
  3672.  
  3673. BKE_reports_prepend = _c_external_function(             "BKE_reports_prepend", [
  3674.         ("reports", ctypes.c_void_p, 1),
  3675.         ("prepend", ctypes.c_char_p, 1),],
  3676.         ctypes.c_void_p )
  3677.  
  3678. BKE_reports_prependf = _c_external_function(            "BKE_reports_prependf", [
  3679.         ("reports", ctypes.c_void_p, 1),
  3680.         ("prepend", ctypes.c_char_p, 1),],
  3681.         ctypes.c_void_p )
  3682.  
  3683. BKE_report_print_level = _c_external_function(          "BKE_report_print_level", [
  3684.         ("reports", ctypes.c_void_p, 1),],
  3685.         ctypes.c_void_p )
  3686.  
  3687. BKE_report_print_level_set = _c_external_function(              "BKE_report_print_level_set", [
  3688.         ("reports", ctypes.c_void_p, 1),
  3689.         ("level", ctypes.c_void_p, 1),],
  3690.         ctypes.c_void_p )
  3691.  
  3692. BKE_report_store_level = _c_external_function(          "BKE_report_store_level", [
  3693.         ("reports", ctypes.c_void_p, 1),],
  3694.         ctypes.c_void_p )
  3695.  
  3696. BKE_report_store_level_set = _c_external_function(              "BKE_report_store_level_set", [
  3697.         ("reports", ctypes.c_void_p, 1),
  3698.         ("level", ctypes.c_void_p, 1),],
  3699.         ctypes.c_void_p )
  3700.  
  3701. BKE_reports_string = _c_external_function(              "BKE_reports_string", [
  3702.         ("reports", ctypes.c_void_p, 1),
  3703.         ("level", ctypes.c_void_p, 1),],
  3704.         ctypes.c_char )
  3705.  
  3706. BKE_reports_print = _c_external_function(               "BKE_reports_print", [
  3707.         ("reports", ctypes.c_void_p, 1),
  3708.         ("level", ctypes.c_void_p, 1),],
  3709.         ctypes.c_void_p )
  3710.  
  3711. BKE_reports_last_displayable = _c_external_function(            "BKE_reports_last_displayable", [
  3712.         ("reports", ctypes.c_void_p, 1),],
  3713.         ctypes.c_void_p )
  3714.  
  3715. #class PackedFile(ctypes.Structure): pass               # typedef or forward reference #
  3716. #class bSound(ctypes.Structure): pass           # typedef or forward reference #
  3717. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  3718. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  3719. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  3720. #class Sequence(ctypes.Structure): pass         # typedef or forward reference #
  3721. sound_init_once = _c_external_function(         "sound_init_once", [],
  3722.         ctypes.c_void_p )
  3723.  
  3724. sound_init = _c_external_function(              "sound_init", [
  3725.         ("main", ctypes.c_void_p, 1),],
  3726.         ctypes.c_void_p )
  3727.  
  3728. sound_exit = _c_external_function(              "sound_exit", [],
  3729.         ctypes.c_void_p )
  3730.  
  3731. sound_force_device = _c_external_function(              "sound_force_device", [
  3732.         ("device", ctypes.c_int, 1),],
  3733.         ctypes.c_void_p )
  3734.  
  3735. sound_define_from_str = _c_external_function(           "sound_define_from_str", [
  3736.         ("str", ctypes.c_char_p, 1),],
  3737.         ctypes.c_int )
  3738.  
  3739. sound_new_file = _c_external_function(          "sound_new_file", [
  3740.         ("main", ctypes.c_void_p, 1),
  3741.         ("filename", ctypes.c_char_p, 1),],
  3742.         ctypes.c_void_p )
  3743.  
  3744. sound_delete = _c_external_function(            "sound_delete", [
  3745.         ("C", ctypes.c_void_p, 1),
  3746.         ("sound", ctypes.c_void_p, 1),],
  3747.         ctypes.c_void_p )
  3748.  
  3749. sound_cache = _c_external_function(             "sound_cache", [
  3750.         ("sound", ctypes.c_void_p, 1),
  3751.         ("ignore", ctypes.c_int, 1),],
  3752.         ctypes.c_void_p )
  3753.  
  3754. sound_delete_cache = _c_external_function(              "sound_delete_cache", [
  3755.         ("sound", ctypes.c_void_p, 1),],
  3756.         ctypes.c_void_p )
  3757.  
  3758. sound_load = _c_external_function(              "sound_load", [
  3759.         ("main", ctypes.c_void_p, 1),
  3760.         ("sound", ctypes.c_void_p, 1),],
  3761.         ctypes.c_void_p )
  3762.  
  3763. sound_free = _c_external_function(              "sound_free", [
  3764.         ("sound", ctypes.c_void_p, 1),],
  3765.         ctypes.c_void_p )
  3766.  
  3767. sound_create_scene = _c_external_function(              "sound_create_scene", [
  3768.         ("scene", ctypes.c_void_p, 1),],
  3769.         ctypes.c_void_p )
  3770.  
  3771. sound_destroy_scene = _c_external_function(             "sound_destroy_scene", [
  3772.         ("scene", ctypes.c_void_p, 1),],
  3773.         ctypes.c_void_p )
  3774.  
  3775. sound_scene_add_scene_sound = _c_external_function(             "sound_scene_add_scene_sound", [
  3776.         ("scene", ctypes.c_void_p, 1),
  3777.         ("sequence", ctypes.c_void_p, 1),
  3778.         ("startframe", ctypes.c_int, 1),
  3779.         ("endframe", ctypes.c_int, 1),
  3780.         ("frameskip", ctypes.c_int, 1),],
  3781.         ctypes.c_void_p )
  3782.  
  3783. sound_add_scene_sound = _c_external_function(           "sound_add_scene_sound", [
  3784.         ("scene", ctypes.c_void_p, 1),
  3785.         ("sequence", ctypes.c_void_p, 1),
  3786.         ("startframe", ctypes.c_int, 1),
  3787.         ("endframe", ctypes.c_int, 1),
  3788.         ("frameskip", ctypes.c_int, 1),],
  3789.         ctypes.c_void_p )
  3790.  
  3791. sound_remove_scene_sound = _c_external_function(                "sound_remove_scene_sound", [
  3792.         ("scene", ctypes.c_void_p, 1),
  3793.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),],
  3794.         ctypes.c_void_p )
  3795.  
  3796. sound_mute_scene_sound = _c_external_function(          "sound_mute_scene_sound", [
  3797.         ("scene", ctypes.c_void_p, 1),
  3798.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  3799.         ("mute", ctypes.c_char, 1),],
  3800.         ctypes.c_void_p )
  3801.  
  3802. sound_move_scene_sound = _c_external_function(          "sound_move_scene_sound", [
  3803.         ("scene", ctypes.c_void_p, 1),
  3804.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  3805.         ("startframe", ctypes.c_int, 1),
  3806.         ("endframe", ctypes.c_int, 1),
  3807.         ("frameskip", ctypes.c_int, 1),],
  3808.         ctypes.c_void_p )
  3809.  
  3810. sound_play_scene = _c_external_function(                "sound_play_scene", [
  3811.         ("scene", ctypes.c_void_p, 1),],
  3812.         ctypes.c_void_p )
  3813.  
  3814. sound_stop_scene = _c_external_function(                "sound_stop_scene", [
  3815.         ("scene", ctypes.c_void_p, 1),],
  3816.         ctypes.c_void_p )
  3817.  
  3818. sound_seek_scene = _c_external_function(                "sound_seek_scene", [
  3819.         ("C", ctypes.c_void_p, 1),],
  3820.         ctypes.c_void_p )
  3821.  
  3822. sound_sync_scene = _c_external_function(                "sound_sync_scene", [
  3823.         ("scene", ctypes.c_void_p, 1),],
  3824.         ctypes.c_float )
  3825.  
  3826. sound_scene_playing = _c_external_function(             "sound_scene_playing", [
  3827.         ("scene", ctypes.c_void_p, 1),],
  3828.         ctypes.c_int )
  3829.  
  3830. sound_read_sound_buffer = _c_external_function(         "sound_read_sound_buffer", [
  3831.         ("sound", ctypes.c_void_p, 1),
  3832.         ("buffer", ctypes.POINTER( ctypes.c_float ), 1),
  3833.         ("length", ctypes.c_int, 1),
  3834.         ("start", ctypes.c_float, 1),
  3835.         ("end", ctypes.c_float, 1),],
  3836.         ctypes.c_int )
  3837.  
  3838. #class ImBuf(ctypes.Structure): pass            # typedef or forward reference #
  3839. #class anim(ctypes.Structure): pass             # typedef or forward reference #
  3840. IMB_init = _c_external_function(                "IMB_init", [],
  3841.         ctypes.c_void_p )
  3842.  
  3843. IMB_exit = _c_external_function(                "IMB_exit", [],
  3844.         ctypes.c_void_p )
  3845.  
  3846. IMB_ibImageFromMemory = _c_external_function(           "IMB_ibImageFromMemory", [
  3847.         ("mem", ctypes.c_char_p, 1),
  3848.         ("size", ctypes.c_size_t, 1),
  3849.         ("flags", ctypes.c_int, 1),],
  3850.         ctypes.c_void_p )
  3851.  
  3852. IMB_testiffname = _c_external_function(         "IMB_testiffname", [
  3853.         ("naam", ctypes.c_char_p, 1),
  3854.         ("flags", ctypes.c_int, 1),],
  3855.         ctypes.c_void_p )
  3856.  
  3857. IMB_loadiffname = _c_external_function(         "IMB_loadiffname", [
  3858.         ("naam", ctypes.c_char_p, 1),
  3859.         ("flags", ctypes.c_int, 1),],
  3860.         ctypes.c_void_p )
  3861.  
  3862. IMB_freeImBuf = _c_external_function(           "IMB_freeImBuf", [
  3863.         ("ibuf", ctypes.c_void_p, 1),],
  3864.         ctypes.c_void_p )
  3865.  
  3866. IMB_allocImBuf = _c_external_function(          "IMB_allocImBuf", [
  3867.         ("x", ctypes.c_short, 1),
  3868.         ("y", ctypes.c_short, 1),
  3869.         ("d", ctypes.c_char, 1),
  3870.         ("flags", ctypes.c_int, 1),
  3871.         ("bitmap", ctypes.c_char, 1),],
  3872.         ctypes.c_void_p )
  3873.  
  3874. IMB_refImBuf = _c_external_function(            "IMB_refImBuf", [
  3875.         ("ibuf", ctypes.c_void_p, 1),],
  3876.         ctypes.c_void_p )
  3877.  
  3878. IMB_cache_limiter_insert = _c_external_function(                "IMB_cache_limiter_insert", [
  3879.         ("i", ctypes.c_void_p, 1),],
  3880.         ctypes.c_void_p )
  3881.  
  3882. IMB_cache_limiter_unmanage = _c_external_function(              "IMB_cache_limiter_unmanage", [
  3883.         ("i", ctypes.c_void_p, 1),],
  3884.         ctypes.c_void_p )
  3885.  
  3886. IMB_cache_limiter_touch = _c_external_function(         "IMB_cache_limiter_touch", [
  3887.         ("i", ctypes.c_void_p, 1),],
  3888.         ctypes.c_void_p )
  3889.  
  3890. IMB_cache_limiter_ref = _c_external_function(           "IMB_cache_limiter_ref", [
  3891.         ("i", ctypes.c_void_p, 1),],
  3892.         ctypes.c_void_p )
  3893.  
  3894. IMB_cache_limiter_unref = _c_external_function(         "IMB_cache_limiter_unref", [
  3895.         ("i", ctypes.c_void_p, 1),],
  3896.         ctypes.c_void_p )
  3897.  
  3898. IMB_cache_limiter_get_refcount = _c_external_function(          "IMB_cache_limiter_get_refcount", [
  3899.         ("i", ctypes.c_void_p, 1),],
  3900.         ctypes.c_int )
  3901.  
  3902. IMB_free_cache_limiter = _c_external_function(          "IMB_free_cache_limiter", [],
  3903.         ctypes.c_void_p )
  3904.  
  3905. IMB_dupImBuf = _c_external_function(            "IMB_dupImBuf", [
  3906.         ("ibuf1", ctypes.c_void_p, 1),],
  3907.         ctypes.c_void_p )
  3908.  
  3909. addzbufImBuf = _c_external_function(            "addzbufImBuf", [
  3910.         ("ibuf", ctypes.c_void_p, 1),],
  3911.         ctypes.c_short )
  3912.  
  3913. addzbuffloatImBuf = _c_external_function(               "addzbuffloatImBuf", [
  3914.         ("ibuf", ctypes.c_void_p, 1),],
  3915.         ctypes.c_short )
  3916.  
  3917. IMB_BlendMode = {
  3918.         "IMB_BLEND_MIX" : 0,
  3919.         "IMB_BLEND_ADD" : 1,
  3920.         "IMB_BLEND_SUB" : 2,
  3921.         "IMB_BLEND_MUL" : 3,
  3922.         "IMB_BLEND_LIGHTEN" : 4,
  3923.         "IMB_BLEND_DARKEN" : 5,
  3924.         "IMB_BLEND_ERASE_ALPHA" : 6,
  3925.         "IMB_BLEND_ADD_ALPHA" : 7,
  3926.         "IMB_BLEND_COPY" : 4096,
  3927.         "IMB_BLEND_COPY_RGB" : 4097,
  3928.         "IMB_BLEND_COPY_ALPHA" : 4098,
  3929. }
  3930.  
  3931. IMB_blend_color = _c_external_function(         "IMB_blend_color", [
  3932.         ("src1", ctypes.c_int, 1),
  3933.         ("src2", ctypes.c_int, 1),
  3934.         ("fac", ctypes.c_int, 1),
  3935.         ("mode", ctypes.c_void_p, 1),],
  3936.         ctypes.c_int )
  3937.  
  3938. IMB_blend_color_float = _c_external_function(           "IMB_blend_color_float", [
  3939.         ("dst", ctypes.POINTER( ctypes.c_float ), 1),
  3940.         ("src1", ctypes.POINTER( ctypes.c_float ), 1),
  3941.         ("src2", ctypes.POINTER( ctypes.c_float ), 1),
  3942.         ("fac", ctypes.c_float, 1),
  3943.         ("mode", ctypes.c_void_p, 1),],
  3944.         ctypes.c_void_p )
  3945.  
  3946. IMB_rectclip = _c_external_function(            "IMB_rectclip", [
  3947.         ("dbuf", ctypes.c_void_p, 1),
  3948.         ("sbuf", ctypes.c_void_p, 1),
  3949.         ("destx", ctypes.POINTER( ctypes.c_int ), 1),
  3950.         ("desty", ctypes.POINTER( ctypes.c_int ), 1),
  3951.         ("srcx", ctypes.POINTER( ctypes.c_int ), 1),
  3952.         ("srcy", ctypes.POINTER( ctypes.c_int ), 1),
  3953.         ("width", ctypes.POINTER( ctypes.c_int ), 1),
  3954.         ("height", ctypes.POINTER( ctypes.c_int ), 1),],
  3955.         ctypes.c_void_p )
  3956.  
  3957. IMB_rectcpy = _c_external_function(             "IMB_rectcpy", [
  3958.         ("drect", ctypes.c_void_p, 1),
  3959.         ("srect", ctypes.c_void_p, 1),
  3960.         ("destx", ctypes.c_int, 1),
  3961.         ("desty", ctypes.c_int, 1),
  3962.         ("srcx", ctypes.c_int, 1),
  3963.         ("srcy", ctypes.c_int, 1),
  3964.         ("width", ctypes.c_int, 1),
  3965.         ("height", ctypes.c_int, 1),],
  3966.         ctypes.c_void_p )
  3967.  
  3968. IMB_rectblend = _c_external_function(           "IMB_rectblend", [
  3969.         ("dbuf", ctypes.c_void_p, 1),
  3970.         ("sbuf", ctypes.c_void_p, 1),
  3971.         ("destx", ctypes.c_int, 1),
  3972.         ("desty", ctypes.c_int, 1),
  3973.         ("srcx", ctypes.c_int, 1),
  3974.         ("srcy", ctypes.c_int, 1),
  3975.         ("width", ctypes.c_int, 1),
  3976.         ("height", ctypes.c_int, 1),
  3977.         ("mode", ctypes.c_void_p, 1),],
  3978.         ctypes.c_void_p )
  3979.  
  3980. IMB_anim_get_duration = _c_external_function(           "IMB_anim_get_duration", [
  3981.         ("anim", ctypes.c_void_p, 1),],
  3982.         ctypes.c_int )
  3983.  
  3984. IMB_open_anim = _c_external_function(           "IMB_open_anim", [
  3985.         ("name", ctypes.c_char_p, 1),
  3986.         ("ib_flags", ctypes.c_int, 1),],
  3987.         ctypes.c_void_p )
  3988.  
  3989. IMB_close_anim = _c_external_function(          "IMB_close_anim", [
  3990.         ("anim", ctypes.c_void_p, 1),],
  3991.         ctypes.c_void_p )
  3992.  
  3993. ismovie = _c_external_function(         "ismovie", [
  3994.         ("name", ctypes.c_char_p, 1),],
  3995.         ctypes.c_int )
  3996.  
  3997. IMB_anim_set_preseek = _c_external_function(            "IMB_anim_set_preseek", [
  3998.         ("anim", ctypes.c_void_p, 1),
  3999.         ("preseek", ctypes.c_int, 1),],
  4000.         ctypes.c_void_p )
  4001.  
  4002. IMB_anim_get_preseek = _c_external_function(            "IMB_anim_get_preseek", [
  4003.         ("anim", ctypes.c_void_p, 1),],
  4004.         ctypes.c_int )
  4005.  
  4006. IMB_anim_absolute = _c_external_function(               "IMB_anim_absolute", [
  4007.         ("anim", ctypes.c_void_p, 1),
  4008.         ("position", ctypes.c_int, 1),],
  4009.         ctypes.c_void_p )
  4010.  
  4011. IMB_anim_previewframe = _c_external_function(           "IMB_anim_previewframe", [
  4012.         ("anim", ctypes.c_void_p, 1),],
  4013.         ctypes.c_void_p )
  4014.  
  4015. IMB_free_anim_ibuf = _c_external_function(              "IMB_free_anim_ibuf", [
  4016.         ("anim", ctypes.c_void_p, 1),],
  4017.         ctypes.c_void_p )
  4018.  
  4019. IMB_free_anim = _c_external_function(           "IMB_free_anim", [
  4020.         ("anim", ctypes.c_void_p, 1),],
  4021.         ctypes.c_void_p )
  4022.  
  4023. IMB_filter = _c_external_function(              "IMB_filter", [
  4024.         ("ibuf", ctypes.c_void_p, 1),],
  4025.         ctypes.c_void_p )
  4026.  
  4027. IMB_filterN = _c_external_function(             "IMB_filterN", [
  4028.         ("out", ctypes.c_void_p, 1),
  4029.         ("in", ctypes.c_void_p, 1),],
  4030.         ctypes.c_void_p )
  4031.  
  4032. IMB_filter_extend = _c_external_function(               "IMB_filter_extend", [
  4033.         ("ibuf", ctypes.c_void_p, 1),
  4034.         ("mask", ctypes.c_char_p, 1),],
  4035.         ctypes.c_void_p )
  4036.  
  4037. IMB_makemipmap = _c_external_function(          "IMB_makemipmap", [
  4038.         ("ibuf", ctypes.c_void_p, 1),
  4039.         ("use_filter", ctypes.c_int, 1),],
  4040.         ctypes.c_void_p )
  4041.  
  4042. IMB_getmipmap = _c_external_function(           "IMB_getmipmap", [
  4043.         ("ibuf", ctypes.c_void_p, 1),
  4044.         ("level", ctypes.c_int, 1),],
  4045.         ctypes.c_void_p )
  4046.  
  4047. IMB_tile_cache_params = _c_external_function(           "IMB_tile_cache_params", [
  4048.         ("totthread", ctypes.c_int, 1),
  4049.         ("maxmem", ctypes.c_int, 1),],
  4050.         ctypes.c_void_p )
  4051.  
  4052. IMB_gettile = _c_external_function(             "IMB_gettile", [
  4053.         ("ibuf", ctypes.c_void_p, 1),
  4054.         ("tx", ctypes.c_int, 1),
  4055.         ("ty", ctypes.c_int, 1),
  4056.         ("thread", ctypes.c_int, 1),],
  4057.         ctypes.c_int )
  4058.  
  4059. IMB_tiles_to_rect = _c_external_function(               "IMB_tiles_to_rect", [
  4060.         ("ibuf", ctypes.c_void_p, 1),],
  4061.         ctypes.c_void_p )
  4062.  
  4063. IMB_filtery = _c_external_function(             "IMB_filtery", [
  4064.         ("ibuf", ctypes.c_void_p, 1),],
  4065.         ctypes.c_void_p )
  4066.  
  4067. IMB_onehalf = _c_external_function(             "IMB_onehalf", [
  4068.         ("ibuf1", ctypes.c_void_p, 1),],
  4069.         ctypes.c_void_p )
  4070.  
  4071. IMB_scaleImBuf = _c_external_function(          "IMB_scaleImBuf", [
  4072.         ("ibuf", ctypes.c_void_p, 1),
  4073.         ("newx", ctypes.c_short, 1),
  4074.         ("newy", ctypes.c_short, 1),],
  4075.         ctypes.c_void_p )
  4076.  
  4077. IMB_scalefastImBuf = _c_external_function(              "IMB_scalefastImBuf", [
  4078.         ("ibuf", ctypes.c_void_p, 1),
  4079.         ("newx", ctypes.c_short, 1),
  4080.         ("newy", ctypes.c_short, 1),],
  4081.         ctypes.c_void_p )
  4082.  
  4083. IMB_saveiff = _c_external_function(             "IMB_saveiff", [
  4084.         ("ibuf", ctypes.c_void_p, 1),
  4085.         ("naam", ctypes.c_char_p, 1),
  4086.         ("flags", ctypes.c_int, 1),],
  4087.         ctypes.c_short )
  4088.  
  4089. IMB_png_encode = _c_external_function(          "IMB_png_encode", [
  4090.         ("ibuf", ctypes.c_void_p, 1),
  4091.         ("file", ctypes.c_int, 1),
  4092.         ("flags", ctypes.c_int, 1),],
  4093.         ctypes.c_short )
  4094.  
  4095. IMB_ispic = _c_external_function(               "IMB_ispic", [
  4096.         ("name", ctypes.c_char_p, 1),],
  4097.         ctypes.c_int )
  4098.  
  4099. IMB_isanim = _c_external_function(              "IMB_isanim", [
  4100.         ("name", ctypes.c_char_p, 1),],
  4101.         ctypes.c_int )
  4102.  
  4103. imb_get_anim_type = _c_external_function(               "imb_get_anim_type", [
  4104.         ("name", ctypes.c_char_p, 1),],
  4105.         ctypes.c_int )
  4106.  
  4107. IMB_de_interlace = _c_external_function(                "IMB_de_interlace", [
  4108.         ("ibuf", ctypes.c_void_p, 1),],
  4109.         ctypes.c_void_p )
  4110.  
  4111. IMB_interlace = _c_external_function(           "IMB_interlace", [
  4112.         ("ibuf", ctypes.c_void_p, 1),],
  4113.         ctypes.c_void_p )
  4114.  
  4115. IMB_rect_from_float = _c_external_function(             "IMB_rect_from_float", [
  4116.         ("ibuf", ctypes.c_void_p, 1),],
  4117.         ctypes.c_void_p )
  4118.  
  4119. IMB_float_from_rect = _c_external_function(             "IMB_float_from_rect", [
  4120.         ("ibuf", ctypes.c_void_p, 1),],
  4121.         ctypes.c_void_p )
  4122.  
  4123. IMB_float_from_rect_simple = _c_external_function(              "IMB_float_from_rect_simple", [
  4124.         ("ibuf", ctypes.c_void_p, 1),],
  4125.         ctypes.c_void_p )
  4126.  
  4127. IMB_convert_profile = _c_external_function(             "IMB_convert_profile", [
  4128.         ("ibuf", ctypes.c_void_p, 1),
  4129.         ("profile", ctypes.c_int, 1),],
  4130.         ctypes.c_void_p )
  4131.  
  4132. IMB_convert_rgba_to_abgr = _c_external_function(                "IMB_convert_rgba_to_abgr", [
  4133.         ("ibuf", ctypes.c_void_p, 1),],
  4134.         ctypes.c_void_p )
  4135.  
  4136. IMB_convert_bgra_to_rgba = _c_external_function(                "IMB_convert_bgra_to_rgba", [
  4137.         ("size", ctypes.c_int, 1),
  4138.         ("rect", ctypes.POINTER( ctypes.c_int ), 1),],
  4139.         ctypes.c_void_p )
  4140.  
  4141. bicubic_interpolation = _c_external_function(           "bicubic_interpolation", [
  4142.         ("in", ctypes.c_void_p, 1),
  4143.         ("out", ctypes.c_void_p, 1),
  4144.         ("u", ctypes.c_float, 1),
  4145.         ("v", ctypes.c_float, 1),
  4146.         ("xout", ctypes.c_int, 1),
  4147.         ("yout", ctypes.c_int, 1),],
  4148.         ctypes.c_void_p )
  4149.  
  4150. neareast_interpolation = _c_external_function(          "neareast_interpolation", [
  4151.         ("in", ctypes.c_void_p, 1),
  4152.         ("out", ctypes.c_void_p, 1),
  4153.         ("u", ctypes.c_float, 1),
  4154.         ("v", ctypes.c_float, 1),
  4155.         ("xout", ctypes.c_int, 1),
  4156.         ("yout", ctypes.c_int, 1),],
  4157.         ctypes.c_void_p )
  4158.  
  4159. bilinear_interpolation = _c_external_function(          "bilinear_interpolation", [
  4160.         ("in", ctypes.c_void_p, 1),
  4161.         ("out", ctypes.c_void_p, 1),
  4162.         ("u", ctypes.c_float, 1),
  4163.         ("v", ctypes.c_float, 1),
  4164.         ("xout", ctypes.c_int, 1),
  4165.         ("yout", ctypes.c_int, 1),],
  4166.         ctypes.c_void_p )
  4167.  
  4168. bicubic_interpolation_color = _c_external_function(             "bicubic_interpolation_color", [
  4169.         ("in", ctypes.c_void_p, 1),
  4170.         ("col", ctypes.c_char_p, 1),
  4171.         ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4172.         ("u", ctypes.c_float, 1),
  4173.         ("v", ctypes.c_float, 1),],
  4174.         ctypes.c_void_p )
  4175.  
  4176. neareast_interpolation_color = _c_external_function(            "neareast_interpolation_color", [
  4177.         ("in", ctypes.c_void_p, 1),
  4178.         ("col", ctypes.c_char_p, 1),
  4179.         ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4180.         ("u", ctypes.c_float, 1),
  4181.         ("v", ctypes.c_float, 1),],
  4182.         ctypes.c_void_p )
  4183.  
  4184. bilinear_interpolation_color = _c_external_function(            "bilinear_interpolation_color", [
  4185.         ("in", ctypes.c_void_p, 1),
  4186.         ("col", ctypes.c_char_p, 1),
  4187.         ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4188.         ("u", ctypes.c_float, 1),
  4189.         ("v", ctypes.c_float, 1),],
  4190.         ctypes.c_void_p )
  4191.  
  4192. bilinear_interpolation_color_wrap = _c_external_function(               "bilinear_interpolation_color_wrap", [
  4193.         ("in", ctypes.c_void_p, 1),
  4194.         ("col", ctypes.c_char_p, 1),
  4195.         ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4196.         ("u", ctypes.c_float, 1),
  4197.         ("v", ctypes.c_float, 1),],
  4198.         ctypes.c_void_p )
  4199.  
  4200. IMB_loadiffmem = _c_external_function(          "IMB_loadiffmem", [
  4201.         ("mem", ctypes.POINTER( ctypes.c_int ), 1),
  4202.         ("flags", ctypes.c_int, 1),],
  4203.         ctypes.c_void_p )
  4204.  
  4205. IMB_loadifffile = _c_external_function(         "IMB_loadifffile", [
  4206.         ("file", ctypes.c_int, 1),
  4207.         ("flags", ctypes.c_int, 1),],
  4208.         ctypes.c_void_p )
  4209.  
  4210. IMB_half_x = _c_external_function(              "IMB_half_x", [
  4211.         ("ibuf1", ctypes.c_void_p, 1),],
  4212.         ctypes.c_void_p )
  4213.  
  4214. IMB_double_fast_x = _c_external_function(               "IMB_double_fast_x", [
  4215.         ("ibuf1", ctypes.c_void_p, 1),],
  4216.         ctypes.c_void_p )
  4217.  
  4218. IMB_double_x = _c_external_function(            "IMB_double_x", [
  4219.         ("ibuf1", ctypes.c_void_p, 1),],
  4220.         ctypes.c_void_p )
  4221.  
  4222. IMB_half_y = _c_external_function(              "IMB_half_y", [
  4223.         ("ibuf1", ctypes.c_void_p, 1),],
  4224.         ctypes.c_void_p )
  4225.  
  4226. IMB_double_fast_y = _c_external_function(               "IMB_double_fast_y", [
  4227.         ("ibuf1", ctypes.c_void_p, 1),],
  4228.         ctypes.c_void_p )
  4229.  
  4230. IMB_double_y = _c_external_function(            "IMB_double_y", [
  4231.         ("ibuf1", ctypes.c_void_p, 1),],
  4232.         ctypes.c_void_p )
  4233.  
  4234. IMB_flipx = _c_external_function(               "IMB_flipx", [
  4235.         ("ibuf", ctypes.c_void_p, 1),],
  4236.         ctypes.c_void_p )
  4237.  
  4238. IMB_flipy = _c_external_function(               "IMB_flipy", [
  4239.         ("ibuf", ctypes.c_void_p, 1),],
  4240.         ctypes.c_void_p )
  4241.  
  4242. IMB_premultiply_alpha = _c_external_function(           "IMB_premultiply_alpha", [
  4243.         ("ibuf", ctypes.c_void_p, 1),],
  4244.         ctypes.c_void_p )
  4245.  
  4246. IMB_freezbufImBuf = _c_external_function(               "IMB_freezbufImBuf", [
  4247.         ("ibuf", ctypes.c_void_p, 1),],
  4248.         ctypes.c_void_p )
  4249.  
  4250. IMB_freezbuffloatImBuf = _c_external_function(          "IMB_freezbuffloatImBuf", [
  4251.         ("ibuf", ctypes.c_void_p, 1),],
  4252.         ctypes.c_void_p )
  4253.  
  4254. IMB_rectfill = _c_external_function(            "IMB_rectfill", [
  4255.         ("drect", ctypes.c_void_p, 1),
  4256.         ("col", ctypes.c_float, 1),],
  4257.         ctypes.c_void_p )
  4258.  
  4259. IMB_rectfill_area = _c_external_function(               "IMB_rectfill_area", [
  4260.         ("ibuf", ctypes.c_void_p, 1),
  4261.         ("col", ctypes.POINTER( ctypes.c_float ), 1),
  4262.         ("x1", ctypes.c_int, 1),
  4263.         ("y1", ctypes.c_int, 1),
  4264.         ("x2", ctypes.c_int, 1),
  4265.         ("y2", ctypes.c_int, 1),],
  4266.         ctypes.c_void_p )
  4267.  
  4268. buf_rectfill_area = _c_external_function(               "buf_rectfill_area", [
  4269.         ("rect", ctypes.c_char_p, 1),
  4270.         ("rectf", ctypes.POINTER( ctypes.c_float ), 1),
  4271.         ("width", ctypes.c_int, 1),
  4272.         ("height", ctypes.c_int, 1),
  4273.         ("col", ctypes.POINTER( ctypes.c_float ), 1),
  4274.         ("x1", ctypes.c_int, 1),
  4275.         ("y1", ctypes.c_int, 1),
  4276.         ("x2", ctypes.c_int, 1),
  4277.         ("y2", ctypes.c_int, 1),],
  4278.         ctypes.c_void_p )
  4279.  
  4280. IMB_metadata_change_field = _c_external_function(               "IMB_metadata_change_field", [
  4281.         ("img", ctypes.c_void_p, 1),
  4282.         ("key", ctypes.c_char_p, 1),
  4283.         ("field", ctypes.c_char_p, 1),],
  4284.         ctypes.c_int )
  4285.  
  4286. imb_addrectImBuf = _c_external_function(                "imb_addrectImBuf", [
  4287.         ("ibuf", ctypes.c_void_p, 1),],
  4288.         ctypes.c_short )
  4289.  
  4290. imb_freerectImBuf = _c_external_function(               "imb_freerectImBuf", [
  4291.         ("ibuf", ctypes.c_void_p, 1),],
  4292.         ctypes.c_void_p )
  4293.  
  4294. imb_addrectfloatImBuf = _c_external_function(           "imb_addrectfloatImBuf", [
  4295.         ("ibuf", ctypes.c_void_p, 1),],
  4296.         ctypes.c_short )
  4297.  
  4298. imb_freerectfloatImBuf = _c_external_function(          "imb_freerectfloatImBuf", [
  4299.         ("ibuf", ctypes.c_void_p, 1),],
  4300.         ctypes.c_void_p )
  4301.  
  4302. imb_freemipmapImBuf = _c_external_function(             "imb_freemipmapImBuf", [
  4303.         ("ibuf", ctypes.c_void_p, 1),],
  4304.         ctypes.c_void_p )
  4305.  
  4306. imb_addtilesImBuf = _c_external_function(               "imb_addtilesImBuf", [
  4307.         ("ibuf", ctypes.c_void_p, 1),],
  4308.         ctypes.c_short )
  4309.  
  4310. imb_freetilesImBuf = _c_external_function(              "imb_freetilesImBuf", [
  4311.         ("ibuf", ctypes.c_void_p, 1),],
  4312.         ctypes.c_void_p )
  4313.  
  4314. #bprogname                                                      <TypeDecl=char>
  4315. #btempdir                                                       <TypeDecl=char>
  4316. #class Text(ctypes.Structure): pass             # typedef or forward reference #
  4317. #class ID(ctypes.Structure): pass               # typedef or forward reference #
  4318. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  4319. #class ChannelDriver(ctypes.Structure): pass            # typedef or forward reference #
  4320. #class ListBase(ctypes.Structure): pass         # typedef or forward reference #
  4321. #class SpaceText(ctypes.Structure): pass                # typedef or forward reference #
  4322. #class SpaceScript(ctypes.Structure): pass              # typedef or forward reference #
  4323. #class ScrArea(ctypes.Structure): pass          # typedef or forward reference #
  4324. #class bScreen(ctypes.Structure): pass          # typedef or forward reference #
  4325. #class bConstraint(ctypes.Structure): pass              # typedef or forward reference #
  4326. #class bPythonConstraint(ctypes.Structure): pass                # typedef or forward reference #
  4327. #class bConstraintOb(ctypes.Structure): pass            # typedef or forward reference #
  4328. #class bConstraintTarget(ctypes.Structure): pass                # typedef or forward reference #
  4329. #class Script(ctypes.Structure): pass           # typedef or forward reference #
  4330. #class BPyMenu(ctypes.Structure): pass          # typedef or forward reference #
  4331. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  4332. #class bContextDataResult(ctypes.Structure): pass               # typedef or forward reference #
  4333. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  4334. BPY_pyconstraint_eval = _c_external_function(           "BPY_pyconstraint_eval", [
  4335.         ("con", ctypes.c_void_p, 1),
  4336.         ("cob", ctypes.c_void_p, 1),
  4337.         ("targets", ctypes.c_void_p, 1),],
  4338.         ctypes.c_void_p )
  4339.  
  4340. BPY_pyconstraint_target = _c_external_function(         "BPY_pyconstraint_target", [
  4341.         ("con", ctypes.c_void_p, 1),
  4342.         ("ct", ctypes.c_void_p, 1),],
  4343.         ctypes.c_void_p )
  4344.  
  4345. BPY_pyconstraint_update = _c_external_function(         "BPY_pyconstraint_update", [
  4346.         ("owner", ctypes.c_void_p, 1),
  4347.         ("con", ctypes.c_void_p, 1),],
  4348.         ctypes.c_void_p )
  4349.  
  4350. BPY_is_pyconstraint = _c_external_function(             "BPY_is_pyconstraint", [
  4351.         ("text", ctypes.c_void_p, 1),],
  4352.         ctypes.c_int )
  4353.  
  4354. BPY_start_python = _c_external_function(                "BPY_start_python", [
  4355.         ("argc", ctypes.c_int, 1),
  4356.         ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),],
  4357.         ctypes.c_void_p )
  4358.  
  4359. BPY_end_python = _c_external_function(          "BPY_end_python", [],
  4360.         ctypes.c_void_p )
  4361.  
  4362. BPY_run_python_script = _c_external_function(           "BPY_run_python_script", [
  4363.         ("C", ctypes.c_void_p, 1),
  4364.         ("filename", ctypes.c_char_p, 1),
  4365.         ("text", ctypes.c_void_p, 1),
  4366.         ("reports", ctypes.c_void_p, 1),],
  4367.         ctypes.c_int )
  4368.  
  4369. BPY_run_script_space_draw = _c_external_function(               "BPY_run_script_space_draw", [
  4370.         ("C", ctypes.c_void_p, 1),
  4371.         ("sc", ctypes.c_void_p, 1),],
  4372.         ctypes.c_int )
  4373.  
  4374. BPY_update_modules = _c_external_function(              "BPY_update_modules", [],
  4375.         ctypes.c_void_p )
  4376.  
  4377. BPY_context_get = _c_external_function(         "BPY_context_get", [
  4378.         ("C", ctypes.c_void_p, 1),
  4379.         ("member", ctypes.c_char_p, 1),
  4380.         ("result", ctypes.c_void_p, 1),],
  4381.         ctypes.c_int )
  4382.  
  4383. BPY_free_compiled_text = _c_external_function(          "BPY_free_compiled_text", [
  4384.         ("text", ctypes.c_void_p, 1),],
  4385.         ctypes.c_void_p )
  4386.  
  4387. BPY_eval_driver = _c_external_function(         "BPY_eval_driver", [
  4388.         ("driver", ctypes.c_void_p, 1),],
  4389.         ctypes.c_float )
  4390.  
  4391. BPY_eval_button = _c_external_function(         "BPY_eval_button", [
  4392.         ("C", ctypes.c_void_p, 1),
  4393.         ("expr", ctypes.c_char_p, 1),
  4394.         ("value", ctypes.POINTER( ctypes.c_double ), 1),],
  4395.         ctypes.c_int )
  4396.  
  4397. BPY_eval_string = _c_external_function(         "BPY_eval_string", [
  4398.         ("C", ctypes.c_void_p, 1),
  4399.         ("expr", ctypes.c_char_p, 1),],
  4400.         ctypes.c_int )
  4401.  
  4402. BPY_call_importloader = _c_external_function(           "BPY_call_importloader", [
  4403.         ("name", ctypes.c_char_p, 1),],
  4404.         ctypes.c_int )
  4405.  
  4406. BPY_DECREF = _c_external_function(              "BPY_DECREF", [],
  4407.         ctypes.c_void_p )
  4408.  
  4409. BPY_set_context = _c_external_function(         "BPY_set_context", [
  4410.         ("C", ctypes.c_void_p, 1),],
  4411.         ctypes.c_void_p )
  4412.  
  4413. BPY_load_user_modules = _c_external_function(           "BPY_load_user_modules", [
  4414.         ("C", ctypes.c_void_p, 1),],
  4415.         ctypes.c_void_p )
  4416.  
  4417. #class bNodeTree(ctypes.Structure): pass                # typedef or forward reference #
  4418. #class Image(ctypes.Structure): pass            # typedef or forward reference #
  4419. #class Main(ctypes.Structure): pass             # typedef or forward reference #
  4420. #class NodeBlurData(ctypes.Structure): pass             # typedef or forward reference #
  4421. #class Object(ctypes.Structure): pass           # typedef or forward reference #
  4422. #class RenderData(ctypes.Structure): pass               # typedef or forward reference #
  4423. #class RenderEngine(ctypes.Structure): pass             # typedef or forward reference #
  4424. #class RenderEngineType(ctypes.Structure): pass         # typedef or forward reference #
  4425. #class RenderResult(ctypes.Structure): pass             # typedef or forward reference #
  4426. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  4427. #class ReportList(ctypes.Structure): pass               # typedef or forward reference #
  4428. #class Scene(ctypes.Structure): pass            # typedef or forward reference #
  4429. #class SceneRenderLayer(ctypes.Structure): pass         # typedef or forward reference #
  4430. #class Render(ctypes.Structure): pass           # typedef or forward reference #
  4431. class RenderPass(ctypes.Structure): _fields_=[
  4432.         ( "next", ctypes.c_void_p ),
  4433.         ( "prev", ctypes.c_void_p ),
  4434.         ( "passtype", ctypes.c_int ),
  4435.         ( "channels", ctypes.c_int ),
  4436.         ( "name", ctypes.c_char ),
  4437.         ( "chan_id", ctypes.c_char ),
  4438.         ( "rect", ctypes.POINTER( ctypes.c_float ) ),
  4439.         ( "rectx", ctypes.c_int ),
  4440.         ( "recty", ctypes.c_int ),]
  4441.  
  4442. class RenderLayer(ctypes.Structure): _fields_=[
  4443.         ( "next", ctypes.c_void_p ),
  4444.         ( "prev", ctypes.c_void_p ),
  4445.         ( "name", ctypes.c_char ),
  4446.         ( "lay", ctypes.c_int ),
  4447.         ( "lay_zmask", ctypes.c_int ),
  4448.         ( "layflag", ctypes.c_int ),
  4449.         ( "passflag", ctypes.c_int ),
  4450.         ( "pass_xor", ctypes.c_int ),
  4451.         ( "mat_override", ctypes.c_void_p ),
  4452.         ( "light_override", ctypes.c_void_p ),
  4453.         ( "rectf", ctypes.POINTER( ctypes.c_float ) ),
  4454.         ( "acolrect", ctypes.POINTER( ctypes.c_float ) ),
  4455.         ( "scolrect", ctypes.POINTER( ctypes.c_float ) ),
  4456.         ( "rectx", ctypes.c_int ),
  4457.         ( "recty", ctypes.c_int ),
  4458.         ( "passes", ctypes.c_void_p ),]
  4459.  
  4460. class RenderResult(ctypes.Structure): _fields_=[
  4461.         ( "next", ctypes.c_void_p ),
  4462.         ( "prev", ctypes.c_void_p ),
  4463.         ( "rectx", ctypes.c_int ),
  4464.         ( "recty", ctypes.c_int ),
  4465.         ( "crop", ctypes.c_short ),
  4466.         ( "sample_nr", ctypes.c_short ),
  4467.         ( "rect32", ctypes.POINTER( ctypes.c_int ) ),
  4468.         ( "rectf", ctypes.POINTER( ctypes.c_float ) ),
  4469.         ( "rectz", ctypes.POINTER( ctypes.c_float ) ),
  4470.         ( "tilerect", ctypes.c_void_p ),
  4471.         ( "xof", ctypes.c_int ),
  4472.         ( "yof", ctypes.c_int ),
  4473.         ( "layers", ctypes.c_void_p ),
  4474.         ( "renrect", ctypes.c_void_p ),
  4475.         ( "renlay", ctypes.c_void_p ),
  4476.         ( "exrhandle", ctypes.POINTER( ctypes.c_void_p ) ),
  4477.         ( "framenr", ctypes.c_int ),
  4478.         ( "have_combined", ctypes.c_int ),
  4479.         ( "text", ctypes.c_char_p ),]
  4480.  
  4481. class RenderStats(ctypes.Structure): _fields_=[
  4482.         ( "cfra", ctypes.c_int ),
  4483.         ( "totface", ctypes.c_int ),
  4484.         ( "totvert", ctypes.c_int ),
  4485.         ( "totstrand", ctypes.c_int ),
  4486.         ( "tothalo", ctypes.c_int ),
  4487.         ( "totlamp", ctypes.c_int ),
  4488.         ( "totpart", ctypes.c_int ),
  4489.         ( "curfield", ctypes.c_short ),
  4490.         ( "curblur", ctypes.c_short ),
  4491.         ( "curpart", ctypes.c_short ),
  4492.         ( "partsdone", ctypes.c_short ),
  4493.         ( "convertdone", ctypes.c_short ),
  4494.         ( "starttime", ctypes.c_double ),
  4495.         ( "lastframetime", ctypes.c_double ),
  4496.         ( "infostr", ctypes.c_char_p ),
  4497.         ( "statstr", ctypes.c_char_p ),
  4498.         ( "scenename", ctypes.c_char ),]
  4499.  
  4500. RE_NewRender = _c_external_function(            "RE_NewRender", [
  4501.         ("name", ctypes.c_char_p, 1),],
  4502.         ctypes.c_void_p )
  4503.  
  4504. RE_GetRender = _c_external_function(            "RE_GetRender", [
  4505.         ("name", ctypes.c_char_p, 1),],
  4506.         ctypes.c_void_p )
  4507.  
  4508. RE_RenderInProgress = _c_external_function(             "RE_RenderInProgress", [
  4509.         ("re", ctypes.c_void_p, 1),],
  4510.         ctypes.c_int )
  4511.  
  4512. RE_FreeRender = _c_external_function(           "RE_FreeRender", [
  4513.         ("re", ctypes.c_void_p, 1),],
  4514.         ctypes.c_void_p )
  4515.  
  4516. RE_FreeAllRender = _c_external_function(                "RE_FreeAllRender", [],
  4517.         ctypes.c_void_p )
  4518.  
  4519. RE_FreeRenderResult = _c_external_function(             "RE_FreeRenderResult", [
  4520.         ("rr", ctypes.c_void_p, 1),],
  4521.         ctypes.c_void_p )
  4522.  
  4523. RE_AcquireResultRead = _c_external_function(            "RE_AcquireResultRead", [
  4524.         ("re", ctypes.c_void_p, 1),],
  4525.         ctypes.c_void_p )
  4526.  
  4527. RE_AcquireResultWrite = _c_external_function(           "RE_AcquireResultWrite", [
  4528.         ("re", ctypes.c_void_p, 1),],
  4529.         ctypes.c_void_p )
  4530.  
  4531. RE_ReleaseResult = _c_external_function(                "RE_ReleaseResult", [
  4532.         ("re", ctypes.c_void_p, 1),],
  4533.         ctypes.c_void_p )
  4534.  
  4535. RE_AcquireResultImage = _c_external_function(           "RE_AcquireResultImage", [
  4536.         ("re", ctypes.c_void_p, 1),
  4537.         ("rr", ctypes.c_void_p, 1),],
  4538.         ctypes.c_void_p )
  4539.  
  4540. RE_ReleaseResultImage = _c_external_function(           "RE_ReleaseResultImage", [
  4541.         ("re", ctypes.c_void_p, 1),],
  4542.         ctypes.c_void_p )
  4543.  
  4544. RE_SwapResult = _c_external_function(           "RE_SwapResult", [
  4545.         ("re", ctypes.c_void_p, 1),
  4546.         ("rr", ctypes.c_void_p, 1),],
  4547.         ctypes.c_void_p )
  4548.  
  4549. RE_GetStats = _c_external_function(             "RE_GetStats", [
  4550.         ("re", ctypes.c_void_p, 1),],
  4551.         ctypes.c_void_p )
  4552.  
  4553. RE_ResultGet32 = _c_external_function(          "RE_ResultGet32", [
  4554.         ("re", ctypes.c_void_p, 1),
  4555.         ("rect", ctypes.POINTER( ctypes.c_int ), 1),],
  4556.         ctypes.c_void_p )
  4557.  
  4558. RE_GetRenderLayer = _c_external_function(               "RE_GetRenderLayer", [
  4559.         ("rr", ctypes.c_void_p, 1),
  4560.         ("name", ctypes.c_char_p, 1),],
  4561.         ctypes.c_void_p )
  4562.  
  4563. RE_RenderLayerGetPass = _c_external_function(           "RE_RenderLayerGetPass", [
  4564.         ("rl", ctypes.c_void_p, 1),
  4565.         ("passtype", ctypes.c_int, 1),],
  4566.         ctypes.c_float )
  4567.  
  4568. RE_InitState = _c_external_function(            "RE_InitState", [
  4569.         ("re", ctypes.c_void_p, 1),
  4570.         ("source", ctypes.c_void_p, 1),
  4571.         ("rd", ctypes.c_void_p, 1),
  4572.         ("srl", ctypes.c_void_p, 1),
  4573.         ("winx", ctypes.c_int, 1),
  4574.         ("winy", ctypes.c_int, 1),
  4575.         ("disprect", ctypes.c_void_p, 1),],
  4576.         ctypes.c_void_p )
  4577.  
  4578. RE_SetDispRect = _c_external_function(          "RE_SetDispRect", [
  4579.         ("re", ctypes.c_void_p, 1),
  4580.         ("disprect", ctypes.c_void_p, 1),],
  4581.         ctypes.c_void_p )
  4582.  
  4583. RE_SetCamera = _c_external_function(            "RE_SetCamera", [
  4584.         ("re", ctypes.c_void_p, 1),
  4585.         ("camera", ctypes.c_void_p, 1),],
  4586.         ctypes.c_void_p )
  4587.  
  4588. RE_SetWindow = _c_external_function(            "RE_SetWindow", [
  4589.         ("re", ctypes.c_void_p, 1),
  4590.         ("viewplane", ctypes.c_void_p, 1),
  4591.         ("clipsta", ctypes.c_float, 1),
  4592.         ("clipend", ctypes.c_float, 1),],
  4593.         ctypes.c_void_p )
  4594.  
  4595. RE_SetOrtho = _c_external_function(             "RE_SetOrtho", [
  4596.         ("re", ctypes.c_void_p, 1),
  4597.         ("viewplane", ctypes.c_void_p, 1),
  4598.         ("clipsta", ctypes.c_float, 1),
  4599.         ("clipend", ctypes.c_float, 1),],
  4600.         ctypes.c_void_p )
  4601.  
  4602. RE_SetPixelSize = _c_external_function(         "RE_SetPixelSize", [
  4603.         ("re", ctypes.c_void_p, 1),
  4604.         ("pixsize", ctypes.c_float, 1),],
  4605.         ctypes.c_void_p )
  4606.  
  4607. RE_SetView = _c_external_function(              "RE_SetView", [
  4608.         ("re", ctypes.c_void_p, 1),
  4609.         ("mat", ctypes.c_float, 1),],
  4610.         ctypes.c_void_p )
  4611.  
  4612. RE_Database_FromScene = _c_external_function(           "RE_Database_FromScene", [
  4613.         ("re", ctypes.c_void_p, 1),
  4614.         ("bmain", ctypes.c_void_p, 1),
  4615.         ("scene", ctypes.c_void_p, 1),
  4616.         ("lay", ctypes.c_int, 1),
  4617.         ("use_camera_view", ctypes.c_int, 1),],
  4618.         ctypes.c_void_p )
  4619.  
  4620. RE_Database_Free = _c_external_function(                "RE_Database_Free", [
  4621.         ("re", ctypes.c_void_p, 1),],
  4622.         ctypes.c_void_p )
  4623.  
  4624. RE_DataBase_ApplyWindow = _c_external_function(         "RE_DataBase_ApplyWindow", [
  4625.         ("re", ctypes.c_void_p, 1),],
  4626.         ctypes.c_void_p )
  4627.  
  4628. RE_set_max_threads = _c_external_function(              "RE_set_max_threads", [
  4629.         ("threads", ctypes.c_int, 1),],
  4630.         ctypes.c_void_p )
  4631.  
  4632. RE_init_threadcount = _c_external_function(             "RE_init_threadcount", [
  4633.         ("re", ctypes.c_void_p, 1),],
  4634.         ctypes.c_void_p )
  4635.  
  4636. RE_TileProcessor = _c_external_function(                "RE_TileProcessor", [
  4637.         ("re", ctypes.c_void_p, 1),],
  4638.         ctypes.c_void_p )
  4639.  
  4640. RE_BlenderFrame = _c_external_function(         "RE_BlenderFrame", [
  4641.         ("re", ctypes.c_void_p, 1),
  4642.         ("bmain", ctypes.c_void_p, 1),
  4643.         ("scene", ctypes.c_void_p, 1),
  4644.         ("srl", ctypes.c_void_p, 1),
  4645.         ("lay", ctypes.c_int, 1),
  4646.         ("frame", ctypes.c_int, 1),],
  4647.         ctypes.c_void_p )
  4648.  
  4649. RE_BlenderAnim = _c_external_function(          "RE_BlenderAnim", [
  4650.         ("re", ctypes.c_void_p, 1),
  4651.         ("bmain", ctypes.c_void_p, 1),
  4652.         ("scene", ctypes.c_void_p, 1),
  4653.         ("lay", ctypes.c_int, 1),
  4654.         ("sfra", ctypes.c_int, 1),
  4655.         ("efra", ctypes.c_int, 1),
  4656.         ("tfra", ctypes.c_int, 1),
  4657.         ("reports", ctypes.c_void_p, 1),],
  4658.         ctypes.c_void_p )
  4659.  
  4660. RE_PreviewRender = _c_external_function(                "RE_PreviewRender", [
  4661.         ("re", ctypes.c_void_p, 1),
  4662.         ("bmain", ctypes.c_void_p, 1),
  4663.         ("scene", ctypes.c_void_p, 1),],
  4664.         ctypes.c_void_p )
  4665.  
  4666. RE_ReadRenderResult = _c_external_function(             "RE_ReadRenderResult", [
  4667.         ("scene", ctypes.c_void_p, 1),
  4668.         ("scenode", ctypes.c_void_p, 1),],
  4669.         ctypes.c_void_p )
  4670.  
  4671. RE_WriteRenderResult = _c_external_function(            "RE_WriteRenderResult", [
  4672.         ("rr", ctypes.c_void_p, 1),
  4673.         ("filename", ctypes.c_char_p, 1),
  4674.         ("compress", ctypes.c_int, 1),],
  4675.         ctypes.c_void_p )
  4676.  
  4677. RE_MultilayerConvert = _c_external_function(            "RE_MultilayerConvert", [
  4678.         ("exrhandle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4679.         ("rectx", ctypes.c_int, 1),
  4680.         ("recty", ctypes.c_int, 1),],
  4681.         ctypes.c_void_p )
  4682.  
  4683. RE_MergeFullSample = _c_external_function(              "RE_MergeFullSample", [
  4684.         ("re", ctypes.c_void_p, 1),
  4685.         ("sce", ctypes.c_void_p, 1),
  4686.         ("ntree", ctypes.c_void_p, 1),],
  4687.         ctypes.c_void_p )
  4688.  
  4689. RE_make_stars = _c_external_function(           "RE_make_stars", [
  4690.         ("re", ctypes.c_void_p, 1),
  4691.         ("scenev3d", ctypes.c_void_p, 1),
  4692.         ("initfunc", ctypes.c_void_p, 1),
  4693.         ("vertexfunc", ctypes.c_void_p, 1),
  4694.         ("termfunc", ctypes.c_void_p, 1),],
  4695.         ctypes.c_void_p )
  4696.  
  4697. RE_display_init_cb = _c_external_function(              "RE_display_init_cb", [
  4698.         ("re", ctypes.c_void_p, 1),
  4699.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4700.         ("f", ctypes.c_void_p, 1),],
  4701.         ctypes.c_void_p )
  4702.  
  4703. RE_display_clear_cb = _c_external_function(             "RE_display_clear_cb", [
  4704.         ("re", ctypes.c_void_p, 1),
  4705.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4706.         ("f", ctypes.c_void_p, 1),],
  4707.         ctypes.c_void_p )
  4708.  
  4709. RE_display_draw_cb = _c_external_function(              "RE_display_draw_cb", [
  4710.         ("re", ctypes.c_void_p, 1),
  4711.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4712.         ("f", ctypes.c_void_p, 1),],
  4713.         ctypes.c_void_p )
  4714.  
  4715. RE_stats_draw_cb = _c_external_function(                "RE_stats_draw_cb", [
  4716.         ("re", ctypes.c_void_p, 1),
  4717.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4718.         ("f", ctypes.c_void_p, 1),],
  4719.         ctypes.c_void_p )
  4720.  
  4721. RE_progress_cb = _c_external_function(          "RE_progress_cb", [
  4722.         ("re", ctypes.c_void_p, 1),
  4723.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4724.         ("f", ctypes.c_void_p, 1),],
  4725.         ctypes.c_void_p )
  4726.  
  4727. RE_test_break_cb = _c_external_function(                "RE_test_break_cb", [
  4728.         ("re", ctypes.c_void_p, 1),
  4729.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4730.         ("f", ctypes.c_void_p, 1),],
  4731.         ctypes.c_void_p )
  4732.  
  4733. RE_error_cb = _c_external_function(             "RE_error_cb", [
  4734.         ("re", ctypes.c_void_p, 1),
  4735.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4736.         ("f", ctypes.c_void_p, 1),],
  4737.         ctypes.c_void_p )
  4738.  
  4739. RE_filter_value = _c_external_function(         "RE_filter_value", [
  4740.         ("type", ctypes.c_int, 1),
  4741.         ("x", ctypes.c_float, 1),],
  4742.         ctypes.c_float )
  4743.  
  4744. RE_zbuf_accumulate_vecblur = _c_external_function(              "RE_zbuf_accumulate_vecblur", [
  4745.         ("nbd", ctypes.c_void_p, 1),
  4746.         ("xsize", ctypes.c_int, 1),
  4747.         ("ysize", ctypes.c_int, 1),
  4748.         ("newrect", ctypes.POINTER( ctypes.c_float ), 1),
  4749.         ("imgrect", ctypes.POINTER( ctypes.c_float ), 1),
  4750.         ("vecbufrect", ctypes.POINTER( ctypes.c_float ), 1),
  4751.         ("zbufrect", ctypes.POINTER( ctypes.c_float ), 1),],
  4752.         ctypes.c_void_p )
  4753.  
  4754. RE_Database_Baking = _c_external_function(              "RE_Database_Baking", [
  4755.         ("re", ctypes.c_void_p, 1),
  4756.         ("bmain", ctypes.c_void_p, 1),
  4757.         ("scene", ctypes.c_void_p, 1),
  4758.         ("lay", ctypes.c_int, 1),
  4759.         ("type", ctypes.c_int, 1),
  4760.         ("actob", ctypes.c_void_p, 1),],
  4761.         ctypes.c_void_p )
  4762.  
  4763. RE_DataBase_GetView = _c_external_function(             "RE_DataBase_GetView", [
  4764.         ("re", ctypes.c_void_p, 1),
  4765.         ("mat", ctypes.c_float, 1),],
  4766.         ctypes.c_void_p )
  4767.  
  4768. RE_GetCameraWindow = _c_external_function(              "RE_GetCameraWindow", [
  4769.         ("re", ctypes.c_void_p, 1),
  4770.         ("camera", ctypes.c_void_p, 1),
  4771.         ("frame", ctypes.c_int, 1),
  4772.         ("mat", ctypes.c_float, 1),],
  4773.         ctypes.c_void_p )
  4774.  
  4775. RE_GetScene = _c_external_function(             "RE_GetScene", [
  4776.         ("re", ctypes.c_void_p, 1),],
  4777.         ctypes.c_void_p )
  4778.  
  4779. #R_engines                                                      <TypeDecl=ListBase>
  4780. class RenderEngineType(ctypes.Structure): _fields_=[
  4781.         ( "next", ctypes.c_void_p ),
  4782.         ( "prev", ctypes.c_void_p ),
  4783.         ( "idname", ctypes.c_char ),
  4784.         ( "name", ctypes.c_char ),
  4785.         ( "flag", ctypes.c_int ),
  4786.         ( "render", ctypes.c_void_p ),
  4787.         ( "ext", ctypes.c_void_p ),]
  4788.  
  4789. class RenderEngine(ctypes.Structure): _fields_=[
  4790.         ( "type", ctypes.c_void_p ),
  4791.         ( "re", ctypes.c_void_p ),
  4792.         ( "fullresult", ctypes.c_void_p ),]
  4793.  
  4794. RE_layer_load_from_file = _c_external_function(         "RE_layer_load_from_file", [
  4795.         ("layer", ctypes.c_void_p, 1),
  4796.         ("reports", ctypes.c_void_p, 1),
  4797.         ("filename", ctypes.c_char_p, 1),],
  4798.         ctypes.c_void_p )
  4799.  
  4800. RE_result_load_from_file = _c_external_function(                "RE_result_load_from_file", [
  4801.         ("result", ctypes.c_void_p, 1),
  4802.         ("reports", ctypes.c_void_p, 1),
  4803.         ("filename", ctypes.c_char_p, 1),],
  4804.         ctypes.c_void_p )
  4805.  
  4806. RE_engine_begin_result = _c_external_function(          "RE_engine_begin_result", [
  4807.         ("engine", ctypes.c_void_p, 1),
  4808.         ("x", ctypes.c_int, 1),
  4809.         ("y", ctypes.c_int, 1),
  4810.         ("w", ctypes.c_int, 1),
  4811.         ("h", ctypes.c_int, 1),],
  4812.         ctypes.c_void_p )
  4813.  
  4814. RE_engine_update_result = _c_external_function(         "RE_engine_update_result", [
  4815.         ("engine", ctypes.c_void_p, 1),
  4816.         ("result", ctypes.c_void_p, 1),],
  4817.         ctypes.c_void_p )
  4818.  
  4819. RE_engine_end_result = _c_external_function(            "RE_engine_end_result", [
  4820.         ("engine", ctypes.c_void_p, 1),
  4821.         ("result", ctypes.c_void_p, 1),],
  4822.         ctypes.c_void_p )
  4823.  
  4824. RE_engine_test_break = _c_external_function(            "RE_engine_test_break", [
  4825.         ("engine", ctypes.c_void_p, 1),],
  4826.         ctypes.c_int )
  4827.  
  4828. RE_engine_update_stats = _c_external_function(          "RE_engine_update_stats", [
  4829.         ("engine", ctypes.c_void_p, 1),
  4830.         ("stats", ctypes.c_char_p, 1),
  4831.         ("info", ctypes.c_char_p, 1),],
  4832.         ctypes.c_void_p )
  4833.  
  4834. RE_engines_init = _c_external_function(         "RE_engines_init", [],
  4835.         ctypes.c_void_p )
  4836.  
  4837. RE_engines_exit = _c_external_function(         "RE_engines_exit", [],
  4838.         ctypes.c_void_p )
  4839.  
  4840. #datatoc_startup_blend_size                                                     <TypeDecl=int>
  4841. #datatoc_startup_blend                                                  <TypeDecl=char>
  4842. #datatoc_blenderbuttons_size                                                    <TypeDecl=int>
  4843. #datatoc_blenderbuttons                                                 <TypeDecl=char>
  4844. #datatoc_prvicons_size                                                  <TypeDecl=int>
  4845. #datatoc_prvicons                                                       <TypeDecl=char>
  4846. #datatoc_splash_png_size                                                        <TypeDecl=int>
  4847. #datatoc_splash_png                                                     <TypeDecl=char>
  4848. #datatoc_Bfont_size                                                     <TypeDecl=int>
  4849. #datatoc_Bfont                                                  <TypeDecl=char>
  4850. #datatoc_bfont_ttf_size                                                 <TypeDecl=int>
  4851. #datatoc_bfont_ttf                                                      <TypeDecl=char>
  4852. #datatoc_bmonofont_ttf_size                                                     <TypeDecl=int>
  4853. #datatoc_bmonofont_ttf                                                  <TypeDecl=char>
  4854. #datatoc_add_png_size                                                   <TypeDecl=int>
  4855. #datatoc_add_png                                                        <TypeDecl=char>
  4856. #datatoc_blob_png_size                                                  <TypeDecl=int>
  4857. #datatoc_blob_png                                                       <TypeDecl=char>
  4858. #datatoc_blur_png_size                                                  <TypeDecl=int>
  4859. #datatoc_blur_png                                                       <TypeDecl=char>
  4860. #datatoc_clay_png_size                                                  <TypeDecl=int>
  4861. #datatoc_clay_png                                                       <TypeDecl=char>
  4862. #datatoc_clone_png_size                                                 <TypeDecl=int>
  4863. #datatoc_clone_png                                                      <TypeDecl=char>
  4864. #datatoc_crease_png_size                                                        <TypeDecl=int>
  4865. #datatoc_crease_png                                                     <TypeDecl=char>
  4866. #datatoc_darken_png_size                                                        <TypeDecl=int>
  4867. #datatoc_darken_png                                                     <TypeDecl=char>
  4868. #datatoc_draw_png_size                                                  <TypeDecl=int>
  4869. #datatoc_draw_png                                                       <TypeDecl=char>
  4870. #datatoc_fill_png_size                                                  <TypeDecl=int>
  4871. #datatoc_fill_png                                                       <TypeDecl=char>
  4872. #datatoc_flatten_png_size                                                       <TypeDecl=int>
  4873. #datatoc_flatten_png                                                    <TypeDecl=char>
  4874. #datatoc_grab_png_size                                                  <TypeDecl=int>
  4875. #datatoc_grab_png                                                       <TypeDecl=char>
  4876. #datatoc_inflate_png_size                                                       <TypeDecl=int>
  4877. #datatoc_inflate_png                                                    <TypeDecl=char>
  4878. #datatoc_layer_png_size                                                 <TypeDecl=int>
  4879. #datatoc_layer_png                                                      <TypeDecl=char>
  4880. #datatoc_lighten_png_size                                                       <TypeDecl=int>
  4881. #datatoc_lighten_png                                                    <TypeDecl=char>
  4882. #datatoc_mix_png_size                                                   <TypeDecl=int>
  4883. #datatoc_mix_png                                                        <TypeDecl=char>
  4884. #datatoc_multiply_png_size                                                      <TypeDecl=int>
  4885. #datatoc_multiply_png                                                   <TypeDecl=char>
  4886. #datatoc_nudge_png_size                                                 <TypeDecl=int>
  4887. #datatoc_nudge_png                                                      <TypeDecl=char>
  4888. #datatoc_pinch_png_size                                                 <TypeDecl=int>
  4889. #datatoc_pinch_png                                                      <TypeDecl=char>
  4890. #datatoc_scrape_png_size                                                        <TypeDecl=int>
  4891. #datatoc_scrape_png                                                     <TypeDecl=char>
  4892. #datatoc_smear_png_size                                                 <TypeDecl=int>
  4893. #datatoc_smear_png                                                      <TypeDecl=char>
  4894. #datatoc_smooth_png_size                                                        <TypeDecl=int>
  4895. #datatoc_smooth_png                                                     <TypeDecl=char>
  4896. #datatoc_snake_hook_png_size                                                    <TypeDecl=int>
  4897. #datatoc_snake_hook_png                                                 <TypeDecl=char>
  4898. #datatoc_soften_png_size                                                        <TypeDecl=int>
  4899. #datatoc_soften_png                                                     <TypeDecl=char>
  4900. #datatoc_subtract_png_size                                                      <TypeDecl=int>
  4901. #datatoc_subtract_png                                                   <TypeDecl=char>
  4902. #datatoc_texdraw_png_size                                                       <TypeDecl=int>
  4903. #datatoc_texdraw_png                                                    <TypeDecl=char>
  4904. #datatoc_thumb_png_size                                                 <TypeDecl=int>
  4905. #datatoc_thumb_png                                                      <TypeDecl=char>
  4906. #datatoc_twist_png_size                                                 <TypeDecl=int>
  4907. #datatoc_twist_png                                                      <TypeDecl=char>
  4908. #datatoc_vertexdraw_png_size                                                    <TypeDecl=int>
  4909. #datatoc_vertexdraw_png                                                 <TypeDecl=char>
  4910. #class bContext(ctypes.Structure): pass         # typedef or forward reference #
  4911. #class IDProperty(ctypes.Structure): pass               # typedef or forward reference #
  4912. #class wmEvent(ctypes.Structure): pass          # typedef or forward reference #
  4913. #class wmEventHandler(ctypes.Structure): pass           # typedef or forward reference #
  4914. #class wmGesture(ctypes.Structure): pass                # typedef or forward reference #
  4915. #class wmJob(ctypes.Structure): pass            # typedef or forward reference #
  4916. #class wmNotifier(ctypes.Structure): pass               # typedef or forward reference #
  4917. #class wmOperatorType(ctypes.Structure): pass           # typedef or forward reference #
  4918. #class wmOperator(ctypes.Structure): pass               # typedef or forward reference #
  4919. #class rcti(ctypes.Structure): pass             # typedef or forward reference #
  4920. #class PointerRNA(ctypes.Structure): pass               # typedef or forward reference #
  4921. #class EnumPropertyItem(ctypes.Structure): pass         # typedef or forward reference #
  4922. #class MenuType(ctypes.Structure): pass         # typedef or forward reference #
  4923. #class wmDropBox(ctypes.Structure): pass                # typedef or forward reference #
  4924. #class wmDrag(ctypes.Structure): pass           # typedef or forward reference #
  4925. #class ImBuf(ctypes.Structure): pass            # typedef or forward reference #
  4926. #class wmJob(ctypes.Structure): pass            # typedef or forward reference #
  4927. WM_setprefsize = _c_external_function(          "WM_setprefsize", [
  4928.         ("stax", ctypes.c_int, 1),
  4929.         ("stay", ctypes.c_int, 1),
  4930.         ("sizx", ctypes.c_int, 1),
  4931.         ("sizy", ctypes.c_int, 1),],
  4932.         ctypes.c_void_p )
  4933.  
  4934. WM_setinitialstate_fullscreen = _c_external_function(           "WM_setinitialstate_fullscreen", [],
  4935.         ctypes.c_void_p )
  4936.  
  4937. WM_setinitialstate_normal = _c_external_function(               "WM_setinitialstate_normal", [],
  4938.         ctypes.c_void_p )
  4939.  
  4940. WM_init = _c_external_function(         "WM_init", [
  4941.         ("C", ctypes.c_void_p, 1),
  4942.         ("argc", ctypes.c_int, 1),
  4943.         ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),],
  4944.         ctypes.c_void_p )
  4945.  
  4946. WM_exit = _c_external_function(         "WM_exit", [
  4947.         ("C", ctypes.c_void_p, 1),],
  4948.         ctypes.c_void_p )
  4949.  
  4950. WM_main = _c_external_function(         "WM_main", [
  4951.         ("C", ctypes.c_void_p, 1),],
  4952.         ctypes.c_void_p )
  4953.  
  4954. WM_init_game = _c_external_function(            "WM_init_game", [
  4955.         ("C", ctypes.c_void_p, 1),],
  4956.         ctypes.c_int )
  4957.  
  4958. WM_init_splash = _c_external_function(          "WM_init_splash", [
  4959.         ("C", ctypes.c_void_p, 1),],
  4960.         ctypes.c_void_p )
  4961.  
  4962. WM_check = _c_external_function(                "WM_check", [
  4963.         ("C", ctypes.c_void_p, 1),],
  4964.         ctypes.c_void_p )
  4965.  
  4966. WM_window_open = _c_external_function(          "WM_window_open", [
  4967.         ("C", ctypes.c_void_p, 1),
  4968.         ("rect", ctypes.c_void_p, 1),],
  4969.         ctypes.c_void_p )
  4970.  
  4971. WM_window_open_temp = _c_external_function(             "WM_window_open_temp", [
  4972.         ("C", ctypes.c_void_p, 1),
  4973.         ("position", ctypes.c_void_p, 1),
  4974.         ("type", ctypes.c_int, 1),],
  4975.         ctypes.c_void_p )
  4976.  
  4977. WM_read_homefile = _c_external_function(                "WM_read_homefile", [
  4978.         ("C", ctypes.c_void_p, 1),
  4979.         ("op", ctypes.c_void_p, 1),],
  4980.         ctypes.c_int )
  4981.  
  4982. WM_write_homefile = _c_external_function(               "WM_write_homefile", [
  4983.         ("C", ctypes.c_void_p, 1),
  4984.         ("op", ctypes.c_void_p, 1),],
  4985.         ctypes.c_int )
  4986.  
  4987. WM_read_file = _c_external_function(            "WM_read_file", [
  4988.         ("C", ctypes.c_void_p, 1),
  4989.         ("name", ctypes.c_char_p, 1),
  4990.         ("reports", ctypes.c_void_p, 1),],
  4991.         ctypes.c_void_p )
  4992.  
  4993. WM_write_file = _c_external_function(           "WM_write_file", [
  4994.         ("C", ctypes.c_void_p, 1),
  4995.         ("target", ctypes.c_char_p, 1),
  4996.         ("fileflags", ctypes.c_int, 1),
  4997.         ("reports", ctypes.c_void_p, 1),
  4998.         ("copy", ctypes.c_int, 1),],
  4999.         ctypes.c_int )
  5000.  
  5001. WM_read_autosavefile = _c_external_function(            "WM_read_autosavefile", [
  5002.         ("C", ctypes.c_void_p, 1),],
  5003.         ctypes.c_void_p )
  5004.  
  5005. WM_autosave_init = _c_external_function(                "WM_autosave_init", [
  5006.         ("wm", ctypes.c_void_p, 1),],
  5007.         ctypes.c_void_p )
  5008.  
  5009. WM_cursor_set = _c_external_function(           "WM_cursor_set", [
  5010.         ("win", ctypes.c_void_p, 1),
  5011.         ("curs", ctypes.c_int, 1),],
  5012.         ctypes.c_void_p )
  5013.  
  5014. WM_cursor_modal = _c_external_function(         "WM_cursor_modal", [
  5015.         ("win", ctypes.c_void_p, 1),
  5016.         ("curs", ctypes.c_int, 1),],
  5017.         ctypes.c_void_p )
  5018.  
  5019. WM_cursor_restore = _c_external_function(               "WM_cursor_restore", [
  5020.         ("win", ctypes.c_void_p, 1),],
  5021.         ctypes.c_void_p )
  5022.  
  5023. WM_cursor_wait = _c_external_function(          "WM_cursor_wait", [
  5024.         ("val", ctypes.c_int, 1),],
  5025.         ctypes.c_void_p )
  5026.  
  5027. WM_cursor_grab = _c_external_function(          "WM_cursor_grab", [
  5028.         ("win", ctypes.c_void_p, 1),
  5029.         ("wrap", ctypes.c_int, 1),
  5030.         ("hide", ctypes.c_int, 1),
  5031.         ("bounds", ctypes.POINTER( ctypes.c_int ), 1),],
  5032.         ctypes.c_void_p )
  5033.  
  5034. WM_cursor_ungrab = _c_external_function(                "WM_cursor_ungrab", [
  5035.         ("win", ctypes.c_void_p, 1),],
  5036.         ctypes.c_void_p )
  5037.  
  5038. WM_timecursor = _c_external_function(           "WM_timecursor", [
  5039.         ("win", ctypes.c_void_p, 1),
  5040.         ("nr", ctypes.c_int, 1),],
  5041.         ctypes.c_void_p )
  5042.  
  5043. WM_paint_cursor_activate = _c_external_function(                "WM_paint_cursor_activate", [
  5044.         ("wm", ctypes.c_void_p, 1),
  5045.         ("poll", ctypes.c_void_p, 1),
  5046.         ("draw", ctypes.c_void_p, 1),
  5047.         ("customdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5048.         ctypes.c_void_p )
  5049.  
  5050. WM_paint_cursor_end = _c_external_function(             "WM_paint_cursor_end", [
  5051.         ("wm", ctypes.c_void_p, 1),
  5052.         ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5053.         ctypes.c_void_p )
  5054.  
  5055. WM_cursor_warp = _c_external_function(          "WM_cursor_warp", [
  5056.         ("win", ctypes.c_void_p, 1),
  5057.         ("x", ctypes.c_int, 1),
  5058.         ("y", ctypes.c_int, 1),],
  5059.         ctypes.c_void_p )
  5060.  
  5061. WM_keyconfig_new = _c_external_function(                "WM_keyconfig_new", [
  5062.         ("wm", ctypes.c_void_p, 1),
  5063.         ("idname", ctypes.c_char_p, 1),],
  5064.         ctypes.c_void_p )
  5065.  
  5066. WM_keyconfig_new_user = _c_external_function(           "WM_keyconfig_new_user", [
  5067.         ("wm", ctypes.c_void_p, 1),
  5068.         ("idname", ctypes.c_char_p, 1),],
  5069.         ctypes.c_void_p )
  5070.  
  5071. WM_keyconfig_remove = _c_external_function(             "WM_keyconfig_remove", [
  5072.         ("wm", ctypes.c_void_p, 1),
  5073.         ("keyconf", ctypes.c_void_p, 1),],
  5074.         ctypes.c_void_p )
  5075.  
  5076. WM_keyconfig_free = _c_external_function(               "WM_keyconfig_free", [
  5077.         ("keyconf", ctypes.c_void_p, 1),],
  5078.         ctypes.c_void_p )
  5079.  
  5080. WM_keyconfig_userdef = _c_external_function(            "WM_keyconfig_userdef", [
  5081.         ("wm", ctypes.c_void_p, 1),],
  5082.         ctypes.c_void_p )
  5083.  
  5084. WM_keymap_init = _c_external_function(          "WM_keymap_init", [
  5085.         ("C", ctypes.c_void_p, 1),],
  5086.         ctypes.c_void_p )
  5087.  
  5088. WM_keymap_free = _c_external_function(          "WM_keymap_free", [
  5089.         ("keymap", ctypes.c_void_p, 1),],
  5090.         ctypes.c_void_p )
  5091.  
  5092. WM_keymap_verify_item = _c_external_function(           "WM_keymap_verify_item", [
  5093.         ("keymap", ctypes.c_void_p, 1),
  5094.         ("idname", ctypes.c_char_p, 1),
  5095.         ("type", ctypes.c_int, 1),
  5096.         ("val", ctypes.c_int, 1),
  5097.         ("modifier", ctypes.c_int, 1),
  5098.         ("keymodifier", ctypes.c_int, 1),],
  5099.         ctypes.c_void_p )
  5100.  
  5101. WM_keymap_add_item = _c_external_function(              "WM_keymap_add_item", [
  5102.         ("keymap", ctypes.c_void_p, 1),
  5103.         ("idname", ctypes.c_char_p, 1),
  5104.         ("type", ctypes.c_int, 1),
  5105.         ("val", ctypes.c_int, 1),
  5106.         ("modifier", ctypes.c_int, 1),
  5107.         ("keymodifier", ctypes.c_int, 1),],
  5108.         ctypes.c_void_p )
  5109.  
  5110. WM_keymap_add_menu = _c_external_function(              "WM_keymap_add_menu", [
  5111.         ("keymap", ctypes.c_void_p, 1),
  5112.         ("idname", ctypes.c_char_p, 1),
  5113.         ("type", ctypes.c_int, 1),
  5114.         ("val", ctypes.c_int, 1),
  5115.         ("modifier", ctypes.c_int, 1),
  5116.         ("keymodifier", ctypes.c_int, 1),],
  5117.         ctypes.c_void_p )
  5118.  
  5119. WM_keymap_remove_item = _c_external_function(           "WM_keymap_remove_item", [
  5120.         ("keymap", ctypes.c_void_p, 1),
  5121.         ("kmi", ctypes.c_void_p, 1),],
  5122.         ctypes.c_void_p )
  5123.  
  5124. WM_keymap_item_to_string = _c_external_function(                "WM_keymap_item_to_string", [
  5125.         ("kmi", ctypes.c_void_p, 1),
  5126.         ("str", ctypes.c_char_p, 1),
  5127.         ("len", ctypes.c_int, 1),],
  5128.         ctypes.c_char )
  5129.  
  5130. WM_keymap_list_find = _c_external_function(             "WM_keymap_list_find", [
  5131.         ("lb", ctypes.c_void_p, 1),
  5132.         ("idname", ctypes.c_char_p, 1),
  5133.         ("spaceid", ctypes.c_int, 1),
  5134.         ("regionid", ctypes.c_int, 1),],
  5135.         ctypes.c_void_p )
  5136.  
  5137. WM_keymap_find = _c_external_function(          "WM_keymap_find", [
  5138.         ("keyconf", ctypes.c_void_p, 1),
  5139.         ("idname", ctypes.c_char_p, 1),
  5140.         ("spaceid", ctypes.c_int, 1),
  5141.         ("regionid", ctypes.c_int, 1),],
  5142.         ctypes.c_void_p )
  5143.  
  5144. WM_keymap_find_all = _c_external_function(              "WM_keymap_find_all", [
  5145.         ("C", ctypes.c_void_p, 1),
  5146.         ("idname", ctypes.c_char_p, 1),
  5147.         ("spaceid", ctypes.c_int, 1),
  5148.         ("regionid", ctypes.c_int, 1),],
  5149.         ctypes.c_void_p )
  5150.  
  5151. WM_keymap_active = _c_external_function(                "WM_keymap_active", [
  5152.         ("wm", ctypes.c_void_p, 1),
  5153.         ("keymap", ctypes.c_void_p, 1),],
  5154.         ctypes.c_void_p )
  5155.  
  5156. WM_keymap_guess_opname = _c_external_function(          "WM_keymap_guess_opname", [
  5157.         ("C", ctypes.c_void_p, 1),
  5158.         ("opname", ctypes.c_char_p, 1),],
  5159.         ctypes.c_void_p )
  5160.  
  5161. WM_keymap_user_init = _c_external_function(             "WM_keymap_user_init", [
  5162.         ("wm", ctypes.c_void_p, 1),
  5163.         ("keymap", ctypes.c_void_p, 1),],
  5164.         ctypes.c_int )
  5165.  
  5166. WM_keymap_copy_to_user = _c_external_function(          "WM_keymap_copy_to_user", [
  5167.         ("keymap", ctypes.c_void_p, 1),],
  5168.         ctypes.c_void_p )
  5169.  
  5170. WM_keymap_restore_to_default = _c_external_function(            "WM_keymap_restore_to_default", [
  5171.         ("keymap", ctypes.c_void_p, 1),],
  5172.         ctypes.c_void_p )
  5173.  
  5174. WM_keymap_properties_reset = _c_external_function(              "WM_keymap_properties_reset", [
  5175.         ("kmi", ctypes.c_void_p, 1),],
  5176.         ctypes.c_void_p )
  5177.  
  5178. WM_keymap_restore_item_to_default = _c_external_function(               "WM_keymap_restore_item_to_default", [
  5179.         ("C", ctypes.c_void_p, 1),
  5180.         ("keymap", ctypes.c_void_p, 1),
  5181.         ("kmi", ctypes.c_void_p, 1),],
  5182.         ctypes.c_void_p )
  5183.  
  5184. WM_keymap_item_find_id = _c_external_function(          "WM_keymap_item_find_id", [
  5185.         ("keymap", ctypes.c_void_p, 1),
  5186.         ("id", ctypes.c_int, 1),],
  5187.         ctypes.c_void_p )
  5188.  
  5189. WM_keymap_item_compare = _c_external_function(          "WM_keymap_item_compare", [
  5190.         ("k1", ctypes.c_void_p, 1),
  5191.         ("k2", ctypes.c_void_p, 1),],
  5192.         ctypes.c_int )
  5193.  
  5194. WM_userdef_event_map = _c_external_function(            "WM_userdef_event_map", [
  5195.         ("kmitype", ctypes.c_int, 1),],
  5196.         ctypes.c_int )
  5197.  
  5198. WM_modalkeymap_add = _c_external_function(              "WM_modalkeymap_add", [
  5199.         ("keyconf", ctypes.c_void_p, 1),
  5200.         ("idname", ctypes.c_char_p, 1),
  5201.         ("items", ctypes.c_void_p, 1),],
  5202.         ctypes.c_void_p )
  5203.  
  5204. WM_modalkeymap_get = _c_external_function(              "WM_modalkeymap_get", [
  5205.         ("keyconf", ctypes.c_void_p, 1),
  5206.         ("idname", ctypes.c_char_p, 1),],
  5207.         ctypes.c_void_p )
  5208.  
  5209. WM_modalkeymap_add_item = _c_external_function(         "WM_modalkeymap_add_item", [
  5210.         ("km", ctypes.c_void_p, 1),
  5211.         ("type", ctypes.c_int, 1),
  5212.         ("val", ctypes.c_int, 1),
  5213.         ("modifier", ctypes.c_int, 1),
  5214.         ("keymodifier", ctypes.c_int, 1),
  5215.         ("value", ctypes.c_int,