// // Copyright (c) 2016 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. // // Color.h : Defines the Color type used throughout the ANGLE libraries #ifndef COMMON_COLOR_H_ #define COMMON_COLOR_H_ namespace angle { template struct Color { T red; T green; T blue; T alpha; Color(); Color(T r, T g, T b, T a); }; template bool operator==(const Color &a, const Color &b); template bool operator!=(const Color &a, const Color &b); typedef Color ColorF; typedef Color ColorI; typedef Color ColorUI; } // namespace angle // TODO: Move this fully into the angle namespace namespace gl { template using Color = angle::Color; using ColorF = angle::ColorF; using ColorI = angle::ColorI; using ColorUI = angle::ColorUI; } // namespace gl #include "Color.inl" #endif // COMMON_COLOR_H_