« Return to Thread: Why do I need alut?

Re: Why do I need alut?

by bpazolli :: Rate this Message:

Reply to Author | View in Thread

You can replace alutInit in your
code with this:

ALCdevice *device = alcOpenDevice(NULL);
ALCcontext *context = alcCreateContext(device, NULL);
alcMakeContextCurrent(context);

And you can replace alutExit with this:

ALCcontext *context = alcGetCurrentContext();
ALCdevice *device = alcGetContextsDevice(context);
alcDestroyContext(context);
alcCloseDevice(device);
Thank you very much. I got it to work just like I wanted it to.

Thank You,
Ben Pazolli

 « Return to Thread: Why do I need alut?