Add buildall.bat script for Windows. Also various example build fixes for Windows

This commit is contained in:
Matt Pharr
2011-10-04 11:41:13 -07:00
parent e4d224a0f1
commit 9b7f55a28e
4 changed files with 22 additions and 9 deletions

View File

@@ -36,9 +36,6 @@
#include <algorithm>
// Just enough of a float3 class to do what we need in this file.
#ifdef _MSC_VER
__declspec(align(16))
#endif
struct float3 {
float3() { }
float3(float xx, float yy, float zz) { x = xx; y = yy; z = zz; }
@@ -298,7 +295,7 @@ volume_serial(float density[], int nVoxels[3], const float raster2camera[4][4],
for (int y = 0; y < height; ++y) {
for (int x = 0; x < width; ++x, ++offset) {
Ray ray;
generateRay(raster2camera, camera2world, x, y, ray);
generateRay(raster2camera, camera2world, (float)x, (float)y, ray);
image[offset] = raymarch(density, nVoxels, ray);
}
}