Skip to content

quadrate-language/gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gl

OpenGL bindings for Quadrate using the glad loader.

Installation

quadpm get https://github.com/quadrate-language/gl

Requirements

  • OpenGL development libraries
  • An OpenGL context (typically created via SDL3 or similar)

Usage

use gl

fn main() {
    // After creating an OpenGL context, load GL functions
    gl::LoadGL drop

    // Set clear color to cornflower blue
    0.39 0.58 0.93 1.0 gl::ClearColor

    // Clear the screen
    gl::GL_COLOR_BUFFER_BIT gl::Clear
}

Example

See the SDL3 bindings repository for a complete OpenGL example using SDL3 for window/context creation.

License

Apache-2.0

About

Quadrate bindings for OpenGL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages