comparison Render.cpp @ 142:8b8fd4d83fdc

Various things here and there
author Nomad
date Tue, 12 Feb 2013 06:28:08 +0200
parents f4d7a9a8c363
children b099dd069171
comparison
equal deleted inserted replaced
141:cca78efb377e 142:8b8fd4d83fdc
2936 2936
2937 2937
2938 //----- (0047BACF) -------------------------------------------------------- 2938 //----- (0047BACF) --------------------------------------------------------
2939 void Render::TransformBillboardsAndSetPalettesODM() 2939 void Render::TransformBillboardsAndSetPalettesODM()
2940 { 2940 {
2941 int v0; // edi@1 2941 //int v0; // edi@1
2942 char *v1; // esi@2 2942 //char *v1; // esi@2
2943 unsigned int v2; // edx@3 2943 unsigned int v2; // edx@3
2944 int v3; // eax@3 2944 int v3; // eax@3
2945 int v4; // edi@3 2945 int v4; // edi@3
2946 int v5; // eax@3 2946 int v5; // eax@3
2947 __int16 v6; // di@3 2947 __int16 v6; // di@3
2952 DWORD v11; // eax@13 2952 DWORD v11; // eax@13
2953 int v12; // eax@13 2953 int v12; // eax@13
2954 int v13; // eax@14 2954 int v13; // eax@14
2955 RenderBillboardTransform_local0 billboard; // [sp+4h] [bp-60h]@1 2955 RenderBillboardTransform_local0 billboard; // [sp+4h] [bp-60h]@1
2956 int v15; // [sp+54h] [bp-10h]@13 2956 int v15; // [sp+54h] [bp-10h]@13
2957 int v16; // [sp+58h] [bp-Ch]@1 2957 //int v16; // [sp+58h] [bp-Ch]@1
2958 int v17; // [sp+5Ch] [bp-8h]@2 2958 int v17; // [sp+5Ch] [bp-8h]@2
2959 int v18; // [sp+60h] [bp-4h]@13 2959 int v18; // [sp+60h] [bp-4h]@13
2960 2960
2961 billboard.uParentBillboardID = -1; 2961 billboard.uParentBillboardID = -1;
2962 billboard.pTarget = pRenderer->pTargetSurface; 2962 billboard.pTarget = pRenderer->pTargetSurface;
2964 billboard.uTargetPitch = pRenderer->uTargetSurfacePitch; 2964 billboard.uTargetPitch = pRenderer->uTargetSurfacePitch;
2965 billboard.uViewportX = pViewport->uViewportX; 2965 billboard.uViewportX = pViewport->uViewportX;
2966 billboard.uViewportY = pViewport->uViewportY; 2966 billboard.uViewportY = pViewport->uViewportY;
2967 billboard.uViewportZ = pViewport->uViewportZ - 1; 2967 billboard.uViewportZ = pViewport->uViewportZ - 1;
2968 billboard.uViewportW = pViewport->uViewportW; 2968 billboard.uViewportW = pViewport->uViewportW;
2969 v0 = 0; 2969 //v0 = 0;
2970 pOutdoorCamera->uNumBillboards = uNumBillboardsToDraw; 2970 pOutdoorCamera->uNumBillboards = uNumBillboardsToDraw;
2971 v16 = 0; 2971
2972 if ( (signed int)uNumBillboardsToDraw > 0 ) 2972 //v16 = 0;
2973 for (int i = 0; i < uNumBillboardsToDraw; ++i)
2973 { 2974 {
2974 v17 = 0; 2975 v17 = 0;
2975 v1 = (char *)&pBillboardRenderList[0].uScreenSpaceY; 2976 v1 = (char *)&pBillboardRenderList[0].uScreenSpaceY;
2976 do 2977 //do
2977 { 2978 //{
2978 billboard.uScreenSpaceX = *((short *)v1 - 1); 2979 billboard.uScreenSpaceX = *((short *)v1 - 1);
2979 v2 = *((short *)v1 - 5); 2980 v2 = *((short *)v1 - 5);
2980 billboard.uScreenSpaceY = *(short *)v1; 2981 billboard.uScreenSpaceY = *(short *)v1;
2981 v3 = *((int *)v1 - 10); 2982 v3 = *((int *)v1 - 10);
2982 billboard.uParentBillboardID = v0; 2983 billboard.uParentBillboardID = i;
2983 v4 = *((int *)v1 + 1); 2984 v4 = *((int *)v1 + 1);
2984 billboard.field_10 = v3; 2985 billboard.field_10 = v3;
2985 v5 = *((int *)v1 - 9); 2986 v5 = *((int *)v1 - 9);
2986 billboard.uTintColor = v4; 2987 billboard.uTintColor = v4;
2987 v6 = *((short *)v1 - 8); 2988 v6 = *((short *)v1 - 8);
3020 if ( v13 >= 0 ) 3021 if ( v13 >= 0 )
3021 pSprites_LOD->pSpriteHeaders[v13]._4ACC38(&billboard, 1); 3022 pSprites_LOD->pSpriteHeaders[v13]._4ACC38(&billboard, 1);
3022 } 3023 }
3023 } 3024 }
3024 v17 += 5; 3025 v17 += 5;
3025 v0 = v16 + 1; 3026 //v0 = v16 + 1;
3026 v1 += 52; 3027 v1 += 52;
3027 ++v16; 3028 //++v16;
3028 } 3029 //}
3029 while ( v16 < (signed int)uNumBillboardsToDraw ); 3030 //while ( v16 < (signed int)uNumBillboardsToDraw );
3030 } 3031 }
3031 } 3032 }
3032 3033
3033 3034
3034 //----- (0047AF11) -------------------------------------------------------- 3035 //----- (0047AF11) --------------------------------------------------------