Pyrogenesis  trunk
Functions | Variables
tests Namespace Reference

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/tests/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' % (test_data, test_file)
 
string output_filename = '%s/art/meshes/%s.pmd' % (test_mod, test_file)
 
 input = open(input_filename).read()
 
def output = convert_dae_to_pmd(input)
 
def xml = create_actor(test_file, 'male', [('Idle','dudeidle'),('Corpse','dudecorpse'),('attack1',test_file),('attack2','jav2d')], [('helmet','teapot_basic_static')])
 

Function Documentation

◆ _convert_dae()

def tests._convert_dae (   func,
  filename,
  expected_status = 0 
)
private

◆ clean_dir()

def tests.clean_dir (   path)

◆ convert_dae_to_pmd()

def tests.convert_dae_to_pmd (   args,
  kwargs 
)

◆ convert_dae_to_psa()

def tests.convert_dae_to_psa (   args,
  kwargs 
)

◆ create_actor()

def tests.create_actor (   mesh,
  texture,
  anims,
  props_ 
)

◆ create_actor_static()

def tests.create_actor_static (   mesh,
  texture 
)

◆ log()

def tests.log (   severity,
  message 
)

Variable Documentation

◆ binaries

string tests.binaries = '../../../binaries'

◆ clog

tests.clog = CFUNCTYPE(None, c_int, c_char_p)(log)

◆ dll_filename

dictionary tests.dll_filename
Initial value:
1 = {
2  'posix': './libCollada_dbg.so',
3  'nt': 'Collada_dbg.dll',
4 }[os.name]

◆ expected_status

tests.expected_status

◆ input

tests.input = open(input_filename).read()

◆ input_filename

string tests.input_filename = '%s/%s.dae' % (test_data, test_file)

◆ library

tests.library = cdll.LoadLibrary('%s/system/%s' % (binaries, dll_filename))

◆ output

def tests.output = convert_dae_to_pmd(input)

◆ output_filename

string tests.output_filename = '%s/art/meshes/%s.pmd' % (test_mod, test_file)

◆ skeleton_definitions

tests.skeleton_definitions = open('%s/data/tests/collada/skeletons.xml' % binaries).read()

◆ test_data

string tests.test_data = binaries + '/data/tests/collada'

◆ test_mod

string tests.test_mod = binaries + '/data/mods/_test.collada'

◆ xml

def tests.xml = create_actor(test_file, 'male', [('Idle','dudeidle'),('Corpse','dudecorpse'),('attack1',test_file),('attack2','jav2d')], [('helmet','teapot_basic_static')])