Commit Graph

8 Commits

Author SHA1 Message Date
Eliza
a6c9922d33 internal: fix some editor indentation rules (#9289)
* internal: fix some editor indentation rules

* internal: update CODE_STYLE.md
2025-10-03 11:38:01 -07:00
Mathias Agopian
7c6463d01a update the documentation regarding STL usage (#8358)
* update the documentation regarding STL usage

* Update CODE_STYLE.md

Co-authored-by: Powei Feng <powei@google.com>

---------

Co-authored-by: Powei Feng <powei@google.com>
2025-01-16 16:23:01 -08:00
Mathias Agopian
5b71274fa5 get rid of utils::StaticString
In most places this is simply replaced by `std::string_view`.

We also change a few internal/private headers so they accept 
`std::string_view` instead of `utils::CString`.
2022-08-02 09:51:13 -07:00
heitaoflower
fbcdcc24af Modify incorrect static format (#979) 2019-03-14 07:38:32 -07:00
Philip Rideout
18bff7ef5e Repair generateMipmaps for cubemaps.
This functionality regressed when we replaced the OpenGL implementation
with our own.

I proved both the regression and the fix by running suzanne with the
following hacks.

```
--- a/libs/image/include/image/KtxUtility.h
+++ b/libs/image/include/image/KtxUtility.h
@@ -129,8 +129,9 @@ namespace KtxUtility {
             for (uint32_t level = 0; level < nmips; ++level) {
                 ktx.getBlob({level, 0, 0}, &data, &size);
                 PixelBufferDescriptor pbd(data, size * 6, dataformat, datatype, cb, cbuser);
-                texture->setImage(*engine, level, std::move(pbd), Texture::FaceOffsets(size));
+                if (level == 0) texture->setImage(*engine, level, std::move(pbd), Texture::FaceOffsets(size));
             }
+            texture->generateMipmaps(*engine);
             return texture;
         }

--- a/samples/app/IBL.cpp
+++ b/samples/app/IBL.cpp
@@ -54,7 +54,7 @@ IBL::~IBL() {
 bool IBL::loadFromKtx(const std::string& prefix) {
     // First check for compressed variants of the environment.
     Path iblPath(prefix + "_ibl_s3tc.ktx");
-    if (!iblPath.exists()) {
+    if (true || !iblPath.exists()) {
```
2019-01-31 13:57:30 -08:00
Philip Rideout
30092dc12b Add style guidelines for strings.
This also adds the std:: qualifier to resgen (see also PR #356)
2018-11-27 09:05:57 -08:00
Mathias Agopian
4302d9dcc3 reduce our dependency to the STL in public headers 2018-10-03 20:13:17 -07:00
Romain Guy
b3d758f3b3 Initial commit 2018-08-03 10:38:22 -07:00