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 29 matching lines...) Expand all Loading... |
40 FloatPoint3D position(m_position.x() * scale.x() - offset.width(), m_pos
ition.y() * scale.y() - offset.height(), m_position.z() * scale.z()); | 40 FloatPoint3D position(m_position.x() * scale.x() - offset.width(), m_pos
ition.y() * scale.y() - offset.height(), m_position.z() * scale.z()); |
41 FloatPoint3D direction(m_direction.x() * scale.x() - offset.width(), m_d
irection.y() * scale.y() - offset.height(), m_direction.z() * scale.z()); | 41 FloatPoint3D direction(m_direction.x() * scale.x() - offset.width(), m_d
irection.y() * scale.y() - offset.height(), m_direction.z() * scale.z()); |
42 return adoptRef(new SpotLightSource(position, direction, m_specularExpon
ent, m_limitingConeAngle)); | 42 return adoptRef(new SpotLightSource(position, direction, m_specularExpon
ent, m_limitingConeAngle)); |
43 } | 43 } |
44 | 44 |
45 const FloatPoint3D& position() const { return m_position; } | 45 const FloatPoint3D& position() const { return m_position; } |
46 const FloatPoint3D& direction() const { return m_direction; } | 46 const FloatPoint3D& direction() const { return m_direction; } |
47 float specularExponent() const { return m_specularExponent; } | 47 float specularExponent() const { return m_specularExponent; } |
48 float limitingConeAngle() const { return m_limitingConeAngle; } | 48 float limitingConeAngle() const { return m_limitingConeAngle; } |
49 | 49 |
50 virtual bool setX(float) OVERRIDE; | 50 virtual bool setPosition(const FloatPoint3D&) OVERRIDE; |
51 virtual bool setY(float) OVERRIDE; | 51 virtual bool setPointsAt(const FloatPoint3D&) OVERRIDE; |
52 virtual bool setZ(float) OVERRIDE; | |
53 virtual bool setPointsAtX(float) OVERRIDE; | |
54 virtual bool setPointsAtY(float) OVERRIDE; | |
55 virtual bool setPointsAtZ(float) OVERRIDE; | |
56 | 52 |
57 virtual bool setSpecularExponent(float) OVERRIDE; | 53 virtual bool setSpecularExponent(float) OVERRIDE; |
58 virtual bool setLimitingConeAngle(float) OVERRIDE; | 54 virtual bool setLimitingConeAngle(float) OVERRIDE; |
59 | 55 |
60 virtual void initPaintingData(PaintingData&) const OVERRIDE; | 56 virtual void initPaintingData(PaintingData&) const OVERRIDE; |
61 virtual void updatePaintingData(PaintingData&, int x, int y, float z) const
OVERRIDE; | 57 virtual void updatePaintingData(PaintingData&, int x, int y, float z) const
OVERRIDE; |
62 | 58 |
63 virtual TextStream& externalRepresentation(TextStream&) const OVERRIDE; | 59 virtual TextStream& externalRepresentation(TextStream&) const OVERRIDE; |
64 | 60 |
65 private: | 61 private: |
(...skipping 10 matching lines...) Expand all Loading... |
76 FloatPoint3D m_position; | 72 FloatPoint3D m_position; |
77 FloatPoint3D m_direction; | 73 FloatPoint3D m_direction; |
78 | 74 |
79 float m_specularExponent; | 75 float m_specularExponent; |
80 float m_limitingConeAngle; | 76 float m_limitingConeAngle; |
81 }; | 77 }; |
82 | 78 |
83 } // namespace WebCore | 79 } // namespace WebCore |
84 | 80 |
85 #endif // SpotLightSource_h | 81 #endif // SpotLightSource_h |
OLD | NEW |