C# Класс HaloMap.Render.Renderer

The renderer.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
device Device
lighting bool
pause bool

Открытые методы

Метод Описание
BeginScene ( Color backgroundcolor ) : void

The begin scene.

CreateDevice ( Control renderpanel ) : void

The create device.

DecompressIndices ( short indices, int start, int count ) : short[]

The decompress indices.

DegreeToRadian ( float degree ) : float

The degree to radian.

Dispose ( ) : void

The dispose.

EndScene ( ) : void

The end scene.

MakeMesh ( List vertices, List Indices, List uvs ) : Mesh

The make mesh.

MakeMesh ( ParsedModel &pm, int chunknumber, Device &device ) : Mesh

The make mesh.

Mark3DCursorPosition ( float x, float y, System.Matrix m ) : System.Vector3

The mark 3 d cursor position.

MeshPick ( float x, float y, Mesh mesh, System.Matrix mat ) : bool

The mesh pick.

OnResetDevice ( object sender, EventArgs e ) : void

The on reset device.

RadianToDegree ( float radian ) : float

The radian to degree.

SetAlphaBlending ( ShaderInfo alphatype, Device &device ) : void

The set alpha blending.

VectorToRgba ( System.Vector3 v, float height ) : int

The vector to rgba.

Описание методов

BeginScene() публичный Метод

The begin scene.
public BeginScene ( Color backgroundcolor ) : void
backgroundcolor Color The backgroundcolor.
Результат void

CreateDevice() публичный Метод

The create device.
public CreateDevice ( Control renderpanel ) : void
renderpanel System.Windows.Forms.Control The renderpanel.
Результат void

DecompressIndices() публичный статический Метод

The decompress indices.
public static DecompressIndices ( short indices, int start, int count ) : short[]
indices short The indices.
start int The start.
count int The count.
Результат short[]

DegreeToRadian() публичный статический Метод

The degree to radian.
public static DegreeToRadian ( float degree ) : float
degree float The degree.
Результат float

Dispose() публичный Метод

The dispose.
public Dispose ( ) : void
Результат void

EndScene() публичный Метод

The end scene.
public EndScene ( ) : void
Результат void

MakeMesh() публичный Метод

The make mesh.
public MakeMesh ( List vertices, List Indices, List uvs ) : Mesh
vertices List The vertices.
Indices List The indices.
uvs List The uvs.
Результат Mesh

MakeMesh() публичный статический Метод

The make mesh.
public static MakeMesh ( ParsedModel &pm, int chunknumber, Device &device ) : Mesh
pm HaloMap.RawData.ParsedModel The pm.
chunknumber int The chunknumber.
device Device The device.
Результат Mesh

Mark3DCursorPosition() публичный Метод

The mark 3 d cursor position.
public Mark3DCursorPosition ( float x, float y, System.Matrix m ) : System.Vector3
x float The x.
y float The y.
m System.Matrix The m.
Результат System.Vector3

MeshPick() публичный Метод

The mesh pick.
public MeshPick ( float x, float y, Mesh mesh, System.Matrix mat ) : bool
x float The x.
y float The y.
mesh Mesh The mesh.
mat System.Matrix The mat.
Результат bool

OnResetDevice() публичный Метод

The on reset device.
public OnResetDevice ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The e.
Результат void

RadianToDegree() публичный статический Метод

The radian to degree.
public static RadianToDegree ( float radian ) : float
radian float The radian.
Результат float

SetAlphaBlending() публичный статический Метод

The set alpha blending.
public static SetAlphaBlending ( ShaderInfo alphatype, Device &device ) : void
alphatype HaloMap.H2MetaContainers.ShaderInfo The alphatype.
device Device The device.
Результат void

VectorToRgba() публичный статический Метод

The vector to rgba.
public static VectorToRgba ( System.Vector3 v, float height ) : int
v System.Vector3 The v.
height float The height.
Результат int

Описание свойств

device публичное свойство

The device.
public Device device
Результат Device

lighting публичное свойство

The lighting.
public bool lighting
Результат bool

pause публичное свойство

The pause.
public bool pause
Результат bool