am 33f8133b: Merge "RS API cleanup for SDK. Update apps to final APIs. bug 3421901" into honeycomb
* commit '33f8133b20c39b41bd5ff8863f98bd72aa6e016c': RS API cleanup for SDK. Update apps to final APIs. bug 3421901
This commit is contained in:
@@ -298,7 +298,7 @@ static void drawFrontGrid(float rowOffset, float p)
|
|||||||
vpConstants->ImgSize.y = rsAllocationGetDimY(gSelectedIconTexture);
|
vpConstants->ImgSize.y = rsAllocationGetDimY(gSelectedIconTexture);
|
||||||
vpConstants->Position.y = y - (rsAllocationGetDimY(gSelectedIconTexture)
|
vpConstants->Position.y = y - (rsAllocationGetDimY(gSelectedIconTexture)
|
||||||
- rsAllocationGetDimY(gIcons[iconNum])) * 0.5f;
|
- rsAllocationGetDimY(gIcons[iconNum])) * 0.5f;
|
||||||
rsAllocationMarkDirty(g_VPConstAlloc);
|
rsgAllocationSyncAll(g_VPConstAlloc);
|
||||||
rsgDrawMesh(gSMCell);
|
rsgDrawMesh(gSMCell);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ static void drawFrontGrid(float rowOffset, float p)
|
|||||||
vpConstants->ImgSize.x = rsAllocationGetDimX(gIcons[iconNum]);
|
vpConstants->ImgSize.x = rsAllocationGetDimX(gIcons[iconNum]);
|
||||||
vpConstants->ImgSize.y = rsAllocationGetDimY(gIcons[iconNum]);
|
vpConstants->ImgSize.y = rsAllocationGetDimY(gIcons[iconNum]);
|
||||||
vpConstants->Position.y = y - 0.2f;
|
vpConstants->Position.y = y - 0.2f;
|
||||||
rsAllocationMarkDirty(g_VPConstAlloc);
|
rsgAllocationSyncAll(g_VPConstAlloc);
|
||||||
rsgBindTexture(gPFTexMip, 0, gIcons[iconNum]);
|
rsgBindTexture(gPFTexMip, 0, gIcons[iconNum]);
|
||||||
rsgDrawMesh(gSMCell);
|
rsgDrawMesh(gSMCell);
|
||||||
|
|
||||||
@@ -314,7 +314,7 @@ static void drawFrontGrid(float rowOffset, float p)
|
|||||||
vpConstants->ImgSize.x = rsAllocationGetDimX(gLabels[iconNum]);
|
vpConstants->ImgSize.x = rsAllocationGetDimX(gLabels[iconNum]);
|
||||||
vpConstants->ImgSize.y = rsAllocationGetDimY(gLabels[iconNum]);
|
vpConstants->ImgSize.y = rsAllocationGetDimY(gLabels[iconNum]);
|
||||||
vpConstants->Position.y = y - 64.f - 0.2f;
|
vpConstants->Position.y = y - 64.f - 0.2f;
|
||||||
rsAllocationMarkDirty(g_VPConstAlloc);
|
rsgAllocationSyncAll(g_VPConstAlloc);
|
||||||
rsgBindTexture(gPFTexMipAlpha, 0, gLabels[iconNum]);
|
rsgBindTexture(gPFTexMipAlpha, 0, gLabels[iconNum]);
|
||||||
rsgDrawMesh(gSMCell);
|
rsgDrawMesh(gSMCell);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user