Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GeometricMeshData.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// A geometric data.
9  /// </summary>
10  /// <typeparam name="T"></typeparam>
11  public class GeometricMeshData<T> : ComponentBase where T : struct, IVertex
12  {
13  public GeometricMeshData(T[] vertices, int[] indices, bool isLeftHanded)
14  {
15  Vertices = vertices;
16  Indices = indices;
17  IsLeftHanded = isLeftHanded;
18  }
19 
20  /// <summary>
21  /// Gets or sets the vertices.
22  /// </summary>
23  /// <value>The vertices.</value>
24  public T[] Vertices { get; set; }
25 
26  /// <summary>
27  /// Gets or sets the indices.
28  /// </summary>
29  /// <value>The indices.</value>
30  public int[] Indices { get; set; }
31 
32  /// <summary>
33  /// Gets or sets a value indicating whether this instance is left handed.
34  /// </summary>
35  /// <value><c>true</c> if this instance is left handed; otherwise, <c>false</c>.</value>
36  public bool IsLeftHanded { get; set; }
37  }
38 }
Base class for a framework component.
GeometricMeshData(T[] vertices, int[] indices, bool isLeftHanded)
The base interface for all the vertex data structure.
Definition: IVertex.cs:9