Article:
 |
|
Using OpenGL with VB.NET
|
| Subject: |
|
Traps |
| Date: |
|
2003-05-06 00:24:41 |
| From: |
|
anonymous2
|
|
|
|
As an avid OpenGL AND C# (or VB.NET) programmer I would like to make two remarks:
1. Watch out for the 'OpenGL Thread'! When using a seperate thread things could go wrong: a) ALL the OpenGL code must be called on the SAME thread (OpenGL isn't multithreaded yet) and b) ALL the Window Form code must be called on the original (Form creating) thread.
2. (This is worse) the OnSizeChanged function calls itself... stack overflow is bound to follow; I guess (as it should) that the code had to be MyBase.OnSizeChanged(e) instead of Me.OnSizeChanged(e)
Happy Coding!
Erno
PS: I'm still wondering why CSGL changed to TAO... did it?
|
Showing messages 1 through 3 of 3.
-
Traps
2003-05-06 20:28:59
anonymous2
[View]
-
Forms
2003-05-07 03:17:34
anonymous2
[View]
-
Traps
2003-05-06 01:43:42
anonymous2
[View]
is this why I can't create 2 forms in Sub Main(), one a docked GL viewport and the other a panel of controls for it? if so, any tips? I want to create an MDI app with one form class a fully-docked GL renderer of the data being manipulated in the other forms...?
Total GL newbie here, not too good with Forms and threading either but I'll learn and that's the idea here.
thanks!