Pyrogenesis
trunk
|
Functions | |
def | log (severity, message) |
def | _convert_dae (func, filename, expected_status=0) |
def | convert_dae_to_pmd (args, kwargs) |
def | convert_dae_to_psa (args, kwargs) |
def | clean_dir (path) |
def | create_actor (mesh, texture, anims, props_) |
def | create_actor_static (mesh, texture) |
Variables | |
string | binaries = '../../../binaries' |
dictionary | dll_filename |
library = cdll.LoadLibrary('%s/system/%s' % (binaries, dll_filename)) | |
clog = CFUNCTYPE(None, c_int, c_char_p)(log) | |
skeleton_definitions = open('%s/data/tools/collada/skeletons.xml' % binaries).read() | |
expected_status | |
string | test_data = binaries+'/data/tests/collada' |
string | test_mod = binaries+'/data/mods/_test.collada' |
string | input_filename = '%s/%s.dae' |
string | output_filename = '%s/art/meshes/%s.pmd' |
input = open(input_filename).read() | |
output = convert_dae_to_pmd(input) | |
xml = create_actor(test_file, 'male', [('Idle','dudeidle'),('Corpse','dudecorpse'),('attack1',test_file),('attack2','jav2d')], [('helmet','teapot_basic_static')]) | |
|
private |
def tests.clean_dir | ( | path | ) |
def tests.convert_dae_to_pmd | ( | args, | |
kwargs | |||
) |
def tests.convert_dae_to_psa | ( | args, | |
kwargs | |||
) |
def tests.create_actor | ( | mesh, | |
texture, | |||
anims, | |||
props_ | |||
) |
def tests.create_actor_static | ( | mesh, | |
texture | |||
) |
def tests.log | ( | severity, | |
message | |||
) |
string tests.binaries = '../../../binaries' |
dictionary tests.dll_filename |
tests.expected_status |
tests.input = open(input_filename).read() |
string tests.input_filename = '%s/%s.dae' |
tests.library = cdll.LoadLibrary('%s/system/%s' % (binaries, dll_filename)) |
tests.output = convert_dae_to_pmd(input) |
string tests.output_filename = '%s/art/meshes/%s.pmd' |
string tests.test_data = binaries+'/data/tests/collada' |
string tests.test_mod = binaries+'/data/mods/_test.collada' |
tests.xml = create_actor(test_file, 'male', [('Idle','dudeidle'),('Corpse','dudecorpse'),('attack1',test_file),('attack2','jav2d')], [('helmet','teapot_basic_static')]) |