diff --git a/src/1.getting_started/4.1.textures/textures.cpp b/src/1.getting_started/4.1.textures/textures.cpp index 295b766..5ce07ad 100644 --- a/src/1.getting_started/4.1.textures/textures.cpp +++ b/src/1.getting_started/4.1.textures/textures.cpp @@ -98,6 +98,7 @@ int main() glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // load image, create texture and generate mipmaps int width, height, nrChannels; + // The FileSystem::getPath(...) is part of the GitHub repository so we can find files on any IDE/platform; replace it with your own image path. unsigned char *data = stbi_load(FileSystem::getPath("resources/textures/container.jpg").c_str(), &width, &height, &nrChannels, 0); if (data) { diff --git a/src/1.getting_started/4.2.textures_combined/textures_combined.cpp b/src/1.getting_started/4.2.textures_combined/textures_combined.cpp index 3a04a3e..81bbe69 100644 --- a/src/1.getting_started/4.2.textures_combined/textures_combined.cpp +++ b/src/1.getting_started/4.2.textures_combined/textures_combined.cpp @@ -101,6 +101,7 @@ int main() // load image, create texture and generate mipmaps int width, height, nrChannels; stbi_set_flip_vertically_on_load(true); // tell stb_image.h to flip loaded texture's on the y-axis. + // The FileSystem::getPath(...) is part of the GitHub repository so we can find files on any IDE/platform; replace it with your own image path. unsigned char *data = stbi_load(FileSystem::getPath("resources/textures/container.jpg").c_str(), &width, &height, &nrChannels, 0); if (data) { diff --git a/src/1.getting_started/4.3.textures_exercise2/textures_exercise2.cpp b/src/1.getting_started/4.3.textures_exercise2/textures_exercise2.cpp index d4a5d2a..a7e6c21 100644 --- a/src/1.getting_started/4.3.textures_exercise2/textures_exercise2.cpp +++ b/src/1.getting_started/4.3.textures_exercise2/textures_exercise2.cpp @@ -101,6 +101,7 @@ int main() // load image, create texture and generate mipmaps int width, height, nrChannels; stbi_set_flip_vertically_on_load(true); // tell stb_image.h to flip loaded texture's on the y-axis. + // The FileSystem::getPath(...) is part of the GitHub repository so we can find files on any IDE/platform; replace it with your own image path. unsigned char *data = stbi_load(FileSystem::getPath("resources/textures/container.jpg").c_str(), &width, &height, &nrChannels, 0); if (data) { diff --git a/src/1.getting_started/4.4.textures_exercise3/textures_exercise3.cpp b/src/1.getting_started/4.4.textures_exercise3/textures_exercise3.cpp index 53aeb85..cd971f8 100644 --- a/src/1.getting_started/4.4.textures_exercise3/textures_exercise3.cpp +++ b/src/1.getting_started/4.4.textures_exercise3/textures_exercise3.cpp @@ -101,6 +101,7 @@ int main() // load image, create texture and generate mipmaps int width, height, nrChannels; stbi_set_flip_vertically_on_load(true); // tell stb_image.h to flip loaded texture's on the y-axis. + // The FileSystem::getPath(...) is part of the GitHub repository so we can find files on any IDE/platform; replace it with your own image path. unsigned char *data = stbi_load(FileSystem::getPath("resources/textures/container.jpg").c_str(), &width, &height, &nrChannels, 0); if (data) { diff --git a/src/1.getting_started/4.5.textures_exercise4/textures_exercise4.cpp b/src/1.getting_started/4.5.textures_exercise4/textures_exercise4.cpp index 9359e85..af1708a 100644 --- a/src/1.getting_started/4.5.textures_exercise4/textures_exercise4.cpp +++ b/src/1.getting_started/4.5.textures_exercise4/textures_exercise4.cpp @@ -105,6 +105,7 @@ int main() // load image, create texture and generate mipmaps int width, height, nrChannels; stbi_set_flip_vertically_on_load(true); // tell stb_image.h to flip loaded texture's on the y-axis. + // The FileSystem::getPath(...) is part of the GitHub repository so we can find files on any IDE/platform; replace it with your own image path. unsigned char *data = stbi_load(FileSystem::getPath("resources/textures/container.jpg").c_str(), &width, &height, &nrChannels, 0); if (data) {