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