g2d is a framework to create 2D graphic applications. It is published on https://github.com/vbsw/g2d and https://gitlab.com/vbsw/g2d.
Copyright 2022, Vitali Baumtrok (vbsw@mailbox.org).
g2d is distributed under the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
g2d is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.
package main
import (
"fmt"
"github.com/vbsw/g2d"
)
type MyEngine struct {
g2d.Engine
params MyParameters
}
func (engine *MyEngine) ParseOSArgs() error {
infoOnly, err := engine.params.parseOSArgs()
engine.SetInfoOnly(infoOnly)
return err
}
func (engine *MyEngine) Info() {
fmt.Println("version 1.0.0")
}
func main() {
g2d.Start(new(MyEngine))
}
- https://go.dev/doc/install
- https://jmeubank.github.io/tdm-gcc/
- https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- https://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool
- https://github.com/golang/go/wiki/cgo
- https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies
- https://pkg.go.dev/cmd/link