private void amMotionDraw( AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func) { AppMain.AMS_PARAM_DRAW_MOTION_TRS paramDrawMotionTrs; AppMain.AMS_COMMAND_HEADER command = new AppMain.AMS_COMMAND_HEADER() { param = (object)(paramDrawMotionTrs = new AppMain.AMS_PARAM_DRAW_MOTION_TRS()), command_id = -11 }; command.param = (object)paramDrawMotionTrs; paramDrawMotionTrs._object = motion._object; paramDrawMotionTrs.mtx = (AppMain.NNS_MATRIX)null; paramDrawMotionTrs.sub_obj_type = 0U; paramDrawMotionTrs.flag = drawflag; paramDrawMotionTrs.texlist = texlist; paramDrawMotionTrs.trslist = motion.data; paramDrawMotionTrs.material_func = func; int motionId = motion.mbuf[0].motion_id; paramDrawMotionTrs.motion = motion.mtnfile[motionId >> 16].motion[motionId & (int)ushort.MaxValue]; paramDrawMotionTrs.frame = motion.mbuf[0].frame; AppMain._amDrawMotionTRS(command, drawflag); }
private void amMotionDraw( uint state, AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func) { int nodeNum = motion.node_num; AppMain.AMS_PARAM_DRAW_MOTION_TRS paramDrawMotionTrs = AppMain.amDrawAlloc_AMS_PARAM_DRAW_MOTION_TRS(); AppMain.NNS_MATRIX dst = paramDrawMotionTrs.mtx = AppMain.amDrawAlloc_NNS_MATRIX(); AppMain.nnCopyMatrix(dst, AppMain.amMatrixGetCurrent()); paramDrawMotionTrs._object = motion._object; paramDrawMotionTrs.mtx = dst; paramDrawMotionTrs.sub_obj_type = 0U; paramDrawMotionTrs.flag = drawflag; paramDrawMotionTrs.texlist = texlist; paramDrawMotionTrs.trslist = new AppMain.NNS_TRS[nodeNum]; paramDrawMotionTrs.material_func = func; for (int index = 0; index < nodeNum; ++index) { paramDrawMotionTrs.trslist[index] = AppMain.amDrawAlloc_NNS_TRS(); paramDrawMotionTrs.trslist[index].Assign(motion.data[index]); } int motionId = motion.mbuf[0].motion_id; paramDrawMotionTrs.motion = motion.mtnfile[motionId >> 16].motion[motionId & (int)ushort.MaxValue]; paramDrawMotionTrs.frame = motion.mbuf[0].frame; AppMain.amDrawRegistCommand(state, -11, (object)paramDrawMotionTrs); }
public void Clear() { this._object = (AppMain.NNS_OBJECT)null; this.mtx = (AppMain.NNS_MATRIX)null; this.texlist = (AppMain.NNS_TEXLIST)null; this.sub_obj_type = 0U; this.flag = 0U; this.material_func = (AppMain.NNS_MATERIALCALLBACK_FUNC)null; this.motion = (AppMain.NNS_MOTION)null; this.frame = 0.0f; this.trslist = (AppMain.NNS_TRS[])null; this.mmotion = (AppMain.NNS_MOTION)null; this.mframe = 0.0f; }
private void amMotionMaterialDraw( uint state, AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func) { if (motion.mmobject == null) { this.amMotionDraw(state, motion, texlist, drawflag); } else { int nodeNum = motion.node_num; AppMain.AMS_PARAM_DRAW_MOTION_TRS paramDrawMotionTrs = new AppMain.AMS_PARAM_DRAW_MOTION_TRS(); AppMain.NNS_MATRIX dst = paramDrawMotionTrs.mtx = AppMain.GlobalPool <AppMain.NNS_MATRIX> .Alloc(); AppMain.nnCopyMatrix(dst, AppMain.amMatrixGetCurrent()); paramDrawMotionTrs.mtx = dst; paramDrawMotionTrs.sub_obj_type = 0U; paramDrawMotionTrs.flag = drawflag; paramDrawMotionTrs.texlist = texlist; paramDrawMotionTrs.trslist = new AppMain.NNS_TRS[nodeNum]; paramDrawMotionTrs.material_func = func; for (int index = 0; index < nodeNum; ++index) { paramDrawMotionTrs.trslist[index] = new AppMain.NNS_TRS(motion.data[index]); } paramDrawMotionTrs._object = motion._object; paramDrawMotionTrs.mmotion = motion.mmtn[motion.mmotion_id]; paramDrawMotionTrs.mframe = motion.mmotion_frame; int motionId = motion.mbuf[0].motion_id; if (motion.mtnfile[motionId >> 16].file != null) { paramDrawMotionTrs.motion = motion.mtnfile[motionId >> 16].motion[motionId & (int)ushort.MaxValue]; paramDrawMotionTrs.frame = motion.mbuf[0].frame; } else { paramDrawMotionTrs.motion = (AppMain.NNS_MOTION)null; paramDrawMotionTrs.frame = 0.0f; } AppMain.amDrawRegistCommand(state, -12, (object)paramDrawMotionTrs); } }
// Token: 0x06001999 RID: 6553 RVA: 0x000E8453 File Offset: 0x000E6653 private static void nnSetMaterialCallback(AppMain.NNS_MATERIALCALLBACK_FUNC func) { AppMain.nngMaterialCallbackFunc = func; }
// Token: 0x06001A43 RID: 6723 RVA: 0x000EB138 File Offset: 0x000E9338 private void amMotionMaterialDraw(AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func) { if (motion.mmobject == null) { this.amMotionDraw(motion, texlist, drawflag); return; } AppMain.AMS_COMMAND_HEADER ams_COMMAND_HEADER = new AppMain.AMS_COMMAND_HEADER(); AppMain.AMS_PARAM_DRAW_MOTION_TRS ams_PARAM_DRAW_MOTION_TRS = (AppMain.AMS_PARAM_DRAW_MOTION_TRS)(ams_COMMAND_HEADER.param = new AppMain.AMS_PARAM_DRAW_MOTION_TRS()); ams_COMMAND_HEADER.command_id = -12; ams_COMMAND_HEADER.param = ams_PARAM_DRAW_MOTION_TRS; ams_PARAM_DRAW_MOTION_TRS._object = motion.mmobject; ams_PARAM_DRAW_MOTION_TRS.mtx = null; ams_PARAM_DRAW_MOTION_TRS.sub_obj_type = 0U; ams_PARAM_DRAW_MOTION_TRS.flag = drawflag; ams_PARAM_DRAW_MOTION_TRS.texlist = texlist; ams_PARAM_DRAW_MOTION_TRS.trslist = motion.data; ams_PARAM_DRAW_MOTION_TRS.material_func = func; ams_PARAM_DRAW_MOTION_TRS.mmotion = null; ams_PARAM_DRAW_MOTION_TRS.mframe = 0f; int motion_id = motion.mbuf[0].motion_id; if (motion.mtnfile[motion_id >> 16].file != null) { ams_PARAM_DRAW_MOTION_TRS.motion = motion.mtnfile[motion_id >> 16].motion[motion_id & 65535]; ams_PARAM_DRAW_MOTION_TRS.frame = motion.mbuf[0].frame; } else { ams_PARAM_DRAW_MOTION_TRS.motion = null; ams_PARAM_DRAW_MOTION_TRS.frame = 0f; } AppMain._amDrawMotionTRS(ams_COMMAND_HEADER, drawflag); }
// Token: 0x06001A3D RID: 6717 RVA: 0x000EAF10 File Offset: 0x000E9110 private void amMotionMaterialDraw(uint state, AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func) { if (motion.mmobject == null) { this.amMotionDraw(state, motion, texlist, drawflag); return; } int node_num = motion.node_num; AppMain.AMS_PARAM_DRAW_MOTION_TRS ams_PARAM_DRAW_MOTION_TRS = new AppMain.AMS_PARAM_DRAW_MOTION_TRS(); AppMain.NNS_MATRIX nns_MATRIX = ams_PARAM_DRAW_MOTION_TRS.mtx = AppMain.GlobalPool <AppMain.NNS_MATRIX> .Alloc(); AppMain.nnCopyMatrix(nns_MATRIX, AppMain.amMatrixGetCurrent()); ams_PARAM_DRAW_MOTION_TRS.mtx = nns_MATRIX; ams_PARAM_DRAW_MOTION_TRS.sub_obj_type = 0U; ams_PARAM_DRAW_MOTION_TRS.flag = drawflag; ams_PARAM_DRAW_MOTION_TRS.texlist = texlist; ams_PARAM_DRAW_MOTION_TRS.trslist = new AppMain.NNS_TRS[node_num]; ams_PARAM_DRAW_MOTION_TRS.material_func = func; for (int i = 0; i < node_num; i++) { ams_PARAM_DRAW_MOTION_TRS.trslist[i] = new AppMain.NNS_TRS(motion.data[i]); } ams_PARAM_DRAW_MOTION_TRS._object = motion._object; ams_PARAM_DRAW_MOTION_TRS.mmotion = motion.mmtn[motion.mmotion_id]; ams_PARAM_DRAW_MOTION_TRS.mframe = motion.mmotion_frame; int motion_id = motion.mbuf[0].motion_id; if (motion.mtnfile[motion_id >> 16].file != null) { ams_PARAM_DRAW_MOTION_TRS.motion = motion.mtnfile[motion_id >> 16].motion[motion_id & 65535]; ams_PARAM_DRAW_MOTION_TRS.frame = motion.mbuf[0].frame; } else { ams_PARAM_DRAW_MOTION_TRS.motion = null; ams_PARAM_DRAW_MOTION_TRS.frame = 0f; } AppMain.amDrawRegistCommand(state, -12, ams_PARAM_DRAW_MOTION_TRS); }
// Token: 0x06001A3A RID: 6714 RVA: 0x000EAE04 File Offset: 0x000E9004 private void amMotionDraw(uint state, AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func) { int node_num = motion.node_num; AppMain.AMS_PARAM_DRAW_MOTION_TRS ams_PARAM_DRAW_MOTION_TRS = AppMain.amDrawAlloc_AMS_PARAM_DRAW_MOTION_TRS(); AppMain.NNS_MATRIX nns_MATRIX = ams_PARAM_DRAW_MOTION_TRS.mtx = AppMain.amDrawAlloc_NNS_MATRIX(); AppMain.nnCopyMatrix(nns_MATRIX, AppMain.amMatrixGetCurrent()); ams_PARAM_DRAW_MOTION_TRS._object = motion._object; ams_PARAM_DRAW_MOTION_TRS.mtx = nns_MATRIX; ams_PARAM_DRAW_MOTION_TRS.sub_obj_type = 0U; ams_PARAM_DRAW_MOTION_TRS.flag = drawflag; ams_PARAM_DRAW_MOTION_TRS.texlist = texlist; ams_PARAM_DRAW_MOTION_TRS.trslist = new AppMain.NNS_TRS[node_num]; ams_PARAM_DRAW_MOTION_TRS.material_func = func; for (int i = 0; i < node_num; i++) { ams_PARAM_DRAW_MOTION_TRS.trslist[i] = AppMain.amDrawAlloc_NNS_TRS(); ams_PARAM_DRAW_MOTION_TRS.trslist[i].Assign(motion.data[i]); } int motion_id = motion.mbuf[0].motion_id; ams_PARAM_DRAW_MOTION_TRS.motion = motion.mtnfile[motion_id >> 16].motion[motion_id & 65535]; ams_PARAM_DRAW_MOTION_TRS.frame = motion.mbuf[0].frame; AppMain.amDrawRegistCommand(state, -11, ams_PARAM_DRAW_MOTION_TRS); }