model_data_draw_range.h
1 /*
2 ** ClanLib SDK
3 ** Copyright (c) 1997-2013 The ClanLib Team
4 **
5 ** This software is provided 'as-is', without any express or implied
6 ** warranty. In no event will the authors be held liable for any damages
7 ** arising from the use of this software.
8 **
9 ** Permission is granted to anyone to use this software for any purpose,
10 ** including commercial applications, and to alter it and redistribute it
11 ** freely, subject to the following restrictions:
12 **
13 ** 1. The origin of this software must not be misrepresented; you must not
14 ** claim that you wrote the original software. If you use this software
15 ** in a product, an acknowledgment in the product documentation would be
16 ** appreciated but is not required.
17 ** 2. Altered source versions must be plainly marked as such, and must not be
18 ** misrepresented as being the original software.
19 ** 3. This notice may not be removed or altered from any source distribution.
20 **
21 ** Note: Some of the libraries ClanLib may link to may have additional
22 ** requirements or restrictions.
23 **
24 ** File Author(s):
25 **
26 ** Magnus Norddahl
27 */
28 
29 #pragma once
30 
31 #include "model_data_texture_map.h"
32 #include "model_data_animation_data.h"
33 
34 namespace clan
35 {
36 
39 {
40 public:
42 
45 
48 
50  bool two_sided;
51 
54 
56  bool alpha_test;
57 
65 
70 };
71 
72 }
73 
bool alpha_test
Must be set to true if the faces are rendered with alpha test transparency.
Definition: model_data_draw_range.h:56
Information needed to draw a range of vertex elements in a ModelDataMesh.
Definition: model_data_draw_range.h:38
int num_elements
Number of elements to draw.
Definition: model_data_draw_range.h:47
ModelDataAnimationData< Vec3f > self_illumination
Definition: model_data_draw_range.h:62
ModelDataAnimationData< Vec3f > specular
Definition: model_data_draw_range.h:60
ModelDataAnimationData< float > glossiness
Definition: model_data_draw_range.h:63
ModelDataTextureMap self_illumination_map
Definition: model_data_draw_range.h:69
ModelDataTextureMap diffuse_map
Definition: model_data_draw_range.h:66
ModelDataAnimationData< Vec3f > diffuse
Definition: model_data_draw_range.h:59
ModelDataAnimationData< Vec3f > ambient
Definition: model_data_draw_range.h:58
bool transparent
Controls if faces should be rendered with alpha blending enabled.
Definition: model_data_draw_range.h:53
ModelDataTextureMap specular_map
Definition: model_data_draw_range.h:67
ModelDataAnimationData< float > self_illumination_amount
Definition: model_data_draw_range.h:61
Texture sampler state and UVW animation data used when drawing vertex elements.
Definition: model_data_texture_map.h:37
bool two_sided
Toggles if back facing faces should be drawn too.
Definition: model_data_draw_range.h:50
ModelDataDrawRange()
Definition: model_data_draw_range.h:41
int start_element
First vertex element to draw.
Definition: model_data_draw_range.h:44
ModelDataTextureMap bumpmap_map
Definition: model_data_draw_range.h:68
Stores different values for different animation timelines.
Definition: model_data_animation_data.h:44
ModelDataAnimationData< float > specular_level
Definition: model_data_draw_range.h:64