示例#1
0
def setDevice(d):
    global device

    if device == None:
        device = d
        pgeif.use_buffer()
    else:
        printf("cannot change device once pge has started\n")
示例#2
0
def setDevice (d):
    global device

    if device == None:
        device = d
        if device == pyg_d:
            pygame.init ()
        pgeif.use_buffer ()
    else:
        printf ("cannot change device once pge has started\n")
示例#3
0
def setDefaultDevice ():
    global device

    if device == None:
        device = pyg_d
        pgeif.use_buffer ()
示例#4
0
def setDefaultDevice():
    global device

    if device == None:
        device = pyg_d
        pgeif.use_buffer()