A
A
Arseniy Khusainov2022-03-24 23:48:58
C++ / C#
Arseniy Khusainov, 2022-03-24 23:48:58

How can one draw a pixel on the screen in a C kernel?

How can I draw a pixel on the screen in C, it is desirable to do without assembler

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Savelyev, 2022-03-25
@halwarsing

need to send a few bytes to video memory. What's the problem?

V
Vladimir Dubrovin, 2022-03-25
@z3apa3a

There are no standard graphics libraries in C, so the options are:
1. Use system functions (like Win32 API or X Window or higher level KDE types)
2. Use generic interfaces like OpenGL
3. Use third party graphics libraries like qt
4. Directly work with the hardware (if the application runs on bare metal, as a kernel driver or in an OS that allows you to directly address video memory)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question