About Vadym

Thanks for reading!
[dinosaur peeking in from the right] Hey! I now have a newsletter! Come take a look.
You can also follow me on Twitter or Tumblr.

Fixing buffer_set_surface in GameMaker: Studio

If you are still using GameMaker: Studio instead of moving to a more current version (perhaps you should - it's been almost five years since GMS1 support has ended) and you are doing extension work or anything else that demands conversions between raw pixel data and surfaces on Windows, you might have noticed that buffer_set_surface doesn't work on some computers - no matter what you pass in, no pixels appear on the surface.

Though the better way to put it would be "buffer_set_surface doesn't work anymore".

This is a post about the matter.

Continue reading

Fast approximate arctan2/atan2 function

(click to interact)

Alternatively titled "exciting adventures in doing trigonometry without CRT".

Continue reading