C# Class SimLab.SimLabGrid

3D Visual Object
Inheritance: SharpGL.SceneGraph.Core.SceneElement, IDisposable
显示文件 Open project: bitzhuwei/CSharpGL

Protected Properties

Property Type Description
camera IScientificCamera
colorBuffer uint[]
gl SharpGL.OpenGL
positionBuffer uint[]
texture SharpGL.SceneGraph.Assets.Texture

Public Methods

Method Description
Dispose ( ) : void
SetPositions ( PositionBuffer positions ) : void
SetTexture ( Bitmap bitmap ) : void
SetTextureCoods ( VertexBuffer textureCoords ) : void
SimLabGrid ( SharpGL.OpenGL gl, IScientificCamera camera ) : System

Protected Methods

Method Description
CreateVertexBufferObject ( uint mode, VertexBuffer bufferData, uint usage ) : uint
DisposeManagedResources ( ) : void
DisposeUnmanagedResources ( ) : void
Init ( MeshBase geometry ) : void

初始化顶点位置和索引

UpdatePositions ( PositionBuffer positions ) : void
UpdateTextureCoords ( VertexBuffer textureCoords ) : void

Private Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

CreateVertexBufferObject() protected method

protected CreateVertexBufferObject ( uint mode, VertexBuffer bufferData, uint usage ) : uint
mode uint
bufferData VertexBuffer
usage uint
return uint

Dispose() public method

public Dispose ( ) : void
return void

DisposeManagedResources() protected method

protected DisposeManagedResources ( ) : void
return void

DisposeUnmanagedResources() protected method

protected DisposeUnmanagedResources ( ) : void
return void

Init() protected method

初始化顶点位置和索引
protected Init ( MeshBase geometry ) : void
geometry MeshBase
return void

SetPositions() public method

public SetPositions ( PositionBuffer positions ) : void
positions PositionBuffer
return void

SetTexture() public method

public SetTexture ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
return void

SetTextureCoods() public method

public SetTextureCoods ( VertexBuffer textureCoords ) : void
textureCoords VertexBuffer
return void

SimLabGrid() public method

public SimLabGrid ( SharpGL.OpenGL gl, IScientificCamera camera ) : System
gl SharpGL.OpenGL OpenGLControl.OpenGL
camera IScientificCamera
return System

UpdatePositions() protected method

protected UpdatePositions ( PositionBuffer positions ) : void
positions PositionBuffer
return void

UpdateTextureCoords() protected method

protected UpdateTextureCoords ( VertexBuffer textureCoords ) : void
textureCoords VertexBuffer
return void

Property Details

camera protected_oe property

protected IScientificCamera camera
return IScientificCamera

colorBuffer protected_oe property

protected uint[] colorBuffer
return uint[]

gl protected_oe property

protected OpenGL,SharpGL gl
return SharpGL.OpenGL

positionBuffer protected_oe property

protected uint[] positionBuffer
return uint[]

texture protected_oe property

protected Texture,SharpGL.SceneGraph.Assets texture
return SharpGL.SceneGraph.Assets.Texture