Hi,
I'm almost lost in this. I started with GDI+ but it is very slow on the alpha effects. So I just started with DirectX9 for Visual Basic .Net. So I tried to setting up a Device with DirectX3D, but I get a error.
Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D
Public Class Form1
Inherits System.Windows.Forms.Form
Dim createdevice As Device
Dim presentpara As New PresentParameters()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.FormBorderStyle = FormBorderStyle.None
Me.Text = ""
Me.WindowState = FormWindowState.Maximized
System.Windows.Forms.Cursor.Hide()
presentpara.Windowed = True
createdevice = New Device(0, DeviceType.Software, Me, CreateFlags.SoftwareVertexProcessing, presentpara)
End Sub
End Class
I get a error in the last Cretedevice line, can someone tell me why ?
Thanks,
Miura
I'm almost lost in this. I started with GDI+ but it is very slow on the alpha effects. So I just started with DirectX9 for Visual Basic .Net. So I tried to setting up a Device with DirectX3D, but I get a error.
Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D
Public Class Form1
Inherits System.Windows.Forms.Form
Dim createdevice As Device
Dim presentpara As New PresentParameters()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.FormBorderStyle = FormBorderStyle.None
Me.Text = ""
Me.WindowState = FormWindowState.Maximized
System.Windows.Forms.Cursor.Hide()
presentpara.Windowed = True
createdevice = New Device(0, DeviceType.Software, Me, CreateFlags.SoftwareVertexProcessing, presentpara)
End Sub
End Class
I get a error in the last Cretedevice line, can someone tell me why ?
Thanks,
Miura