Help?
Re: Help?
Ahh **** forgot about this
Code: Select all
void Graphics::DrawCircle( int x,int y,int radius,Color c )
{
const int rad_sq = radius * radius;
for( int y_loop = y - radius + 1; y_loop < y + radius; y_loop++ )
{
for( int x_loop = x - radius + 1; x_loop < x + radius; x_loop++ )
{
const int x_diff = x - x_loop;
const int y_diff = y - y_loop;
if( x_diff * x_diff + y_diff * y_diff <= rad_sq )
{
PutPixel( x_loop,y_loop,c );
}
}
}
}
Re: Help?
The mic... I suppose XAudio2 will have functionality for that. I've never tried it though.
Chili
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Help?
You might even try the OpenAL library.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Help?
I don't think there is capture capabilities for XAudio2, but you can use Windows Audio Service API
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com