diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 18:28:39 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 18:28:39 +0200 |
| commit | a34c49f103c8950a57687ea3d866c244d95b4414 (patch) | |
| tree | ff268f4a7f52769a252443d6f2822c9814e3bb1c /src/platform/opengl/texture.cpp | |
| parent | 06398a7a176e123506de6e8851866a8bec0b3427 (diff) | |
[docs]: added a few comments cause i wont be able to read this in a week's time
Diffstat (limited to 'src/platform/opengl/texture.cpp')
| -rw-r--r-- | src/platform/opengl/texture.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/platform/opengl/texture.cpp b/src/platform/opengl/texture.cpp index 12e07f1..d2d2233 100644 --- a/src/platform/opengl/texture.cpp +++ b/src/platform/opengl/texture.cpp @@ -11,10 +11,10 @@ #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> -// NOTE: This file targets OpenGL 4.1 (the maximum macOS exposes). It uses the +// this file targets OpenGL 4.1 (the maximum macOS exposes). it uses the // classic bind-based texture API rather than 4.5 Direct State Access // (glCreateTextures / glTextureStorage2D / glTextureParameteri / glBindTextureUnit), -// none of which exist on macOS. It also hosts the single STB_IMAGE_IMPLEMENTATION +// none of which exist on macOS. it also hosts the single STB_IMAGE_IMPLEMENTATION // for the whole build (the Vulkan backend links stbi_loadf from here too). namespace Donut @@ -84,7 +84,7 @@ namespace Donut auto Texture2D::bind_as_image(uint32_t slot, bool read_only) const -> void { - // Image load/store is OpenGL 4.2 and unavailable on macOS. Guard the + // image load/store is OpenGL 4.2 and unavailable on macOS. guard the // function pointer so this degrades to a no-op instead of crashing. if (glBindImageTexture == nullptr) return; @@ -148,12 +148,12 @@ namespace Donut DONUT_ERROR("Failed to load HDRI: {}", path); float default_sky[6 * 4] = { - 0.5f, 0.7f, 1.0f, 1.0f, // Right - 0.5f, 0.7f, 1.0f, 1.0f, // Left - 0.5f, 0.7f, 1.0f, 1.0f, // Top - 0.5f, 0.7f, 1.0f, 1.0f, // Bottom - 0.5f, 0.7f, 1.0f, 1.0f, // Front - 0.5f, 0.7f, 1.0f, 1.0f // Back + 0.5f, 0.7f, 1.0f, 1.0f, // right + 0.5f, 0.7f, 1.0f, 1.0f, // left + 0.5f, 0.7f, 1.0f, 1.0f, // top + 0.5f, 0.7f, 1.0f, 1.0f, // bottom + 0.5f, 0.7f, 1.0f, 1.0f, // front + 0.5f, 0.7f, 1.0f, 1.0f // back }; glBindTexture(GL_TEXTURE_CUBE_MAP, m_renderer_id); |
