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