Project

General

Profile

« Previous | Next » 

Revision 0ab55f0c

Added by Leszek Koltunski about 7 years ago

Use Transform Feedback to (optionally) display the Normal vectors.

View differences:

src/main/res/layout/effects3dlayout.xml
11 11
        android:layout_weight="1" />
12 12

  
13 13
    <LinearLayout
14
        android:orientation="horizontal"
15 14
        android:layout_width="match_parent"
16
        android:layout_height="50dp"
17
        android:layout_gravity="center">
15
        android:layout_height="32dp"
16
        android:orientation="horizontal">
18 17

  
19
        <Button
18
        <CheckBox
19
            android:id="@+id/effects3dCheckBoxCenter"
20 20
            android:layout_width="wrap_content"
21 21
            android:layout_height="wrap_content"
22
            android:text="@string/Add"
22
            android:layout_weight="1"
23
            android:checked="true"
24
            android:onClick="showCenter"
25
            android:text="@string/show_center"
26
            android:textSize="12sp"/>
27

  
28
        <CheckBox
29
            android:id="@+id/effects3dCheckBoxRegion"
30
            android:layout_width="wrap_content"
31
            android:layout_height="wrap_content"
32
            android:layout_weight="1"
33
            android:checked="true"
34
            android:onClick="showRegion"
35
            android:text="@string/show_region"
36
            android:textSize="12sp"/>
37

  
38
        <CheckBox
39
            android:id="@+id/effects3dCheckBoxNormal"
40
            android:layout_width="wrap_content"
41
            android:layout_height="wrap_content"
42
            android:layout_weight="1"
43
            android:checked="true"
44
            android:onClick="showNormal"
45
            android:text="@string/show_normal"
46
            android:textSize="12sp"/>
47
    </LinearLayout>
48

  
49
    <LinearLayout
50
        android:layout_width="match_parent"
51
        android:layout_height="42dp"
52
        android:layout_gravity="center"
53
        android:orientation="horizontal">
54

  
55
        <Button
23 56
            android:id="@+id/buttonAdd"
57
            android:layout_width="wrap_content"
58
            android:layout_height="wrap_content"
24 59
            android:onClick="newEffect"
60
            android:text="@string/Add"
25 61
            />
26 62

  
27 63
        <TextView
64
            android:id="@+id/textView10"
28 65
            android:layout_width="wrap_content"
29 66
            android:layout_height="wrap_content"
30
            android:textAppearance="?android:attr/textAppearanceMedium"
31 67
            android:text="@string/New"
32
            android:id="@+id/textView10"/>
68
            android:textAppearance="?android:attr/textAppearanceMedium"/>
33 69

  
34 70
        <Spinner
71
            android:id="@+id/effects3dspinner"
35 72
            android:layout_width="wrap_content"
36 73
            android:layout_height="wrap_content"
37
            android:id="@+id/effects3dspinner"
38 74
            android:layout_weight="0.5"/>
39 75

  
40 76
        <Button
77
            android:id="@+id/buttonRemove"
41 78
            android:layout_width="wrap_content"
42 79
            android:layout_height="wrap_content"
43
            android:text="@string/reset"
44
            android:id="@+id/buttonRemove"
45 80
            android:onClick="removeAll"
81
            android:text="@string/reset"
46 82
            />
47 83

  
48 84
    </LinearLayout>

Also available in: Unified diff