Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 5
0
def clear():
	_motionLookup = {}
	_events = {}
	PiavcaWXApp.getWXApp().clear()
	Core.getCore().reset()
Ejemplo n.º 6
0
def getTime():
	return Core.getCore().getTime()
Ejemplo 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)
Ejemplo n.º 8
0
def clear():
    _motionLookup = {}
    _events = {}
    PiavcaWXApp.getWXApp().clear()
    Core.getCore().reset()
Ejemplo n.º 9
0
def getTime():
    return Core.getCore().getTime()
Ejemplo 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