Exemple #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")
Exemple #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")
Exemple #3
0
def setDefaultDevice ():
    global device

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

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