mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-15 08:21:23 -06:00
Auto stash before merge of "thesis/2019/spaceweather-stream" and "origin/thesis/2019/spaceweather-stream"
This commit is contained in:
@@ -53,8 +53,9 @@ SunTextureManager::SunTextureManager(){
|
||||
if(_counter == 200){ // first time
|
||||
std::string next = checkNextTextureId(current, 1);
|
||||
if(next != "Not found!"){
|
||||
startDownloadTexture(next);
|
||||
uploadTextureFromName(next);
|
||||
// startDownloadTexture(next);
|
||||
// uploadTextureFromName(next);
|
||||
startUploadTextures();
|
||||
}
|
||||
}
|
||||
// check if there's a texture for the current timestamp (minute)
|
||||
@@ -81,6 +82,7 @@ SunTextureManager::SunTextureManager(){
|
||||
}
|
||||
}
|
||||
_counter++;
|
||||
|
||||
}
|
||||
|
||||
// not using this right now
|
||||
@@ -178,6 +180,7 @@ SunTextureManager::SunTextureManager(){
|
||||
//LERROR("laddar upp texture till GPU med id: " + dateID);
|
||||
|
||||
auto textureFits = std::make_unique<ghoul::opengl::Texture>(fitsImage.data(), glm::vec3(360, 180, 1),ghoul::opengl::Texture::Format::Red, GL_R32F,GL_FLOAT);
|
||||
textureFits->setDataOwnership(ghoul::opengl::Texture::TakeOwnership::No);
|
||||
textureFits->uploadTexture();
|
||||
textureFits->setName(dateID);
|
||||
_textureQueueGPU.push(dateID);
|
||||
@@ -235,5 +238,6 @@ SunTextureManager::SunTextureManager(){
|
||||
_textureListGPU.erase(dateId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user