Changeset 953 for GTP/trunk/Lib/Illum/GPUObscurancesGT/src/MyFrame.cpp
- Timestamp:
- 05/12/06 16:00:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/GPUObscurancesGT/src/MyFrame.cpp
r930 r953 226 226 float r_float; 227 227 228 i = 0; 229 j = 0; 230 while (i < (res * res * 4)) 228 for (i = 0, j = 0; i < (res * res * 4); i += 4, j += 3) 231 229 { 232 230 r_float = ObscuranceMap[i] * 255; … … 236 234 r_float = ObscuranceMap[i+2] * 255; 237 235 bmp[j + 2] = uchar(r_float); 238 239 j += 3;240 i += 4;241 236 } 242 237
Note: See TracChangeset
for help on using the changeset viewer.