Re: Feedback on C code?

Also just to add in one more thing. In graphics programming, it is actually usually y first so that the rows of pixels are adjacent in memory, so many resources you find for game programming may be doing:

array[y][x];

But in general this is a good lesson about how the layout of things in memory and the abstraction you use to interact with them are different, in that if you hide this behind a function the memory layout isn't something the external world can see, and so that's what most game programming stuff that needs to get weird about arrays ends up doing.



-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector

Reply via email to