0
c work with display and sound
Is there anyone who is able to tell me how to define displaing pixel (by method using position or just every single pixel), then getting position of mouse/touch, pressed button... and last thing is sound - so how to get sound and then play it... i know that pixel is defined by position and rgb... and sound is just hights * wide of wave
4 ответов
+ 2
i was trying to do the same thing and i decided to download a graphics library for c++ and it worked now i can color pixels on a window that i create but i dont know how to color a pixel directly on the screen tho.And about the sound there is also a library for it.Because i think it would be harder to do it with raw code but i would like to know how to color a pixel directly on my screen
0
ok...so if i want to know how to color pixel, i should look into glut.h and for sound some kind for directX library?
0
yeah actually directX also works for coloring a pixel
0
i mean direct for sound