Alex Sakhartchouk | 094a068 | 2010-08-13 10:44:14 -0700 | [diff] [blame] | 1 | // Copyright (C) 2009 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | #pragma version(1) |
| 16 | |
Alex Sakhartchouk | 27f5052 | 2010-08-18 15:46:43 -0700 | [diff] [blame] | 17 | #pragma rs java_package_name(com.android.modelviewer) |
Alex Sakhartchouk | 094a068 | 2010-08-13 10:44:14 -0700 | [diff] [blame] | 18 | |
| 19 | #define TRANSFORM_NONE 0 |
| 20 | #define TRANSFORM_TRANSLATE 1 |
| 21 | #define TRANSFORM_ROTATE 2 |
| 22 | #define TRANSFORM_SCALE 3 |
| 23 | |
| 24 | typedef struct { |
Jason Sams | 1d45c47 | 2010-08-25 14:31:48 -0700 | [diff] [blame] | 25 | rs_matrix4x4 globalMat; |
| 26 | rs_matrix4x4 localMat; |
Alex Sakhartchouk | 094a068 | 2010-08-13 10:44:14 -0700 | [diff] [blame] | 27 | |
| 28 | float4 transforms0; |
| 29 | float4 transforms1; |
| 30 | float4 transforms2; |
| 31 | float4 transforms3; |
| 32 | float4 transforms4; |
| 33 | float4 transforms5; |
| 34 | float4 transforms6; |
| 35 | float4 transforms7; |
| 36 | float4 transforms8; |
| 37 | float4 transforms9; |
| 38 | float4 transforms10; |
| 39 | float4 transforms11; |
| 40 | float4 transforms12; |
| 41 | float4 transforms13; |
| 42 | float4 transforms14; |
| 43 | float4 transforms15; |
| 44 | |
| 45 | int transformType0; |
| 46 | int transformType1; |
| 47 | int transformType2; |
| 48 | int transformType3; |
| 49 | int transformType4; |
| 50 | int transformType5; |
| 51 | int transformType6; |
| 52 | int transformType7; |
| 53 | int transformType8; |
| 54 | int transformType9; |
| 55 | int transformType10; |
| 56 | int transformType11; |
| 57 | int transformType12; |
| 58 | int transformType13; |
| 59 | int transformType14; |
| 60 | int transformType15; |
| 61 | |
| 62 | int isDirty; |
| 63 | |
| 64 | rs_allocation children; |
| 65 | |
| 66 | } SgTransform; |