Exemplo n.º 1
0
def loadMotion(name, motion):
	global _motionLookup
	print "loading motion", name
	if type(motion) != type(""):
		print "loading motion to lookup", name
		_motionLookup[name] = motion
	#print "proxy core", Core.getCore()
	Core.getCore().loadMotion(name, motion)
Exemplo n.º 2
0
def loadMotion(name, motion):
    global _motionLookup
    print "loading motion", name
    if type(motion) != type(""):
        print "loading motion to lookup", name
        _motionLookup[name] = motion
    #print "proxy core", Core.getCore()
    Core.getCore().loadMotion(name, motion)
Exemplo n.º 3
0
def getMotion(name):
	global _motionLookup
	#print _motionLookup.keys()
	print "getting motion", name
	#print "getMotion"
	if _motionLookup.has_key(name):
		print "core proxy: found motion,", name
		return _motionLookup[name]
	else:
		motion = Core.getCore().getMotion(name)
		if motion != None:
			motion.Reference()
			motion.thisown = False
		return getRealMotionType(motion)
Exemplo n.º 4
0
def getMotion(name):
    global _motionLookup
    #print _motionLookup.keys()
    print "getting motion", name
    #print "getMotion"
    if _motionLookup.has_key(name):
        print "core proxy: found motion,", name
        return _motionLookup[name]
    else:
        motion = Core.getCore().getMotion(name)
        if motion != None:
            motion.Reference()
            motion.thisown = False
        return getRealMotionType(motion)
Exemplo n.º 5
0
def clear():
	_motionLookup = {}
	_events = {}
	PiavcaWXApp.getWXApp().clear()
	Core.getCore().reset()
Exemplo n.º 6
0
def getTime():
	return Core.getCore().getTime()
Exemplo n.º 7
0
void main()
{	
	if (textureAvailable)
	{
		vec3 texColor = vec3(texture2D(tex, TexCoord.st));
		gl_FragColor = Color*vec4(texColor, 1.0);
	}
	else
	{
		gl_FragColor = Color;
	}
}

"""

Core.getCore().setVertexShaderText(vertexShaderText)
Core.getCore().setFragmentShaderText(fragmentShaderText)

def getTime():
	return Core.getCore().getTime()

_motionLookup = {}

def loadMotion(name, motion):
	global _motionLookup
	print "loading motion", name
	if type(motion) != type(""):
		print "loading motion to lookup", name
		_motionLookup[name] = motion
	#print "proxy core", Core.getCore()
	Core.getCore().loadMotion(name, motion)
Exemplo n.º 8
0
def clear():
    _motionLookup = {}
    _events = {}
    PiavcaWXApp.getWXApp().clear()
    Core.getCore().reset()
Exemplo n.º 9
0
def getTime():
    return Core.getCore().getTime()
Exemplo n.º 10
0
void main()
{	
	if (textureAvailable)
	{
		vec3 texColor = vec3(texture2D(tex, TexCoord.st));
		gl_FragColor = Color*vec4(texColor, 1.0);
	}
	else
	{
		gl_FragColor = Color;
	}
}

"""

Core.getCore().setVertexShaderText(vertexShaderText)
Core.getCore().setFragmentShaderText(fragmentShaderText)


def getTime():
    return Core.getCore().getTime()


_motionLookup = {}


def loadMotion(name, motion):
    global _motionLookup
    print "loading motion", name
    if type(motion) != type(""):
        print "loading motion to lookup", name