// Token: 0x06001EA1 RID: 7841 RVA: 0x0013AD90 File Offset: 0x00138F90 public void Assign(ref SNNS_MATRIX matrix) { this.M00 = matrix.M00; this.M01 = matrix.M01; this.M02 = matrix.M02; this.M03 = matrix.M03; this.M10 = matrix.M10; this.M11 = matrix.M11; this.M12 = matrix.M12; this.M13 = matrix.M13; this.M20 = matrix.M20; this.M21 = matrix.M21; this.M22 = matrix.M22; this.M23 = matrix.M23; this.M30 = matrix.M30; this.M31 = matrix.M31; this.M32 = matrix.M32; this.M33 = matrix.M33; }
// Token: 0x0600052C RID: 1324 RVA: 0x0002B92C File Offset: 0x00029B2C private static void GmTvxExecuteDraw() { AppMain.GMS_TVX_DRAW_WORK[] array = AppMain.gm_tvx_draw_work; if (array == null) { return; } if (array[0].tex == null) { return; } uint num = AppMain.GmMainGetLightColor(); AppMain._AMS_PARAM_DRAW_PRIMITIVE.bldSrc = 770; AppMain._AMS_PARAM_DRAW_PRIMITIVE.bldDst = 771; AppMain._AMS_PARAM_DRAW_PRIMITIVE.bldMode = 32774; AppMain._AMS_PARAM_DRAW_PRIMITIVE.aTest = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.zMask = 0; AppMain._AMS_PARAM_DRAW_PRIMITIVE.zTest = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.noSort = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.format3D = 4; uint num2 = 0U; while ((ulong)num2 < (ulong)((long)AppMain.GMD_TVX_DRAW_WORK_NUM)) { if (array[(int)((UIntPtr)num2)].tex_id == -1) { return; } AppMain._AMS_PARAM_DRAW_PRIMITIVE.ablend = 0; AppMain._AMS_PARAM_DRAW_PRIMITIVE.texlist = array[(int)((UIntPtr)num2)].tex; AppMain._AMS_PARAM_DRAW_PRIMITIVE.uwrap = array[(int)((UIntPtr)num2)].u_wrap; AppMain._AMS_PARAM_DRAW_PRIMITIVE.vwrap = array[(int)((UIntPtr)num2)].v_wrap; AppMain._AMS_PARAM_DRAW_PRIMITIVE.type = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.count = (int)(array[(int)((UIntPtr)num2)].all_vtx_num + array[(int)((UIntPtr)num2)].stack_num * 2U - 2U); AppMain.NNS_PRIM3D_PCT_ARRAY nns_PRIM3D_PCT_ARRAY = AppMain.amDrawAlloc_NNS_PRIM3D_PCT(AppMain._AMS_PARAM_DRAW_PRIMITIVE.count); AppMain.NNS_PRIM3D_PCT[] buffer = nns_PRIM3D_PCT_ARRAY.buffer; int offset = nns_PRIM3D_PCT_ARRAY.offset; int num3 = 0; AppMain._AMS_PARAM_DRAW_PRIMITIVE.vtxPCT3D = nns_PRIM3D_PCT_ARRAY; AppMain._AMS_PARAM_DRAW_PRIMITIVE.texId = array[(int)((UIntPtr)num2)].tex_id; SNNS_MATRIX snns_MATRIX = default(SNNS_MATRIX); SNNS_MATRIX snns_MATRIX2 = default(SNNS_MATRIX); AppMain.nnMakeUnitMatrix(ref snns_MATRIX2); for (uint num4 = 0U; num4 < array[(int)((UIntPtr)num2)].stack_num; num4 += 1U) { AppMain.GMS_TVX_DRAW_STACK gms_TVX_DRAW_STACK = array[(int)((UIntPtr)num2)].stack[(int)((UIntPtr)num4)]; if ((gms_TVX_DRAW_STACK.disp_flag & AppMain.GMD_TVX_DISP_BLEND) != 0U) { AppMain._AMS_PARAM_DRAW_PRIMITIVE.ablend = 1; } float num5 = AppMain.FXM_FX32_TO_FLOAT(gms_TVX_DRAW_STACK.pos.x); float num6 = -AppMain.FXM_FX32_TO_FLOAT(gms_TVX_DRAW_STACK.pos.y); float num7 = AppMain.FXM_FX32_TO_FLOAT(gms_TVX_DRAW_STACK.pos.z); AppMain.nnMakeUnitMatrix(ref snns_MATRIX); if ((gms_TVX_DRAW_STACK.disp_flag & AppMain.GMD_TVX_DISP_ROTATE) != 0U) { AppMain.nnRotateZMatrix(ref snns_MATRIX, ref snns_MATRIX, (int)((ushort)gms_TVX_DRAW_STACK.rotate_z)); } if ((gms_TVX_DRAW_STACK.disp_flag & AppMain.GMD_TVX_DISP_SCALE) != 0U) { AppMain.nnScaleMatrix(ref snns_MATRIX, ref snns_MATRIX, AppMain.FXM_FX32_TO_FLOAT(gms_TVX_DRAW_STACK.scale.x), AppMain.FXM_FX32_TO_FLOAT(gms_TVX_DRAW_STACK.scale.y), AppMain.FXM_FX32_TO_FLOAT(gms_TVX_DRAW_STACK.scale.z)); } uint num8 = num; if ((gms_TVX_DRAW_STACK.disp_flag & AppMain.GMD_TVX_DISP_LIGHT_DISABLE) != 0U) { num8 = gms_TVX_DRAW_STACK.color; } SNNS_VECTOR snns_VECTOR = default(SNNS_VECTOR); int num9 = num3 + offset; AppMain.AOS_TVX_VERTEX[] vtx = gms_TVX_DRAW_STACK.vtx; int num10 = 0; while ((long)num10 < (long)((ulong)gms_TVX_DRAW_STACK.vtx_num)) { snns_VECTOR.x = vtx[num10].x; snns_VECTOR.y = vtx[num10].y; snns_VECTOR.z = vtx[num10].z; int num11 = num9 + num10; if (gms_TVX_DRAW_STACK.disp_flag != 0U) { AppMain.nnTransformVector(ref buffer[num11].Pos, ref snns_MATRIX, ref snns_VECTOR); } else { buffer[num11].Pos.Assign(snns_VECTOR.x, snns_VECTOR.y, snns_VECTOR.z); } AppMain.NNS_PRIM3D_PCT[] array2 = buffer; int num12 = num11; array2[num12].Pos.x = array2[num12].Pos.x + num5; AppMain.NNS_PRIM3D_PCT[] array3 = buffer; int num13 = num11; array3[num13].Pos.y = array3[num13].Pos.y + num6; AppMain.NNS_PRIM3D_PCT[] array4 = buffer; int num14 = num11; array4[num14].Pos.z = array4[num14].Pos.z + num7; buffer[num11].Tex.u = vtx[num10].u + gms_TVX_DRAW_STACK.coord.u; buffer[num11].Tex.v = vtx[num10].v + gms_TVX_DRAW_STACK.coord.v; buffer[num11].Col = (vtx[num10].c & num8); num10++; } num3 += (int)(gms_TVX_DRAW_STACK.vtx_num + 2U); if (num4 != 0U) { int num15 = num9 - 1; buffer[num15] = buffer[num15 + 1]; } if (num4 != array[(int)((UIntPtr)num2)].stack_num - 1U) { int num15 = num9 + (int)(gms_TVX_DRAW_STACK.vtx_num - 1U); buffer[num15 + 1] = buffer[num15]; } } AppMain.amMatrixPush(ref snns_MATRIX2); AppMain.ObjDraw3DNNDrawPrimitive(AppMain._AMS_PARAM_DRAW_PRIMITIVE); AppMain.amMatrixPop(); array[(int)((UIntPtr)num2)].tex = null; array[(int)((UIntPtr)num2)].tex_id = -1; array[(int)((UIntPtr)num2)].stack_num = 0U; array[(int)((UIntPtr)num2)].all_vtx_num = 0U; num2 += 1U; } }
// Token: 0x06000D9A RID: 3482 RVA: 0x0007781C File Offset: 0x00075A1C public static void gmRingDrawEnd() { if (AppMain.gm_ring_sys_work.draw_ring_count <= 0) { return; } if (!AppMain.GmMainIsDrawEnable()) { return; } AppMain.VecU16 vecU = default(AppMain.VecU16); vecU.x = 0; vecU.y = AppMain.gm_ring_sys_work.dir; vecU.z = AppMain.GmMainGetObjectRotation(); AppMain.GMS_RING_SYS_WORK gms_RING_SYS_WORK = AppMain.gm_ring_sys_work; uint draw_ring_count = (uint)AppMain.gm_ring_sys_work.draw_ring_count; SNNS_VECTOR snns_VECTOR; ObjCamera.DispPosGet(0, out snns_VECTOR); float num; float num2; AppMain.nnSinCos((int)vecU.z + -8192, out num, out num2); num *= 13.576385f; num2 *= 13.576385f; float num3; float num4; AppMain.nnSinCos((int)vecU.z + -24576, out num3, out num4); num3 *= 13.576385f; num4 *= 13.576385f; AppMain.VecFx32 vecFx = new AppMain.VecFx32(gms_RING_SYS_WORK.draw_ring_pos[0]); SNNS_MATRIX snns_MATRIX = default(SNNS_MATRIX); AppMain.nnMakeUnitMatrix(ref snns_MATRIX); AppMain.nnTranslateMatrix(ref snns_MATRIX, ref snns_MATRIX, AppMain.FX_FX32_TO_F32(vecFx.x), -AppMain.FX_FX32_TO_F32(vecFx.y), AppMain.FX_FX32_TO_F32(vecFx.z)); AppMain._AMS_PARAM_DRAW_PRIMITIVE.type = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.count = (int)(6U * draw_ring_count - 2U); AppMain._AMS_PARAM_DRAW_PRIMITIVE.ablend = 0; AppMain._AMS_PARAM_DRAW_PRIMITIVE.bldSrc = 768; AppMain._AMS_PARAM_DRAW_PRIMITIVE.bldDst = 774; AppMain._AMS_PARAM_DRAW_PRIMITIVE.bldMode = 32774; AppMain._AMS_PARAM_DRAW_PRIMITIVE.aTest = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.zMask = 0; AppMain._AMS_PARAM_DRAW_PRIMITIVE.zTest = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.noSort = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.texlist = AppMain.gm_ring_obj_3d.texlist; AppMain._AMS_PARAM_DRAW_PRIMITIVE.texId = 0; AppMain._AMS_PARAM_DRAW_PRIMITIVE.uwrap = 1; AppMain._AMS_PARAM_DRAW_PRIMITIVE.vwrap = 1; uint color = AppMain.gm_ring_sys_work.color; AppMain._AMS_PARAM_DRAW_PRIMITIVE.vtxPCT3D = AppMain.amDrawAlloc_NNS_PRIM3D_PCT(AppMain._AMS_PARAM_DRAW_PRIMITIVE.count); AppMain.NNS_PRIM3D_PCT[] buffer = AppMain._AMS_PARAM_DRAW_PRIMITIVE.vtxPCT3D.buffer; int offset = AppMain._AMS_PARAM_DRAW_PRIMITIVE.vtxPCT3D.offset; AppMain._AMS_PARAM_DRAW_PRIMITIVE.format3D = 4; int num5 = 0; while ((long)num5 < (long)((ulong)draw_ring_count)) { int num6 = offset + 6 * num5; ushort num7 = (ushort)(AppMain.gm_ring_sys_work.draw_ring_uv_frame / 4); buffer[num6].Tex.u = (buffer[num6 + 1].Tex.u = AppMain.gm_ring_roll_uv[0][(int)num7]); buffer[num6 + 2].Tex.u = (buffer[num6 + 3].Tex.u = AppMain.gm_ring_roll_uv[0][(int)num7] + 0.25f); buffer[num6].Tex.v = (buffer[num6 + 2].Tex.v = AppMain.gm_ring_roll_uv[1][(int)num7]); buffer[num6 + 1].Tex.v = (buffer[num6 + 3].Tex.v = AppMain.gm_ring_roll_uv[1][(int)num7] + 0.25f); buffer[num6].Col = color; buffer[num6 + 1].Col = (buffer[num6 + 2].Col = (buffer[num6 + 3].Col = buffer[num6].Col)); buffer[num6].Pos.x = num + AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].x - vecFx.x); buffer[num6 + 1].Pos.x = num3 + AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].x - vecFx.x); buffer[num6 + 2].Pos.x = -num3 + AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].x - vecFx.x); buffer[num6 + 3].Pos.x = -num + AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].x - vecFx.x); buffer[num6].Pos.y = num2 - AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].y - vecFx.y); buffer[num6 + 1].Pos.y = num4 - AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].y - vecFx.y); buffer[num6 + 2].Pos.y = -num4 - AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].y - vecFx.y); buffer[num6 + 3].Pos.y = -num2 - AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].y - vecFx.y); buffer[num6].Pos.z = (buffer[num6 + 1].Pos.z = (buffer[num6 + 2].Pos.z = (buffer[num6 + 3].Pos.z = -1f + AppMain.FX_FX32_TO_F32(gms_RING_SYS_WORK.draw_ring_pos[num5].z - vecFx.z)))); if (num5 != 0) { buffer[num6 - 1] = buffer[num6]; } if ((long)(num5 + 1) < (long)((ulong)draw_ring_count)) { buffer[num6 + 4] = buffer[num6 + 3]; } num5++; } AppMain._AMS_PARAM_DRAW_PRIMITIVE.sortZ = AppMain.nnDistanceVector(ref buffer[offset].Pos, ref snns_VECTOR); AppMain.amMatrixPush(ref snns_MATRIX); AppMain.ObjDraw3DNNDrawPrimitive(AppMain._AMS_PARAM_DRAW_PRIMITIVE); AppMain.amMatrixPop(); }
// Token: 0x06000A69 RID: 2665 RVA: 0x0005C7FC File Offset: 0x0005A9FC public static void amMatrixPush(ref SNNS_MATRIX mtx) { AppMain.NNS_MATRIXSTACK mstk = AppMain._amMatrixGetCurrentStack(); AppMain.nnPushMatrix(mstk, ref mtx); }
// Token: 0x060007AE RID: 1966 RVA: 0x00043EFC File Offset: 0x000420FC private void dmLogoSegaMainFunc(MTS_TASK_TCB tcb) { AppMain.DMS_LOGO_SEGA_WORK dms_LOGO_SEGA_WORK = (AppMain.DMS_LOGO_SEGA_WORK)tcb.work; if (AppMain.GsSystemBgmIsPlay()) { dms_LOGO_SEGA_WORK.h_se.snd_ctrl_param.volume = 0f; } else { dms_LOGO_SEGA_WORK.h_se.snd_ctrl_param.volume = 1f; } if (AppMain.AoSysIsShowPlatformUI()) { if (AppMain.IzFadeIsExe()) { AppMain.IzFadeSetStopUpdate1Frame(null); } } else { if (dms_LOGO_SEGA_WORK.func != null) { dms_LOGO_SEGA_WORK.func(dms_LOGO_SEGA_WORK); } if ((dms_LOGO_SEGA_WORK.flag & 1U) != 0U) { this.dmLogoSegaPreEnd(dms_LOGO_SEGA_WORK); AppMain.mtTaskChangeTcbProcedure(tcb, this.gmLogoSegaPreEndWaitFunc); dms_LOGO_SEGA_WORK.timer = 0; return; } } float frame = 0f; if (!AppMain.AoSysIsShowPlatformUI() && (dms_LOGO_SEGA_WORK.flag & 2U) != 0U) { frame = 1f; } AppMain.AoActSysSetDrawTaskPrio(); for (int i = 0; i < 8; i++) { AppMain.AoActSetTexture(AppMain.AoTexGetTexList(AppMain.dm_logo_sega_aos_tex[( int )AppMain.dm_logo_sega_tex_id_tbl[i]])); AppMain.AoActUpdate(dms_LOGO_SEGA_WORK.act[i], frame); AppMain.AoActDraw(dms_LOGO_SEGA_WORK.act[i]); } NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_RGB nns_RGB = new NNS_RGB(1f, 1f, 1f); if (!AppMain.AoSysIsShowPlatformUI()) { AppMain.amTrailEFUpdate(1); } if (AppMain.g_obj.glb_camera_id != -1) { SNNS_VECTOR snns_VECTOR = default(SNNS_VECTOR); SNNS_VECTOR snns_VECTOR2 = default(SNNS_VECTOR); SNNS_MATRIX snns_MATRIX = default(SNNS_MATRIX); AppMain.nnMakeUnitMatrix(ref snns_MATRIX); AppMain.ObjDraw3DNNSetCameraEx(AppMain.g_obj.glb_camera_id, AppMain.g_obj.glb_camera_type, 0U); ObjCamera.DispPosGet(AppMain.g_obj.glb_camera_id, out snns_VECTOR); AppMain.amVectorSet(ref snns_VECTOR2, -snns_MATRIX.M03, -snns_MATRIX.M13, -snns_MATRIX.M23); AppMain.nnAddVector(ref snns_VECTOR, ref snns_VECTOR2, ref snns_VECTOR); AppMain.amEffectSetCameraPos(ref snns_VECTOR); } AppMain.nnSetPrimitive3DMaterial(ref nns_RGBA, ref nns_RGB, 1f); AppMain.NNS_TEXLIST texlist = AppMain.dm_logo_sega_aos_tex[0].texlist; AppMain.amTrailEFDraw(1, texlist, 0U); }