Conversation

The Linux graphics stack: Just learn all of, Xlib, Xorg, xcb, glx, mit-shm, Mesa, dri, dri2, dri3, opengl, Vulkan, Wayland, xwayland, weston, Cairo, GDK, and so on and so forth (Yes I know these all mostly serve different purposes but all I want is to render a buffer of pixels)
1
Replying to
> but all I want is to render a buffer of pixels
Quote Tweet
Drawing pixels on Windows: #pragma comment(lib, "opengl32") extern "C" void glDrawPixels(int width, int height, unsigned GL_RGBA_0x1908, unsigned GL_UNSIGNED_BYTE_0x1401, void * pixels); int main() { // Init OpenGL 1.4 glDrawPixels(width, height, 0x1908, 0x1401, pixels); }
1
1