add overload for defining BufferUsageHint
This commit is contained in:
@@ -141,6 +141,14 @@ Namespace RenderingN
|
|||||||
''' Creates the Buffers and store the requied Data.
|
''' Creates the Buffers and store the requied Data.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub RenderModel()
|
Public Sub RenderModel()
|
||||||
|
RenderModel(BufferUsageHint.StaticDraw)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Creates the Buffers and store the requied Data.
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="bufferUsage">The hint how the graphics card should handle the data.</param>
|
||||||
|
Public Sub RenderModel(bufferUsage As BufferUsageHint)
|
||||||
ReleaseBuffers()
|
ReleaseBuffers()
|
||||||
|
|
||||||
For Each mesh As Mesh In obj3d.Meshes
|
For Each mesh As Mesh In obj3d.Meshes
|
||||||
|
|||||||
Reference in New Issue
Block a user