Skip to content

PolymorphicHeart/glfw-c3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


glfw bindings for the C3 programming language

Quickstart

Copy glfw.c3l in your 'libs' folder within your project structure. Ensure you add it to your dependencies field in project.json:
"dependencies": [ "glfw" ]

Basic Window

module app;
import glfw;

fn int main(String[] args)
{
    glfw::init();

    glfw::Window wnd = glfw::create_window(800, 600, "example", null, null);
    glfw::make_context_current(wnd);

    while (!glfw::window_should_close(wnd))
    {
        glfw::swap_buffers(wnd);
        glfw::poll_events();
    }

    glfw::destroy_window(wnd);
    glfw::terminate();
}

About

glfw 3.4 bindings for the C3 programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages