Exemple #1
0
def LoadCommonMaterial(materialName, filePath, tm=0.0):
    NBGM_SCRIPT_CONTEX.addTask(
        'LoadCommonMaterial',
        (materialName.encode('utf-8'), filePath.encode('utf-8')), tm)
Exemple #2
0
def SetAvatarMode(mode, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetAvatarMode', [mode], tm)
Exemple #3
0
def SetBackground(background, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetBackground', [background], tm)
Exemple #4
0
def SetViewSize(x, y, width, height, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetViewPointDistance', (x, y, width, height), tm)
Exemple #5
0
def SetAvatarScale(scaleValue, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetAvatarScale', [scaleValue], tm)
Exemple #6
0
def Move(dx, dy, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('Move', (dx, dy), tm)
Exemple #7
0
def SetHorizonDistance(horizonDistance, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetHorizonDistance', [horizonDistance], tm)
Exemple #8
0
def SetCurrentCommonMaterial(materialName, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetCurrentCommonMaterial', [materialName], tm)
Exemple #9
0
def LoadNBMTile(nbmName, baseDrawOrder, labelDrawOrder, filePath, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('LoadNBMTile', (nbmName, baseDrawOrder, labelDrawOrder, filePath), tm)
    NBGM_SCRIPT_CONTEX.loaded_tiles.add(nbmName)
Exemple #10
0
def RenderFrame(tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('RenderFrame', [], tm)
Exemple #11
0
def LoadCommonMaterial(materialName, filePath, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('LoadCommonMaterial', (materialName, filePath), tm)
Exemple #12
0
def SetCenter(pt, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetViewCenter', (pt.x, pt.y), tm)
Exemple #13
0
def SnapScreenShot(file, info,  tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SnapScreenShot', [file, info], tm)
Exemple #14
0
def SetCurrentCommonMaterial(materialName, tm=0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetCurrentCommonMaterial',
                               [materialName.encode('utf-8')], tm)
Exemple #15
0
def OnPaning(screenX, screenY, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('OnPaning', (screenX, screenY), tm)
Exemple #16
0
def UnLoadTile(nbmName, autoerease = True, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('UnLoadTile', [nbmName], tm)
    if autoerease:
        NBGM_SCRIPT_CONTEX.loaded_tiles.remove(nbmName)
Exemple #17
0
def Zoom(deltaH, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('Zoom', [deltaH], tm)
Exemple #18
0
def Tilt(angle, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('Tilt', [angle], tm)
Exemple #19
0
def SetViewCenter(mercatorX, mercatorY, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetViewCenter', (mercatorX, mercatorY), tm)
Exemple #20
0
def SetTiltAngle(angle, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetTiltAngle', [angle], tm)
    NBGM_SCRIPT_CONTEX.tilt_angle = float(angle)
Exemple #21
0
def SetViewPointDistance(distance, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetViewPointDistance', [distance], tm)
    NBGM_SCRIPT_CONTEX.viewpoint_distance = float(distance)
Exemple #22
0
def Rotate(angle, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('Rotate', [angle], tm)
Exemple #23
0
def SetPerspective(fov, aspect, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetPerspective', (fov, aspect), tm)
Exemple #24
0
def SetRotateAngle(angle, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetRotateAngle', [angle], tm)
    NBGM_SCRIPT_CONTEX.rotate_angle = float(angle)
Exemple #25
0
def SetAvatarState(state, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetAvatarState', [state], tm)
Exemple #26
0
def SetRotateCenter(screenX, screenY, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetRotateCenter', (screenX, screenY), tm)
Exemple #27
0
def SelectAndTrackAvatar(x, y, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SelectAndTrackAvatar', (x, y), tm)
Exemple #28
0
def OnTouchEvent(screenX, screenY, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('OnTouchEvent', (screenX, screenY), tm)
Exemple #29
0
def SetSkyDayNight(isDay, tm = 0.0):
    NBGM_SCRIPT_CONTEX.addTask('SetSkyDayNight', [isDay], tm)
Exemple #30
0
def SnapScreenShot(file, info, tm=0.0):
    NBGM_SCRIPT_CONTEX.addTask(
        'SnapScreenShot',
        [file.encode('utf-8'), info.encode('utf-8')], tm)