| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> | 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual bool setX(float) OVERRIDE; | 43 virtual bool setX(float) OVERRIDE; |
| 44 virtual bool setY(float) OVERRIDE; | 44 virtual bool setY(float) OVERRIDE; |
| 45 virtual bool setZ(float) OVERRIDE; | 45 virtual bool setZ(float) OVERRIDE; |
| 46 virtual bool setPointsAtX(float) OVERRIDE; | 46 virtual bool setPointsAtX(float) OVERRIDE; |
| 47 virtual bool setPointsAtY(float) OVERRIDE; | 47 virtual bool setPointsAtY(float) OVERRIDE; |
| 48 virtual bool setPointsAtZ(float) OVERRIDE; | 48 virtual bool setPointsAtZ(float) OVERRIDE; |
| 49 | 49 |
| 50 virtual bool setSpecularExponent(float) OVERRIDE; | 50 virtual bool setSpecularExponent(float) OVERRIDE; |
| 51 virtual bool setLimitingConeAngle(float) OVERRIDE; | 51 virtual bool setLimitingConeAngle(float) OVERRIDE; |
| 52 | 52 |
| 53 virtual void initPaintingData(PaintingData&) OVERRIDE; | 53 virtual void initPaintingData(PaintingData&) const OVERRIDE; |
| 54 virtual void updatePaintingData(PaintingData&, int x, int y, float z) OVERRI
DE; | 54 virtual void updatePaintingData(PaintingData&, int x, int y, float z) const
OVERRIDE; |
| 55 | 55 |
| 56 virtual TextStream& externalRepresentation(TextStream&) const OVERRIDE; | 56 virtual TextStream& externalRepresentation(TextStream&) const OVERRIDE; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 SpotLightSource(const FloatPoint3D& position, const FloatPoint3D& direction, | 59 SpotLightSource(const FloatPoint3D& position, const FloatPoint3D& direction, |
| 60 float specularExponent, float limitingConeAngle) | 60 float specularExponent, float limitingConeAngle) |
| 61 : LightSource(LS_SPOT) | 61 : LightSource(LS_SPOT) |
| 62 , m_position(position) | 62 , m_position(position) |
| 63 , m_direction(direction) | 63 , m_direction(direction) |
| 64 , m_specularExponent(specularExponent) | 64 , m_specularExponent(specularExponent) |
| 65 , m_limitingConeAngle(limitingConeAngle) | 65 , m_limitingConeAngle(limitingConeAngle) |
| 66 { | 66 { |
| 67 } | 67 } |
| 68 | 68 |
| 69 FloatPoint3D m_position; | 69 FloatPoint3D m_position; |
| 70 FloatPoint3D m_direction; | 70 FloatPoint3D m_direction; |
| 71 | 71 |
| 72 float m_specularExponent; | 72 float m_specularExponent; |
| 73 float m_limitingConeAngle; | 73 float m_limitingConeAngle; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace WebCore | 76 } // namespace WebCore |
| 77 | 77 |
| 78 #endif // SpotLightSource_h | 78 #endif // SpotLightSource_h |
| OLD | NEW |