-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.vb
More file actions
37 lines (28 loc) · 1.27 KB
/
Form1.vb
File metadata and controls
37 lines (28 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Imports System.Runtime.InteropServices
Imports System.Windows.Forms
Public Class Form1
Inherits Form
<DllImport("C:\Users\hiiam\source\repos\teawrap\Debug\teawrap.dll", CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub InitializeOpenGL()
End Sub
<DllImport("C:\Users\hiiam\source\repos\teawrap\Debug\teawrap.dll", CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub RenderTeapot()
End Sub
<DllImport("C:\Users\hiiam\source\repos\teawrap\Debug\teawrap.dll", CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub ResizeViewport(ByVal width As Integer, ByVal height As Integer)
End Sub
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
InitializeOpenGL()
End Sub
Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles MyBase.Paint
RenderTeapot()
End Sub
Private Sub Form1_Resize(sender As Object, e As EventArgs) Handles MyBase.Resize
ResizeViewport(Me.ClientSize.Width, Me.ClientSize.Height)
End Sub
End Class