SDL2 + OpenGL in C#?

This page summarizes the projects mentioned and recommended in the original post on /r/gamedev

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • SDL2-CS

    SDL2# - C# Wrapper for SDL2

  • Is there a way for me to use SDL2 with OpenGL and C#? The SDL2 C# bindings I'm using don't seem to have bindings for the OpenGL commands. Honestly I just want a quick way to draw 2D primitives with fragment shaders (I don't need vertex shaders). I've worked with OpenTK, but it seems counterintuitive to mold it into a program where you wanna just make draw calls without worrying about Vertex Arrays. Is there any way for me to get access to fragment shaders in SDL2 with C#?

  • Silk.NET

    The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.

  • Have you looked at Silk.NET before?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Arqan

    Arqan is an OpenGL and GLFW binding for C# that allows you to directly use all OpenGL methods and enums methods and enums from the popular GLFW library

  • I used this and it works great https://github.com/TheBoneJarmer/Arqan

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts