Ejemplo n.º 1
0
 public static void gmGmkLand3TvxPulleyDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
 {
     if (!AppMain.GmMainIsDrawEnable() || ((int)obj_work.disp_flag & 32) != 0)
     {
         return;
     }
     AppMain.NNS_TEXCOORD uv = new AppMain.NNS_TEXCOORD(0.0f, 0.0f);
     AppMain.gmGmkLand3TvxDrawFuncEx(2U, obj_work.obj_3d.texlist, ref obj_work.pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_LIGHT_DISABLE | AppMain.GMD_TVX_DISP_ROTATE, (short)-obj_work.dir.z, ref uv);
 }
Ejemplo n.º 2
0
 public AppMain.NNS_MOTION_KEY_Class4 Assign(AppMain.NNS_MOTION_KEY_Class4 motionKey)
 {
     if (this != motionKey)
     {
         this.Frame = motionKey.Frame;
         this.Value = motionKey.Value;
     }
     return(this);
 }
 // Token: 0x06000578 RID: 1400 RVA: 0x0002F3B0 File Offset: 0x0002D5B0
 public static void gmGmkLand3TvxPulleyDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
 {
     if (!AppMain.GmMainIsDrawEnable())
     {
         return;
     }
     if ((obj_work.disp_flag & 32U) != 0U)
     {
         return;
     }
     AppMain.NNS_TEXCOORD nns_TEXCOORD = new AppMain.NNS_TEXCOORD(0f, 0f);
     AppMain.gmGmkLand3TvxDrawFuncEx(2U, obj_work.obj_3d.texlist, ref obj_work.pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_LIGHT_DISABLE | AppMain.GMD_TVX_DISP_ROTATE, ( short )(-( short )obj_work.dir.z), ref nns_TEXCOORD);
 }
Ejemplo n.º 4
0
    public static void gmGmkLand3TvxRopeDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
    {
        if (!AppMain.GmMainIsDrawEnable() || ((int)obj_work.disp_flag & 32) != 0)
        {
            return;
        }
        var coord = new AppMain.NNS_TEXCOORD(0.0f, 0.0f)
        {
            v = (float)(-0.25 * (double)obj_work.obj_3d.mat_frame / 120.0)
        };

        AppMain.gmGmkLand3TvxDrawFuncEx(3U, obj_work.obj_3d.texlist, ref obj_work.pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_LIGHT_DISABLE | AppMain.GMD_TVX_DISP_ROTATE, (short)-obj_work.dir.z, ref coord);
    }
Ejemplo n.º 5
0
 public NNS_MATERIAL_GLES11_TEXMAP_DESC(ref AppMain.NNS_MATERIAL_GLES11_TEXMAP_DESC desc)
 {
     this.fType       = desc.fType;
     this.iTexIdx     = desc.iTexIdx;
     this.EnvMode     = desc.EnvMode;
     this.pCombine    = desc.pCombine;
     this.Offset      = desc.Offset;
     this.Scale       = desc.Scale;
     this.WrapS       = desc.WrapS;
     this.WrapT       = desc.WrapT;
     this.pFilterMode = desc.pFilterMode;
     this.LODBias     = desc.LODBias;
     this.pTexInfo    = desc.pTexInfo;
 }
Ejemplo n.º 6
0
 public void Assign(ref AppMain.NNS_MATERIAL_GLES11_TEXMAP_DESC pPtr)
 {
     this.fType       = pPtr.fType;
     this.iTexIdx     = pPtr.iTexIdx;
     this.EnvMode     = pPtr.EnvMode;
     this.pCombine    = pPtr.pCombine;
     this.Offset      = pPtr.Offset;
     this.Scale       = pPtr.Scale;
     this.WrapS       = pPtr.WrapS;
     this.WrapT       = pPtr.WrapT;
     this.pFilterMode = pPtr.pFilterMode;
     this.LODBias     = pPtr.LODBias;
     this.pTexInfo    = pPtr.pTexInfo;
 }
Ejemplo n.º 7
0
 public NNS_MATERIAL_STDSHADER_TEXMAP_DESC(AppMain.NNS_MATERIAL_STDSHADER_TEXMAP_DESC desc)
 {
     this.fType        = desc.fType;
     this.iTexIdx      = desc.iTexIdx;
     this.TexCoord     = desc.TexCoord;
     this.Blend        = desc.Blend;
     this.Offset       = desc.Offset;
     this.Scale        = desc.Scale;
     this.WrapS        = desc.WrapS;
     this.WrapT        = desc.WrapT;
     this.pBorderColor = desc.pBorderColor;
     this.pFilterMode  = desc.pFilterMode;
     this.pLODParam    = desc.pLODParam;
     this.pTexInfo     = desc.pTexInfo;
     this.Reserved1    = desc.Reserved1;
     this.Reserved0    = desc.Reserved0;
 }
