/g/ - Technology

Board dedicated to discussions related to everyday Technology!

International /int/ board is now open for non IndiNow non Indian posters who are not using vpn or pr...
Happy Holi🌾 Have a safe and fun festival 🌾 ...
Going back to BasicsAs we discussed and shared earlier, I am going bac...
[View Noticeboard]
0/4000

[All][RED]
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

/desktop thread/

View

I am done. It's over.

View

Substack

View

View

4Chan bypass?

View

View

/emacs/ general

View

View

Forking jschan to submit a PR for captcha logic

View

This is Huge

View

PRICE OF INTERNET IN 1995

View

Motorola and Graphene linked up

View

View

HAPPENING

View

CPchads

View

JEEFICATION OF GSOC

View

Minecraft source code leaked

View

View

where do i get CRT monitor ??

View

Shifting to linux mint

View

Androidfags zara idhar aana

View

Sarvam is now proven to be a disappointment

View

View

XHDATA D-808 DX-ing setup, analogue modulation

View

i don't understand

View

View

RCE on Pocketbase possible?

View

View

AI Impact Summit 2026

View

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

View

/wpg/ - Windows & Powershell General

View

View

Sarvam Apology Thread

View

Some cool tech in my college

View

the hmd touch 4g

View

Holy Shit

View

Saar american companies have best privacy saaar

View

View

View

View

View

/g/ related blogpost - backup thread

View

Android Hygiene

View

My favorite game rn

View

COOKED

View

Are we getting real 5g?

View

I want to create my own forum but I don't know how...

View

Is my psu not compatible with my mobo?

View

View

/i2pg/ - I2P general

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