Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
tests Namespace Reference

Functions

def log
 
def _convert_dae
 
def convert_dae_to_pmd
 
def convert_dae_to_psa
 
def clean_dir
 
def create_actor
 
def create_actor_static
 

Variables

string binaries = '../../../binaries'
 
dictionary dll_filename
 
tuple library = cdll.LoadLibrary('%s/system/%s' % (binaries, dll_filename))
 
tuple clog = CFUNCTYPE(None, c_int, c_char_p)
 
tuple skeleton_definitions = open('%s/data/tools/collada/skeletons.xml' % binaries)
 
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'
 
tuple input = open(input_filename)
 
tuple output = convert_dae_to_pmd(input)
 
tuple xml = create_actor(test_file, 'male', [('Idle','dudeidle'),('Corpse','dudecorpse'),('attack1',test_file),('attack2','jav2d')], [('helmet','teapot_basic_static')])
 

Function Documentation

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

Definition at line 30 of file tests.py.

def tests.clean_dir (   path)

Definition at line 46 of file tests.py.

def tests.convert_dae_to_pmd (   args,
  kwargs 
)

Definition at line 40 of file tests.py.

def tests.convert_dae_to_psa (   args,
  kwargs 
)

Definition at line 43 of file tests.py.

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

Definition at line 60 of file tests.py.

def tests.create_actor_static (   mesh,
  texture 
)

Definition at line 78 of file tests.py.

def tests.log (   severity,
  message 
)

Definition at line 21 of file tests.py.

Variable Documentation

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

Definition at line 6 of file tests.py.

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

Definition at line 24 of file tests.py.

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

Definition at line 9 of file tests.py.

tuple tests.input = open(input_filename)

Definition at line 115 of file tests.py.

string tests.input_filename = '%s/%s.dae'

Definition at line 112 of file tests.py.

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

Definition at line 19 of file tests.py.

tuple tests.output = convert_dae_to_pmd(input)

Definition at line 116 of file tests.py.

string tests.output_filename = '%s/art/meshes/%s.pmd'

Definition at line 113 of file tests.py.

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

Definition at line 27 of file tests.py.

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

Definition at line 98 of file tests.py.

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

Definition at line 99 of file tests.py.

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

Definition at line 119 of file tests.py.