コード例 #1
0
        /// <summary>
        /// Copies this structure and replaces the given values
        /// </summary>
        public GeometryData Copy(Vector3 newPosition)
        {
            GeometryData result = this;

            result.m_position = newPosition;
            return(result);
        }
コード例 #2
0
        /// <summary>
        /// Copies this structure and replaces the given values
        /// </summary>
        public GeometryData Copy(Vector3 newPosition, Vector3 newNormal)
        {
            GeometryData result = this;

            result.m_position = newPosition;
            result.m_normal   = newNormal;
            return(result);
        }
コード例 #3
0
 /// <summary>
 /// Creates a new vertex
 /// </summary>
 public Vertex(Vector3 position, Color4 color, Vector2 texCoord1, Vector3 normal)
 {
     m_geoData       = new GeometryData(position, normal, color);
     m_textureData   = new TextureData(texCoord1);
     m_animationData = new AnimationData();
 }
コード例 #4
0
 /// <summary>
 /// Creates a new vertex
 /// </summary>
 public Vertex(Vector3 position, Color4 color)
 {
     m_geoData       = new GeometryData(position, color);
     m_textureData   = new TextureData();
     m_animationData = new AnimationData();
 }