C# 클래스 WaveEngine.Components.Primitives.Geometric

Base class for geometric primitives.
파일 보기 프로젝트 열기: WaveEngine/Components

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

보호된 메소드들

메소드 설명
AddIndex ( int index ) : void

Adds a new index to the primitive model.

This should only be called during the initialization process, before InitializePrimitive.

AddVertex ( System.Vector3 position, System.Vector3 normal ) : void

Adds a new vertex to the primitive model.

This should only be called during the initialization process, before InitializePrimitive.

AddVertex ( System.Vector3 position, System.Vector3 normal, System.Vector2 texcoord ) : void

Adds a new vertex to the primitive model.

This should only be called during the initialization process, before InitializePrimitive.

AddVertex ( System.Vector3 position, System.Vector3 normal, System.Vector3 tangent, System.Vector2 texcoord ) : void

Adds a new vertex to the primitive model.

This should only be called during the initialization process, before InitializePrimitive.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Geometric ( ) : System

Initializes a new instance of the Geometric class.

GetSphericalTexCoord ( System.Vector3 normal ) : System.Vector2

Gets the spherical texture coordinates.

비공개 메소드들

메소드 설명
CalculateTangentSpace ( ) : void

Calculate tangent space of the geometry

메소드 상세

AddIndex() 보호된 메소드

Adds a new index to the primitive model.
This should only be called during the initialization process, before InitializePrimitive.
protected AddIndex ( int index ) : void
index int The index.
리턴 void

AddVertex() 보호된 메소드

Adds a new vertex to the primitive model.
This should only be called during the initialization process, before InitializePrimitive.
protected AddVertex ( System.Vector3 position, System.Vector3 normal ) : void
position System.Vector3 The position.
normal System.Vector3 The normal.
리턴 void

AddVertex() 보호된 메소드

Adds a new vertex to the primitive model.
This should only be called during the initialization process, before InitializePrimitive.
protected AddVertex ( System.Vector3 position, System.Vector3 normal, System.Vector2 texcoord ) : void
position System.Vector3 The position.
normal System.Vector3 The normal.
texcoord System.Vector2 The texture coordinate.
리턴 void

AddVertex() 보호된 메소드

Adds a new vertex to the primitive model.
This should only be called during the initialization process, before InitializePrimitive.
protected AddVertex ( System.Vector3 position, System.Vector3 normal, System.Vector3 tangent, System.Vector2 texcoord ) : void
position System.Vector3 The position.
normal System.Vector3 The normal.
tangent System.Vector3 The tangent.
texcoord System.Vector2 The texture coordinate.
리턴 void

Dispose() 공개 메소드

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

Geometric() 보호된 메소드

Initializes a new instance of the Geometric class.
protected Geometric ( ) : System
리턴 System

GetSphericalTexCoord() 보호된 메소드

Gets the spherical texture coordinates.
protected GetSphericalTexCoord ( System.Vector3 normal ) : System.Vector2
normal System.Vector3 The normal.
리턴 System.Vector2