Example #1
0
    // Token: 0x060018C0 RID: 6336 RVA: 0x000E1CDC File Offset: 0x000DFEDC
    private void DmTitleOpInit()
    {
        AppMain.NNS_RGBA   nns_RGBA   = new AppMain.NNS_RGBA(1f, 1f, 1f, 1f);
        AppMain.NNS_VECTOR nns_VECTOR = AppMain.GlobalPool <AppMain.NNS_VECTOR> .Alloc();

        nns_VECTOR.Clear();
        AppMain.NNS_VECTOR pos = new AppMain.NNS_VECTOR(0f, 0f, 50f);
        AppMain.g_obj.flag             = 4259848U;
        AppMain.g_obj.ppPre            = null;
        AppMain.g_obj.ppPost           = null;
        AppMain.g_obj.ppCollision      = null;
        AppMain.g_obj.ppObjPre         = null;
        AppMain.g_obj.ppObjPost        = null;
        AppMain.g_obj.ppRegRecAuto     = null;
        AppMain.g_obj.draw_scale.x     = (AppMain.g_obj.draw_scale.y = (AppMain.g_obj.draw_scale.z = 13107));
        AppMain.g_obj.inv_draw_scale.x = (AppMain.g_obj.inv_draw_scale.y = (AppMain.g_obj.inv_draw_scale.z = AppMain.FX_Div(4096, AppMain.g_obj.draw_scale.x)));
        AppMain.g_obj.depth            = 128;
        AppMain.g_obj.ambient_color.r  = 0.8f;
        AppMain.g_obj.ambient_color.g  = 0.8f;
        AppMain.g_obj.ambient_color.b  = 0.8f;
        nns_VECTOR.x = -1f;
        nns_VECTOR.y = -1f;
        nns_VECTOR.z = -1f;
        AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR);
        AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_0, ref nns_RGBA, 1f, nns_VECTOR);
        AppMain.ObjCameraInit(0, pos, 0, 0, 12288);
        AppMain.ObjCamera3dInit(0);
        AppMain.g_obj.glb_camera_id   = 0;
        AppMain.g_obj.glb_camera_type = 0;
        AppMain.OBS_CAMERA obs_CAMERA = AppMain.ObjCameraGet(0);
        obs_CAMERA.user_func     = new AppMain.OBJF_CAMERA_USER_FUNC(this.dmTitleOpCamera);
        obs_CAMERA.command_state = 0U;
        obs_CAMERA.fovy          = AppMain.NNM_DEGtoA32(40f);
        obs_CAMERA.znear         = 0.1f;
        obs_CAMERA.zfar          = 32768f;
        this.dmTitleOpMgrInit();
        AppMain.GlobalPool <AppMain.NNS_VECTOR> .Release(nns_VECTOR);
    }
Example #2
0
 private void DmTitleOpInit()
 {
     AppMain.NNS_RGBA   col       = new AppMain.NNS_RGBA(1f, 1f, 1f, 1f);
     AppMain.NNS_VECTOR nnsVector = new AppMain.NNS_VECTOR();
     nnsVector.Clear();
     AppMain.NNS_VECTOR pos = new AppMain.NNS_VECTOR(0.0f, 0.0f, 50f);
     AppMain.g_obj.flag             = 4259848U;
     AppMain.g_obj.ppPre            = (AppMain.OBJECT_Delegate)null;
     AppMain.g_obj.ppPost           = (AppMain.OBJECT_Delegate)null;
     AppMain.g_obj.ppCollision      = (AppMain.OBJECT_WORK_Delegate)null;
     AppMain.g_obj.ppObjPre         = (AppMain.OBJECT_WORK_Delegate)null;
     AppMain.g_obj.ppObjPost        = (AppMain.OBJECT_WORK_Delegate)null;
     AppMain.g_obj.ppRegRecAuto     = (AppMain.OBJECT_WORK_Delegate)null;
     AppMain.g_obj.draw_scale.x     = AppMain.g_obj.draw_scale.y = AppMain.g_obj.draw_scale.z = 13107;
     AppMain.g_obj.inv_draw_scale.x = AppMain.g_obj.inv_draw_scale.y = AppMain.g_obj.inv_draw_scale.z = AppMain.FX_Div(4096, AppMain.g_obj.draw_scale.x);
     AppMain.g_obj.depth            = 128;
     AppMain.g_obj.ambient_color.r  = 0.8f;
     AppMain.g_obj.ambient_color.g  = 0.8f;
     AppMain.g_obj.ambient_color.b  = 0.8f;
     nnsVector.x = -1f;
     nnsVector.y = -1f;
     nnsVector.z = -1f;
     AppMain.nnNormalizeVector(nnsVector, nnsVector);
     AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_0, ref col, 1f, nnsVector);
     AppMain.ObjCameraInit(0, pos, 0, (ushort)0, 12288);
     AppMain.ObjCamera3dInit(0);
     AppMain.g_obj.glb_camera_id   = 0;
     AppMain.g_obj.glb_camera_type = 0;
     AppMain.OBS_CAMERA obsCamera = AppMain.ObjCameraGet(0);
     obsCamera.user_func     = new AppMain.OBJF_CAMERA_USER_FUNC(this.dmTitleOpCamera);
     obsCamera.command_state = 0U;
     obsCamera.fovy          = AppMain.NNM_DEGtoA32(40f);
     obsCamera.znear         = 0.1f;
     obsCamera.zfar          = 32768f;
     this.dmTitleOpMgrInit();
     //AppMain.GlobalPool<AppMain.NNS_VECTOR>.Release(nnsVector);
 }