Ejemplo n.º 8
0
 public NNS_MATERIAL_TEXMAP_DESC(AppMain.NNS_MATERIAL_TEXMAP_DESC desc)
 {
     this.fType        = desc.fType;
     this.iTexIdx      = desc.iTexIdx;
     this.EnvMode      = desc.EnvMode;
     this.pCombine     = desc.pCombine;
     this.EnvColor     = desc.EnvColor;
     this.Offset       = desc.Offset;
     this.Scale        = desc.Scale;
     this.WrapS        = desc.WrapS;
     this.WrapT        = desc.WrapT;
     this.pBorderColor = desc.pBorderColor;
     this.pFilterMode  = desc.pFilterMode;
     this.pLODParam    = desc.pLODParam;
     this.pTexInfo     = desc.pTexInfo;
     this.Reserved1    = desc.Reserved1;
     this.Reserved0    = desc.Reserved0;
 }
Ejemplo n.º 9
0
    public static void gmGmkLand3TvxDrawFuncEx(
        uint tvx_index,
        AppMain.NNS_TEXLIST texlist,
        ref AppMain.VecFx32 pos,
        ref AppMain.VecFx32 scale,
        uint disp_flag,
        short dir_z,
        ref AppMain.NNS_TEXCOORD uv)
    {
        int index = (int)tvx_index;

        AppMain.TVX_FILE model_tvx;
        if (AppMain.gm_gmk_land_3_obj_tvx_list.buf[index] == null)
        {
            model_tvx = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_land_3_obj_tvx_list, index));
            AppMain.gm_gmk_land_3_obj_tvx_list.buf[index] = (object)model_tvx;
        }
        else
        {
            model_tvx = (AppMain.TVX_FILE)AppMain.gm_gmk_land_3_obj_tvx_list.buf[index];
        }

        var work = new AppMain.GMS_TVX_EX_WORK()
        {
            u_wrap = 1,
            v_wrap = 1,
            coord  =
            {
                u = uv.u,
                v = uv.v
            },
            color = uint.MaxValue
        };

        AppMain.GmTvxSetModelEx(model_tvx, texlist, ref pos, ref scale, disp_flag, dir_z, ref work);
    }
Ejemplo n.º 10
0
 public NNS_MOTION_KEY_Class4(AppMain.NNS_MOTION_KEY_Class4 motionKey)
 {
     this.Frame = motionKey.Frame;
     this.Value = motionKey.Value;
 }
 // Token: 0x0600057A RID: 1402 RVA: 0x0002F4AC File Offset: 0x0002D6AC
 public static void gmGmkLand3TvxDrawFuncEx(uint tvx_index, AppMain.NNS_TEXLIST texlist, ref AppMain.VecFx32 pos, ref AppMain.VecFx32 scale, uint disp_flag, short dir_z, ref AppMain.NNS_TEXCOORD uv)
 {
     AppMain.TVX_FILE tvx_FILE;
     if (AppMain.gm_gmk_land_3_obj_tvx_list.buf[( int )tvx_index] == null)
     {
         tvx_FILE = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_land_3_obj_tvx_list, ( int )tvx_index));
         AppMain.gm_gmk_land_3_obj_tvx_list.buf[( int )tvx_index] = tvx_FILE;
     }
     else
     {
         tvx_FILE = (AppMain.TVX_FILE)AppMain.gm_gmk_land_3_obj_tvx_list.buf[( int )tvx_index];
     }
     AppMain.GMS_TVX_EX_WORK gms_TVX_EX_WORK = default(AppMain.GMS_TVX_EX_WORK);
     gms_TVX_EX_WORK.u_wrap  = 1;
     gms_TVX_EX_WORK.v_wrap  = 1;
     gms_TVX_EX_WORK.coord.u = uv.u;
     gms_TVX_EX_WORK.coord.v = uv.v;
     gms_TVX_EX_WORK.color   = uint.MaxValue;
     AppMain.GmTvxSetModelEx(tvx_FILE, texlist, ref pos, ref scale, disp_flag, dir_z, ref gms_TVX_EX_WORK);
 }