2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include <dali-test-suite-utils.h>
19 #include <dali/public-api/dali-core.h>
26 #include <mesh-builder.h>
28 void mesh_material_test_startup(void)
30 test_return_value = TET_UNDEF;
33 void mesh_material_test_cleanup(void)
35 test_return_value = TET_PASS;
41 * Check construction of mesh objects
42 * Check downcast of mesh objects (+ve & -ve)
43 * Check staging of mesh objects
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
55 * 1 Set Material with translucent color, actor color opaque, Set Use image alpha to true
57 * 2 Set material to translucent, set use image alpha to false, set actor opacity to 1.0f
59 * 3 Set material to opaque, set use image alpha to true, set actor opacity to 1.0f
61 * 4 Set material to have image with alpha, set use image alpha to true, set actor opacity to 1.0f
63 * 5 Set material to have image with alpha, set use image alpha to false, set actor opacity to 1.0f
65 * 6 Set material to have image without alpha, set use image alpha to true, set actor opacity to 1.0f
67 * 7 Set material to have framebuffer with alpha, set use image alpha to true, set actor opacity to 1.0f
69 * 8 Set material to have image with alpha, set use image alpha to false, set actor opacity to 0.5f
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
74 * Check defaults of renderer
76 * Bounding box of geometry?
78 * Check rendered vertex buffer is the right size for the initial property buffer
80 * Check VertexBuffer set via SetData renders as expected
81 * Check IndexBuffer set via properties renders as expected
83 * Check geometry type renders correctly as the matching GL draw call and type
85 * Check attributes change when rendering different actors with different
86 * vertex formats (utc-Dali-Context.cpp)
88 * utc-Dali-Material.cpp
89 * Check material color affects output - see shader uniform
91 * Check material sampler's image load/release policies affect rendering correctly.