>>2582
internet anon, on youtube and github mostly, its called procedural graphics, essentially you fill a memory buffer with pixel by pixel data, and then lay it out in a proper file structure.
there is a book called ray tracer challenge that uses this approach.
I have seen this done for ppm file format on linux, I dont use linux so decided to the same thing on windows, bmp is the simplest image file format on windows.
the windows BMP file structure is available in its documentation, wingdi has the necessary struct declarations.
Anonymous
loc-IN
>>2582
internet anon, on youtube and github mostly, its called procedural graphics, essentially you fill a memory buffer with pixel by pixel data, and then lay it out in a proper file structure.
there is a book called ray tracer challenge that uses this approach.
I have seen this done for ppm file format on linux, I dont use linux so decided to the same thing on windows, bmp is the simplest image file format on windows.
the windows BMP file structure is available in its documentation, wingdi has the necessary struct declarations.