Skip to content

decryptOS/OSGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OSGL

OpenSwiftGL (OSGL) is a lightweight Swift 3 compatible library, which makes OpenGL 3 and 4 functions ready to use.

Installation

To use OSGL with the Swift Package Manager, simply add it to the dependencies in your Package.swift file:

import PackageDescription

let package = Package(
	name: "Your-App-Name",
	dependencies: [
        	// ...
		.Package(url: "https://github.com/decryptOS/OSGL", majorVersion: 1),
        	// ...
	]
)

Usage

To use OSGL you simply have to add import OSGL to your .swift files and all OpenGL constants and functions become available. To initialize OSGL you have to call OSGL.load() once at the beginning of your application. This way OSGL loads all OpenGL functions from the system.

About

A lightweight Swift 3 compatible library to use modern OpenGL functions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages