Revert "[Tizen] Appendix log for ttrace + Print keycode and timestamp"
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / utc-Dali-MeshMaterial.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include <dali-test-suite-utils.h>
19 #include <dali/public-api/dali-core.h>
20 #include <stdlib.h>
21
22 #include <iostream>
23
24 using namespace Dali;
25
26 #include <mesh-builder.h>
27
28 void mesh_material_test_startup(void)
29 {
30   test_return_value = TET_UNDEF;
31 }
32
33 void mesh_material_test_cleanup(void)
34 {
35   test_return_value = TET_PASS;
36 }
37
38 /**
39  * Test cases
40  *
41  * Check construction of mesh objects
42  * Check downcast of mesh objects (+ve & -ve)
43  * Check staging of mesh objects
44  *
45  * Check staging of some mesh objects but not all
46  * Create geometry with no verts - ensure it asserts
47  * Create an element based geometry with no indices - ensure it asserts
48  * Create a renderer without a material - ensure nothing renders
49  * Create a render with a material, ensure the material can be changed
50  * Create a render with a material&Sampler, ensure the sampler can be changed
51  * Create a render with a material, sampler, ensure the sampler's texture can be changed
52  * Create a render with a material, sampler, ensure that removing the sampler works
53  *
54  * Blend tests:
55  * 1 Set Material with translucent color, actor color opaque, Set Use image alpha to true
56  *   Expect blending
57  * 2 Set material to translucent, set use image alpha to false, set actor opacity to 1.0f
58  *   Expect no blending
59  * 3 Set material to opaque, set use image alpha to true, set actor opacity to 1.0f
60  *   Expect no blending
61  * 4 Set material to have image with alpha, set use image alpha to true, set actor opacity to 1.0f
62  *   Expect blending
63  * 5 Set material to have image with alpha, set use image alpha to false, set actor opacity to 1.0f
64  *   Expect no blending
65  * 6 Set material to have image without alpha, set use image alpha to true, set actor opacity to 1.0f
66  *   Expect no blending
67  * 7 Set material to have framebuffer with alpha, set use image alpha to true, set actor opacity to 1.0f
68  *   Expect blending
69  * 8 Set material to have image with alpha, set use image alpha to false, set actor opacity to 0.5f
70  *   Expect blending
71  * 9 Set material to have image with no alpha, set material opacity to 0.5, set use image alpha to true, set actor opacity to 1.0f
72  *   Expect blending
73  *
74  * Check defaults of renderer
75  *
76  * Bounding box of geometry?
77  *
78  * Check rendered vertex buffer is the right size for the initial property buffer
79  *
80  * Check VertexBuffer set via SetData renders as expected
81  * Check IndexBuffer set via properties renders as expected
82  *
83  * Check geometry type renders correctly as the matching GL draw call and type
84  *
85  * Check attributes change when rendering different actors with different
86  * vertex formats (utc-Dali-Context.cpp)
87  *
88  * utc-Dali-Material.cpp
89  * Check material color affects output - see shader uniform
90  *
91  * Check material sampler's image load/release policies affect rendering correctly.
92  */