First I setup Opengl in some PreInitialization...
When that is done I use a window to print what is Calculating and Loading..
The Calculations and Loading routines are called from the Thread..
..
So..
1. Initialize OpenGL
2. Start a Setup Routine That is calling a Thread to do the Calculation and Loaidng.. (The Thread is calling several routines)
3. The Setup Routine also Prints out the Status of the Thread..
4. When The Setup Routine is Done my SceneDrawing is Starting up instead..
It looks like everything is loading and calculating.. but..
Then it comes to setting up the VBO in the Thread..
Boom.. =(
-> glGenBuffers( 1, &cJellyBall->vBuf);
glBindBuffer( GL_ARRAY_BUFFER_ARB, cJellyBall->vBuf );
glBufferData( GL_ARRAY_BUFFER_ARB, cJellyBall->m_iNumVertices * sizeof(VECTOR3D), cJellyBall->m_rgsVertices, GL_STATIC_DRAW_ARB );
This is where it stops.. All my objects are created dynamically..
But says that it got some adress violation.. Humm.. =(