| 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 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> | 6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 public: | 43 public: |
| 44 LightSource(LightType type) | 44 LightSource(LightType type) |
| 45 : m_type(type) | 45 : m_type(type) |
| 46 { } | 46 { } |
| 47 | 47 |
| 48 virtual ~LightSource(); | 48 virtual ~LightSource(); |
| 49 | 49 |
| 50 LightType type() const { return m_type; } | 50 LightType type() const { return m_type; } |
| 51 virtual TextStream& externalRepresentation(TextStream&) const = 0; | 51 virtual TextStream& externalRepresentation(TextStream&) const = 0; |
| 52 | 52 |
| 53 virtual PassRefPtr<LightSource> create(const FloatPoint3D& scale, const Floa
tSize& offset) const = 0; | |
| 54 | |
| 55 virtual bool setAzimuth(float) { return false; } | 53 virtual bool setAzimuth(float) { return false; } |
| 56 virtual bool setElevation(float) { return false; } | 54 virtual bool setElevation(float) { return false; } |
| 57 virtual bool setPosition(const FloatPoint3D&) { return false; } | 55 virtual bool setPosition(const FloatPoint3D&) { return false; } |
| 58 virtual bool setPointsAt(const FloatPoint3D&) { return false; } | 56 virtual bool setPointsAt(const FloatPoint3D&) { return false; } |
| 59 virtual bool setSpecularExponent(float) { return false; } | 57 virtual bool setSpecularExponent(float) { return false; } |
| 60 virtual bool setLimitingConeAngle(float) { return false; } | 58 virtual bool setLimitingConeAngle(float) { return false; } |
| 61 | 59 |
| 62 private: | 60 private: |
| 63 LightType m_type; | 61 LightType m_type; |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 } // namespace blink | 64 } // namespace blink |
| 67 | 65 |
| 68 #endif // LightSource_h | 66 #endif // LightSource_h |
| OLD | NEW |