@@ -88,7 +88,7 @@
Loading
88 88
89 89
    /* Set defaults in OpenGL ES (for desktop they are set in shader code itself) */
90 90
    #ifdef MAGNUM_TARGET_GLES
91 -
    setTransformationProjectionMatrix(MatrixTypeFor<dimensions, Float>{});
91 +
    setTransformationProjectionMatrix(MatrixTypeFor<dimensions, Float>{Math::IdentityInit});
92 92
    #endif
93 93
}
94 94

@@ -104,8 +104,9 @@
Loading
104 104
105 105
    /* Set defaults in OpenGL ES (for desktop they are set in shader code itself) */
106 106
    #ifdef MAGNUM_TARGET_GLES
107 -
    setTransformationProjectionMatrix({});
108 -
    if(flags & Flag::TextureTransformation) setTextureMatrix({});
107 +
    setTransformationProjectionMatrix(MatrixTypeFor<dimensions, Float>{Math::IdentityInit});
108 +
    if(flags & Flag::TextureTransformation)
109 +
        setTextureMatrix(Matrix3{Math::IdentityInit});
109 110
    setColor(Color4{1.0f}); /* Outline color is zero by default */
110 111
    setOutlineRange(0.5f, 1.0f);
111 112
    setSmoothness(0.04f);

@@ -142,8 +142,9 @@
Loading
142 142
143 143
    /* Set defaults in OpenGL ES (for desktop they are set in shader code itself) */
144 144
    #ifdef MAGNUM_TARGET_GLES
145 -
    setTransformationProjectionMatrix({});
146 -
    if(flags & Flag::TextureTransformation) setTextureMatrix({});
145 +
    setTransformationProjectionMatrix(MatrixTypeFor<dimensions, Float>{Math::IdentityInit});
146 +
    if(flags & Flag::TextureTransformation)
147 +
        setTextureMatrix(Matrix3{Math::IdentityInit});
147 148
    setColor(Magnum::Color4{1.0f});
148 149
    if(flags & Flag::AlphaMask) setAlphaMask(0.5f);
149 150
    /* Object ID is zero by default */

@@ -101,8 +101,9 @@
Loading
101 101
102 102
    /* Set defaults in OpenGL ES (for desktop they are set in shader code itself) */
103 103
    #ifdef MAGNUM_TARGET_GLES
104 -
    setTransformationProjectionMatrix({});
105 -
    if(flags & Flag::TextureTransformation) setTextureMatrix({});
104 +
    setTransformationProjectionMatrix(MatrixTypeFor<dimensions, Float>{Math::IdentityInit});
105 +
    if(flags & Flag::TextureTransformation)
106 +
        setTextureMatrix(Matrix3{Math::IdentityInit});
106 107
    setColor(Color4{1.0f}); /* Background color is zero by default */
107 108
    #endif
108 109
}

@@ -294,7 +294,7 @@
Loading
294 294
295 295
    /* Set defaults in OpenGL ES (for desktop they are set in shader code itself) */
296 296
    #ifdef MAGNUM_TARGET_GLES
297 -
    setTransformationProjectionMatrix({});
297 +
    setTransformationProjectionMatrix(Matrix3{Math::IdentityInit});
298 298
    if(flags & (Flag::Wireframe
299 299
        #ifndef MAGNUM_TARGET_GLES2
300 300
        |Flag::InstancedObjectId|Flag::VertexId|Flag::PrimitiveIdFromVertexId
@@ -513,8 +513,8 @@
Loading
513 513
514 514
    /* Set defaults in OpenGL ES (for desktop they are set in shader code itself) */
515 515
    #ifdef MAGNUM_TARGET_GLES
516 -
    setTransformationMatrix({});
517 -
    setProjectionMatrix({});
516 +
    setTransformationMatrix(Matrix4{Math::IdentityInit});
517 +
    setProjectionMatrix(Matrix4{Math::IdentityInit});
518 518
    if(flags & (Flag::Wireframe
519 519
        #ifndef MAGNUM_TARGET_GLES2
520 520
        |Flag::InstancedObjectId|Flag::VertexId|Flag::PrimitiveIdFromVertexId
@@ -539,7 +539,7 @@
Loading
539 539
    #endif
540 540
    #if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL)
541 541
    if(flags & (Flag::TangentDirection|Flag::BitangentFromTangentDirection|Flag::BitangentDirection|Flag::NormalDirection)) {
542 -
        setNormalMatrix({});
542 +
        setNormalMatrix(Matrix3x3{Math::IdentityInit});
543 543
        setLineWidth(1.0f);
544 544
        setLineLength(1.0f);
545 545
    }

@@ -252,8 +252,8 @@
Loading
252 252
    /* Default to fully opaque white so we can see the textures */
253 253
    if(flags & Flag::AmbientTexture) setAmbientColor(Magnum::Color4{1.0f});
254 254
    else setAmbientColor(Magnum::Color4{0.0f});
255 -
    setTransformationMatrix({});
256 -
    setProjectionMatrix({});
255 +
    setTransformationMatrix(Matrix4{Math::IdentityInit});
256 +
    setProjectionMatrix(Matrix4{Math::IdentityInit});
257 257
    if(lightCount) {
258 258
        setDiffuseColor(Magnum::Color4{1.0f});
259 259
        setSpecularColor(Magnum::Color4{1.0f, 0.0f});
@@ -266,9 +266,10 @@
Loading
266 266
        setLightSpecularColors(colors);
267 267
        setLightRanges(Containers::Array<Float>{Containers::DirectInit, lightCount, Constants::inf()});
268 268
        /* Light position is zero by default */
269 -
        setNormalMatrix({});
269 +
        setNormalMatrix(Matrix3x3{Math::IdentityInit});
270 270
    }
271 -
    if(flags & Flag::TextureTransformation) setTextureMatrix({});
271 +
    if(flags & Flag::TextureTransformation)
272 +
        setTextureMatrix(Matrix3{Math::IdentityInit});
272 273
    if(flags & Flag::AlphaMask) setAlphaMask(0.5f);
273 274
    /* Object ID is zero by default */
274 275
    #endif
Files Coverage
src 76.92%
Project Totals (410 files) 76.92%
3088.5
TRAVIS_OS_NAME=linux
3088.1
TRAVIS_OS_NAME=linux
3088.7
TRAVIS_OS_NAME=linux
3088.6
TRAVIS_OS_NAME=linux
3088.8
TRAVIS_OS_NAME=linux
3088.9
TRAVIS_OS_NAME=osx
38adk3optsa33o8e
3088.10
TRAVIS_OS_NAME=osx

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading