Original Post
Posted - 10/10/2003 : 06:50:23 AM
--------------------------------------------------------------------------------
i use OpenGL...
after the code my 3d application doesn''t want render,... there is nothing appears in GL window but the music is normaly playing!...
/*======INITIALIZATION OPENGL====*/
SetListenerValues();
// Setup an exit procedure.
atexit(KillALData);
/*======END INITIALIZATION OPENGL====*/
//============render my scene=====================
// Begin the source playing.
alSourcePlay(Source);
/*===============END======================*/
//||||||||||||WIN API||||||||||||||||||||||||||||
// Loop
ALint time = 0;
ALint elapse = 0;
while(!kbhit())
{
elapse += clock() - time;
time += elapse;
if(elapse > 50)
{
elapse = 0;
SourcePos[0] += SourceVel[0];
SourcePos[1] += SourceVel[1];
SourcePos[2] += SourceVel[2];
alSourcefv(Source, AL_POSITION, SourcePos);
}
}
//||||||||||||||||||||||||||END||||||||||||||||||||||||||||||
test