Remove warnings about unused results.

Change-Id: I53004b4452c5e1ac6ff0dab8430de7f73e8a99b9
This commit is contained in:
Stephen Hines
2011-12-06 16:48:43 -08:00
parent 4d322043ab
commit d53333cc21
2 changed files with 20 additions and 4 deletions

View File

@@ -48,6 +48,14 @@ static float gZoom;
static float gLastX;
static float gLastY;
static float3 toFloat3(float x, float y, float z) {
float3 f;
f.x = x;
f.y = y;
f.z = z;
return f;
}
void onActionDown(float x, float y) {
gLastX = x;
gLastY = y;
@@ -104,8 +112,8 @@ void updateMeshInfo() {
rsgMeshComputeBoundingBox(info->mMesh,
&minX, &minY, &minZ,
&maxX, &maxY, &maxZ);
info->bBoxMin = (minX, minY, minZ);
info->bBoxMax = (maxX, maxY, maxZ);
info->bBoxMin = toFloat3(minX, minY, minZ);
info->bBoxMax = toFloat3(maxX, maxY, maxZ);
gLookAt += (info->bBoxMin + info->bBoxMax)*0.5f;
}
gLookAt = gLookAt / (float)size;

View File

@@ -57,6 +57,14 @@ static float gZoom;
static float gLastX;
static float gLastY;
static float3 toFloat3(float x, float y, float z) {
float3 f;
f.x = x;
f.y = y;
f.z = z;
return f;
}
void onActionDown(float x, float y) {
gLastX = x;
gLastY = y;
@@ -112,8 +120,8 @@ void updateMeshInfo() {
rsgMeshComputeBoundingBox(info->mMesh,
&minX, &minY, &minZ,
&maxX, &maxY, &maxZ);
info->bBoxMin = (minX, minY, minZ);
info->bBoxMax = (maxX, maxY, maxZ);
info->bBoxMin = toFloat3(minX, minY, minZ);
info->bBoxMax = toFloat3(maxX, maxY, maxZ);
gLookAt += (info->bBoxMin + info->bBoxMax)*0.5f;
}
gLookAt = gLookAt / (float)size;