vbsw / g2d

experimental [DEPRECATED]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

g2d

Go Reference Go Report Card Stability: Experimental

About

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

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.

Example

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))
}

References

About

experimental [DEPRECATED]

License:Boost Software License 1.0


Languages

Language:C 75.1%Language:Go 24.9%