/g/ - Technology

Board dedicated to discussions related to everyday Technology!

New Boards Added

>>>/int/ >>>/out/ >>>/wp/ >>>/ck/ >>>/k/ >>>/fa/

Bharatchan September 2025 UpdateHello everyone, it's been a while. Here we are wit...
[View Noticeboard]
0/4000

BharatChan Disclaimer

Notice

Before proceeding, please read and understand the following:

1. BharatChan is a user-generated content platform. The site owners do not claim responsibility for posts made by users.

2. By accessing this website, you acknowledge that content may not be suitable for all audiences.

3. You must follow BharatChan’s community guidelines and rules. Failure to do so may result in a ban.

4. By using BharatChan users agree to the use of cookies, mostly for session related to user.

A poster on BharatChan must abide by the following rules:

Sitewide Rules
You must be 18 or older to post.
Sharing personal details or engaging in doxing is strictly prohibited.
Political discussions should be confined to /pol/.
Off-topic discussions, thread derailment, or spam may result in a ban and IP blacklist.
Pornographic content is strictly prohibited.
Any activity violating local laws is not allowed.
If you are not an Indian, you can only post in /int/. Or create and account and ask for approval to post in other boards.
Acknowledge

Recent Posts

/emacs/ general

View

Simple Linux General /slg/ - Useful Commands editi...

View

Jio Fiber

View

LEARNING SPREADSHEETS

View

View

View

View

My Biggest Project (till date)

View

View

AI image gen

View

Zerodha just donated 100,000 usd to FFMPEG

View

ITS HAPPENING

View

CAN SOMEONE EXPLAIN ME HOW THESE JOB DESCRIPTIONS ...

View

the best android browser has arrived!!

View

/compiler_develoment/ thread

View

Pajeet doval

View

/g/ - Laptops

View

Esp32 Jammer

View

Help me move away from winblows

View

दोमेन

View

View

the hmd touch 4g

View

View

I am done. It's over.

View

Jokes write themselves

View

AWS outage

View

View

View

took them long enough

View

just installed Arch Linux bros

View

Where to apply

View

View

Is the battery of my laptop dead?

View

OpenCL

View

Where are we heading towards?

View

does this ever end?

View

Zoho appreciation thread

View

View

new discord server for pair-programming

View

Looking to Buy a Decent Gaming Laptop

View

View

View

View

which llm subscription is the best

View

RSS feed for Bharatchan ?

View

Sketch - A simple 2D graphics library in C

View

View

View

View

Tell me all about indiachan/bharatchan lore

View

My Biggest Project (till date)

Anonymous

IN

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.

Anonymous

IN

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

Anonymous

IN

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.

Anonymous

IN

tAHy9v

No.2615

Anonymous

IN

tAHy9v

No.2616

Anonymous

IN

Of6iqF

No.2617

>>2581(OP)

Are you planning to use any hardware acceleration?

Anonymous

IN

xky39o

No.2618

>>2617

Later on yes, there are 2 stages to it, first I need to make a win api platform for window opening, I am learning that from casey muratori's handmaid hero series.

After that I would need to learn openGL (simplest) or DirectX (harder)

I can do all this without learning anything by simply using a library such as Raylib, wimhich I will do soon, but long term I would like to make my own library for doing all that.

Anonymous

IN

A1b9w4

No.2622

>>2618

I use linux, is there any series equivalent to handmade hero for linux (Ik a lot of stuff would be same and make no difference regardless of which os one using, but still)

Anonymous

IN

sqyr22

No.2623

>>2622

I am not really aware of one, thing is most of gaming and graphics development happens for windows, and linux being just a kernel doesn't really have an unified api, it depends what windowing system your distro uses - X, Wayland etc, they have their own api, with that you can use openGL.

Anonymous

IN

A1b9w4

No.2624

>>2623

I see, I was planning to install windows anyway (dual boot) for gayming

Anonymous

IN

Of6iqF

No.2625

>>2623

Im trying to learn vulkan on linux. According to the tutorial window creation is managed by GLFW library from opengl and till now it seems pretty indipendent of choice of window manager and display server you are using.

Anonymous

IN

T6jGZn

No.2626

>>2625

yeah ofcourse, as I already said you can just skip to using some library instead, many such libraries exist.

glfw is a separate library for window opening, it works on both windows and linux, openGL itself isnt a library but simply a spec managed by khronos group, the GPU manufacturers implement it on their hardware.

I was talking from a more educational pov, if its just for getting something running, you can straight up use libraries like Raylib or SFML

Anonymous

IN

T6jGZn

No.2627

On windows if you want complete control you basically directly use win api headers in your C/C++ code, and for graphics pipeline you can use DirectX which is Microsofts spec + library for graphics programming on GPUs.

To do the same on linux, you would have to include X11 headers (assuming you are using xorg).

Active Users in /g/: N/A