OLD | NEW |
| 1 |
1 /* | 2 /* |
2 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
3 * | 4 * |
4 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 6 * found in the LICENSE file. |
6 */ | 7 */ |
7 | 8 |
| 9 |
| 10 |
| 11 |
8 // Inspired by Rob Johnson's most excellent QuickDraw GX sample code | 12 // Inspired by Rob Johnson's most excellent QuickDraw GX sample code |
9 | 13 |
10 #ifndef SkCamera_DEFINED | 14 #ifndef SkCamera_DEFINED |
11 #define SkCamera_DEFINED | 15 #define SkCamera_DEFINED |
12 | 16 |
| 17 #include "Sk64.h" |
13 #include "SkMatrix.h" | 18 #include "SkMatrix.h" |
14 | 19 |
15 class SkCanvas; | 20 class SkCanvas; |
16 | 21 |
17 typedef float SkUnitScalar; | 22 typedef float SkUnitScalar; |
18 #define SK_UnitScalar1 SK_Scalar1 | 23 #define SK_UnitScalar1 SK_Scalar1 |
19 #define SkUnitScalarMul(a, b) SkScalarMul(a, b) | 24 #define SkUnitScalarMul(a, b) SkScalarMul(a, b) |
20 #define SkUnitScalarDiv(a, b) SkScalarDiv(a, b) | 25 #define SkUnitScalarDiv(a, b) SkScalarDiv(a, b) |
21 | 26 |
22 struct SkUnit3D { | 27 struct SkUnit3D { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 struct Rec { | 159 struct Rec { |
155 Rec* fNext; | 160 Rec* fNext; |
156 SkMatrix3D fMatrix; | 161 SkMatrix3D fMatrix; |
157 }; | 162 }; |
158 Rec* fRec; | 163 Rec* fRec; |
159 Rec fInitialRec; | 164 Rec fInitialRec; |
160 SkCamera3D fCamera; | 165 SkCamera3D fCamera; |
161 }; | 166 }; |
162 | 167 |
163 #endif | 168 #endif |
OLD | NEW |