KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
opengl-beef
★ 18
Open GitHub ↗
OpenGL loader for Beef
Download README (.md)
Explore Similar Repositories
raylib-beef
:
A raylib binding for Beef programming language
Pile
:
A friendly, extendable game framework for the Beef programming language.
raylib-beef
:
Autogenerated Beef bindings for raylib
BNA
:
A minimal game framework inspired by XNA for the Beef programming language
glfw-beef
:
Beef wrapper library for GLFW
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
opengl-beef
?
Download (.md)
# OpenGL-Beef **opengl-beef** is a Beef opengl loader generator. Works with any windowing library that provides GetProcAddress function. For now it only generates gl api and no extensions. **Note:** When passing arrays to opengl with type uint you need to use uint32. # Quick Start 1. Install dotnet core sdk. 2. Copy this repository. 3. Run "dotnet run --glVersion 3.3 --profile Core" in your copied opengl-beef folder with modified version and profile arguments. 4. Copy generated GL.bf file to your project and change its namespace. 5. Happy coding! Example using my [glfw-beef](https://github.com/MineGame159/glfw-beef) library: ```csharp using System; using glfw_beef; namespace test { class Program { public static void Main() { Glfw.Init(); GlfwWindow* window = Glfw.CreateWindow(640, 480, "OpenGL Test", null, null); Glfw.MakeContextCurrent(window); GL.Init(=> Glfw.GetProcAddress); while (!Glfw.WindowShouldClose(window)) { GL.glClearColor(1, 0, 1, 1); GL.glClear(GL.GL_COLOR_BUFFER_BIT); Glfw.PollEvents(); Glfw.SwapBuffers(window); } Glfw.DestroyWindow(window); } } } ``` # How to use with SDL (excluded window creation and other stuff): ```csharp static void* SdlGetProcAddress(StringView string) { return SDL.SDL_GL_GetProcAddress(string.ToScopeCStr!()); } static void Main() { SDL.GL_CreateContext(window); GL.Init(=> SdlGetProcAddress); } ``` Why I am not using Beef for the generator? When there is xml library I will consider rewriting it.