Recent Posts
My Biggest Project (till date)
Zerodha just donated 100,000 usd to FFMPEG
ITS HAPPENING
CAN SOMEONE EXPLAIN ME HOW THESE JOB DESCRIPTIONS ...
the best android browser has arrived!!
/compiler_develoment/ thread
Pajeet doval
/g/ - Laptops
Esp32 Jammer
Help me move away from winblows
दोमेन
the hmd touch 4g
I am done. It's over.
Jokes write themselves
AWS outage
took them long enough
just installed Arch Linux bros
Where to apply
Is the battery of my laptop dead?
OpenCL
Where are we heading towards?
does this ever end?
Zoho appreciation thread
new discord server for pair-programming
Looking to Buy a Decent Gaming Laptop
which llm subscription is the best
RSS feed for Bharatchan ?
Sketch - A simple 2D graphics library in C
Tell me all about indiachan/bharatchan lore
User extensions to Bharatchan
/cyb/+/psg/: Cyber-Punk/Security & Privacy
poast your fav cool websites
/g/ - Total Rust Victory
alternative frontends
My Biggest Project (till date)
INRoK5
No.2581
I have written a library that writes and saves BMP images (win gdi spec)
On top of this I am writing a simple graphics library.
All of this from scratch in C btw.
Already done with BMP backend and generated the first image - 800×600 fully red colored canvas.
A1b9w4
No.2582
>>2581(OP)
Dayum anon, how do I learn all this. I know C in general but have no idea how to do shit with it
INRoK5
No.2584
>>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.





















































