3 ms·
> There are no cross-platform APIs for something as simple as "blit a bunch of pixels to the screen" anyway SDL? Has ports for more obscure platforms, too
by boomlinde 7y ago
> There are no cross-platform APIs for something as simple as "blit a bunch of pixels to the screen" anyway
SDL? Has ports for more obscure platforms, too
- grawprog 7y agoYup my first though and drawing a pixel with SDL is pretty easy comparatively. SDL_Window *window; SDL_Renderer *renderer; SDL_CreateWindowAndRenderer(800, 600, 0, &window, &renderer); SDL_RenderDrawPoint(renderer, 400, 300); //Renders on middle of screen. SDL_RenderPresent(renderer); There's also SDL bindings in a bunch of languages, a few official ones here https://www.libsdl.org/languages.php https://www.libsdl.org/languages.php
- earenndil 7y agoAgreed. SDL2 is one of the few libraries I've used that I can honestly say is well-designed.