I'm trying to learn some Direct3D but having some trouble with this tutorial.
I got to the section near the bottom called "The Game Loop":
but for the lines PlayArea.InitializeGraphics() and PlayArea.Render() I get an error that says
I got to the section near the bottom called "The Game Loop":
VB.NET:
Shared Sub Main()
'The playarea object is an instance of our form.
Dim PlayArea As New Form1
PlayArea.Show() 'Show the form.
PlayArea.InitializeGraphics() 'Initialize all the graphical elements
Try
While PlayArea.Created 'The Game loop
PlayArea.Render() 'This will be used to display all of our graphics
Application.DoEvents() 'This gives Windows a chance to do its stuff.
End While
Finally
PlayArea.Dispose() 'Clean up our form when we are done.
End Try
End Sub
but for the lines PlayArea.InitializeGraphics() and PlayArea.Render() I get an error that says
Error 1 'InitializeGraphics' is not a member of 'WindowsApplication1.Form1'.
Error 2 'Render' is not a member of 'WindowsApplication1.Form1'.