fix warnings produced by starfield additions

This commit is contained in:
Stephen Birarda 2013-04-10 12:10:03 -07:00
parent ec520752f1
commit de358d4bf6
3 changed files with 5 additions and 5 deletions

View file

@ -99,8 +99,8 @@ namespace starfield {
_valLodOveralloc(1.2),
_valLodNalloc(0),
_valLodNrender(0),
_valLodBrightness(0),
_valLodAllocBrightness(0),
_valLodBrightness(0),
_ptrRenderer(0l) {
}

View file

@ -50,8 +50,8 @@ namespace starfield {
return false;
}
fprintf(stderr, "Stars.cpp: read %d stars, rendering %d\n",
_valRecordsRead, _ptrVertices->size());
fprintf(stderr, "Stars.cpp: read %d stars, rendering %ld\n",
_valRecordsRead, _ptrVertices->size());
return true;
}

View file

@ -26,8 +26,8 @@ namespace starfield {
InputVertex(float azimuth, float altitude, unsigned color) {
_valColor = color >> 16 & 0xffu | color & 0xff00u |
color << 16 & 0xff0000u | 0xff000000u;
_valColor = (color >> 16 & 0xffu) | (color & 0xff00u) |
(color << 16 & 0xff0000u) | 0xff000000u;
azimuth = angleConvert<Degrees,Radians>(azimuth);
altitude = angleConvert<Degrees,Radians>(altitude);