add overload for defining BufferUsageHint

This commit is contained in:
2023-09-27 09:05:24 +02:00
parent cd39da1df4
commit 7ea59cddb1

View File

@@ -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