// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // FogTest.cpp: Tests basic usage of glFog. #include "test_utils/ANGLETest.h" #include "test_utils/gl_raii.h" #include "util/random_utils.h" #include <stdint.h> usingnamespaceangle; class FogTest : public ANGLETest<> { … }; // Initial state check. TEST_P(FogTest, InitialState) { … } // Negative test for parameter names. TEST_P(FogTest, NegativeParameter) { … } // Negative test for parameter values. TEST_P(FogTest, NegativeValues) { … } // Checks that fog state can be set. TEST_P(FogTest, Set) { … } class FogBlendTest : public ANGLETest<> { … }; // Draws a circle with a shadow effect using fog and blending. As seen in Street Fighter IV. TEST_P(FogBlendTest, ShadowEffect) { … } ANGLE_INSTANTIATE_TEST_ES1(…); ANGLE_INSTANTIATE_TEST_ES1(…);