551 for (const Configuration::Texture& tex : cfg.textures) { |
552 for (const Configuration::Texture& tex : cfg.textures) { |
552 std::shared_ptr<ImageLoader::ImageBuffer> |
553 std::shared_ptr<ImageLoader::ImageBuffer> |
553 img(imageLoader.loadImage(MappedFile(tex.fileName))); |
554 img(imageLoader.loadImage(MappedFile(tex.fileName))); |
554 textures.push_back(std::make_shared<Texture>( |
555 textures.push_back(std::make_shared<Texture>( |
555 img->width, img->height, *img, tex.fileName)); |
556 img->width, img->height, *img, tex.fileName)); |
|
557 // static const uint32_t watchMask = IN_CLOSE_WRITE | IN_ATTRIB; |
|
558 // watchedFiles.push_back(fileMonitor.watch(tex.fileName, watchMask)); |
556 watchedFiles.push_back(fileMonitor.watch(tex.fileName)); |
559 watchedFiles.push_back(fileMonitor.watch(tex.fileName)); |
557 // TODO: review texture loading and binding |
560 // TODO: review texture loading and binding |
558 // works even without this - default texture |
561 // works even without this - default texture |
559 // glUniform1i(ProgAttr.jazz, jazz); |
562 // glUniform1i(ProgAttr.jazz, jazz); |
560 // checkError(&std::cerr); |
563 // checkError(&std::cerr); |