mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Move to use postfix increment only
This commit is contained in:
@@ -532,7 +532,7 @@ void GeoJsonComponent::render(const RenderData& data) {
|
||||
};
|
||||
|
||||
// Do two render passes, to properly render opacity of overlaying objects
|
||||
for (int renderPass = 0; renderPass < 2; ++renderPass) {
|
||||
for (int renderPass = 0; renderPass < 2; renderPass++) {
|
||||
for (size_t i = 0; i < _geometryFeatures.size(); i++) {
|
||||
if (_features[i]->enabled && _features[i]->isVisible()) {
|
||||
_geometryFeatures[i].render(
|
||||
|
||||
@@ -597,7 +597,7 @@ std::vector<std::vector<glm::vec3>> GlobeGeometryFeature::createLineGeometry() {
|
||||
);
|
||||
|
||||
// Don't add the first position. Has been added as last in previous step
|
||||
for (size_t si = 1; si < subdividedPositions.size(); ++si) {
|
||||
for (size_t si = 1; si < subdividedPositions.size(); si++) {
|
||||
const geometryhelper::PosHeightPair& pair = subdividedPositions[si];
|
||||
addLinePos(glm::vec3(pair.position));
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ createExtrudedGeometryVertices(const std::vector<std::vector<glm::vec3>>& edgeVe
|
||||
vertices.reserve(nVerts * 3);
|
||||
|
||||
// Extrude polygon
|
||||
for (size_t nBound = 0; nBound < edgeVertices.size(); ++nBound) {
|
||||
for (size_t nBound = 0; nBound < edgeVertices.size(); nBound++) {
|
||||
const std::vector<glm::vec3>& boundary = edgeVertices[nBound];
|
||||
for (size_t i = 1; i < boundary.size(); i++) {
|
||||
const glm::vec3& v0 = boundary[i - 1];
|
||||
@@ -190,7 +190,7 @@ std::vector<PosHeightPair> subdivideLine(const glm::dvec3& v0, const glm::dvec3&
|
||||
positions.push_back({ glm::vec3(v0), h0 });
|
||||
}
|
||||
|
||||
for (int seg = 0; seg < nSegments; ++seg) {
|
||||
for (int seg = 0; seg < nSegments; seg++) {
|
||||
const double t = static_cast<double>(seg) / static_cast<double>(nSegments);
|
||||
|
||||
// Interpolate both position and height value
|
||||
|
||||
@@ -683,12 +683,12 @@ TileMetaData RawTileDataReader::tileMetaData(RawTile& rawTile,
|
||||
std::fill(ppData.hasMissingData.begin(), ppData.hasMissingData.end(), false);
|
||||
|
||||
bool allIsMissing = true;
|
||||
for (int y = 0; y < region.numPixels.y; ++y) {
|
||||
for (int y = 0; y < region.numPixels.y; y++) {
|
||||
const size_t yi =
|
||||
(static_cast<unsigned long long>(region.numPixels.y) - 1 - y) * bytesPerLine;
|
||||
size_t i = 0;
|
||||
for (int x = 0; x < region.numPixels.x; ++x) {
|
||||
for (size_t raster = 0; raster < _initData.nRasters; ++raster) {
|
||||
for (int x = 0; x < region.numPixels.x; x++) {
|
||||
for (size_t raster = 0; raster < _initData.nRasters; raster++) {
|
||||
const float noDataValue = noDataValueAsFloat();
|
||||
const float val = interpretFloat(
|
||||
_initData.glType,
|
||||
|
||||
Reference in New Issue
Block a user