Coder Social home page Coder Social logo

metaleap / go-opengl Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 2.0 1.27 MB

[stale since 2013] lib for creating OpenGL apps of the cross-platform and modern sort (ie. Core profile 3.3+, shader-based, no display lists etc)

Go 100.00%
go golang gogl gl-binding opengl-bindings opengl

go-opengl's Introduction

go-opengl

Go packages for working with OpenGL. While more or less adequate for general use, they're being developed in conjunction with go:ngine and thus tend to be slightly tweaked, optimized or designed around go:ngine's needs and usage patterns.

core:

A (very) GoGL-like OpenGL binding used by go:ngine.

  • includes strictly only GL core profile functionality from version 3.3 onwards (up until 4.3) -- note, this does not mean that a core profile context is required, although it is probably advisable on any current-gen GPU with recent drivers
  • no compatibility-profile-only functionality or any that was deprecated or removed at some (any) point
  • Init() and "stolen-from-GoGL" utility functions moved to a Util struct: so every exported (non-method) function is a direct CGO binding function. (Just minor cosmetics really.)
  • added to Util: ErrorFlags() method
  • embeds the following GL extensions right inside the same binding package:

util:

Based on the above core GL binding package, provides higher-level utility constructs and a few sane lean minimalist wrappers (without going full-on "OO"-overboard).

cmd:

  • opengl-minimal-app: a "minimal" program using OpenGL core profile to draw a triangle and a quad, to test the above core GL binding package with GLFW
  • gogl-minimal-app: same but with the GoGL (gl43) binding
  • gen-opengl-bindings: used to generate the above core GL binding package

go-opengl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-opengl's Issues

Broken import paths for github.com/metaleap/go-util

During go get github.com/go3d/go-opengl/... got this:

package github.com/go3d/go-opengl/...
        imports github.com/go3d/go-opengl/cmd/gen-opengl-bindings
        imports github.com/go-forks/xmlx
        imports github.com/metaleap/go-util
        imports github.com/metaleap/go-util
        imports github.com/metaleap/go-util: no buildable Go source files in .../gocode/src/github.com/metaleap/go-util
package github.com/go3d/go-opengl/...
        imports github.com/go3d/go-opengl/cmd/gen-opengl-bindings
        imports github.com/go-forks/xmlx
        imports github.com/metaleap/go-util
        imports github.com/metaleap/go-util/io
        imports github.com/metaleap/go-util/io
        imports github.com/metaleap/go-util/io: cannot find package "github.com/metaleap/go-util/io" in any of:
        .../go/src/pkg/github.com/metaleap/go-util/io (from $GOROOT)
        .../gocode/src/github.com/metaleap/go-util/io (from $GOPATH)
package github.com/go3d/go-opengl/...
        imports github.com/go3d/go-opengl/cmd/gen-opengl-bindings
        imports github.com/go-forks/xmlx
        imports github.com/metaleap/go-util
        imports github.com/metaleap/go-util/io
        imports github.com/metaleap/go-util/slice
        imports github.com/metaleap/go-util/slice
        imports github.com/metaleap/go-util/slice: cannot find package "github.com/metaleap/go-util/slice" in any of:
        .../go/src/pkg/github.com/metaleap/go-util/slice (from $GOROOT)
        .../gocode/src/github.com/metaleap/go-util/slice (from $GOPATH)
package github.com/go3d/go-opengl/...
        imports github.com/go3d/go-opengl/cmd/gen-opengl-bindings
        imports github.com/go-forks/xmlx
        imports github.com/metaleap/go-util
        imports github.com/metaleap/go-util/io
        imports github.com/metaleap/go-util/slice
        imports github.com/metaleap/go-util/str
        imports github.com/metaleap/go-util/str
        imports github.com/metaleap/go-util/str: cannot find package "github.com/metaleap/go-util/str" in any of:
        .../go/src/pkg/github.com/metaleap/go-util/str (from $GOROOT)
        .../gocode/src/github.com/metaleap/go-util/str (from $GOPATH)

The packages have been migrated to github.com/go-utils.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.