Beispiel #1
0
def common_setup(driver,*argv):
	# Here we should explicitly load a settings file
	import json
	with open("data/prefs/defaults.json",'r') as defaults:
		for k,v in json.load(defaults).items(): driver.settings()[k] = v
	if os.path.isfile("data/prefs/prefs.json"):
		with open("data/prefs/prefs.json",'r') as prefs:
			for k,v in json.load(prefs).items(): driver.settings()[k] = v
	else:
		with open("data/prefs/prefs.json",'w') as prefs:
			json.dump(driver.settings(), prefs)
	
	LDManager.init()
	print driver.settings()
Beispiel #2
0
def gfx_setup():
		LDManager.parseModel("car.dat")
		
		from scripts.gfx import framebuffer_builder
		framebuffer_builder.exec_test("data/shaders/framebuffer-test.json")