h4o

module
v0.0.0-...-ce4c9c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2021 License: BSD-2-Clause

README

Modified G3N for my taste

requirement and install

to auto fix import

goimports 
go get golang.org/x/tools/cmd/goimports 

to modify eventtype enum (https://github.com/kasworld/genenum)

go get github.com/kasworld/genenum

to modify loglevel (https://github.com/kasworld/log)

go get github.com/kasworld/log
run install.sh to make genlog

change from G3N (https://github.com/g3n/engine)

remove wasm support

rename interface I*** -> ***I

NodeI
AppWindowI
DispatcherI
MaterialI
LightI
GraphicI
GeometryI
CameraI
LayoutI
PanelI
MaterialI
BuilderLayoutI
SolverI
BodyI
EquationI
ConstraintI
ForceFieldI
ShapeI
ChannelI

split package, file

split interface file 
core -> node, dispatcher, renderinfo, timemanager
color -> colornames
array -> array_f32, array_u32
util -> framerater

del app singletone

rename app to appbase, Application to AppBase

use same package name with main struct name as possible 

merge event to one file and to enum by genenum

evname string -> evname eventtype.EventType

replace logger

rename window -> appwindow

TODO

split interface package more del no need interface

Directories

Path Synopsis
app
demos/tests
This is a simple model for your tests
This is a simple model for your tests
Package animation
Package animation
Package window abstracts a platform-specific window.
Package window abstracts a platform-specific window.
Package audio contains sub packages for binding to external audio libraries and implements a spatial audio player.
Package audio contains sub packages for binding to external audio libraries and implements a spatial audio player.
al
Package al implements the Go bindings of a subset of the functions of the OpenAL C library.
Package al implements the Go bindings of a subset of the functions of the OpenAL C library.
ov
Package ov implements the Go bindings of a subset of the functions of the Ogg Vorbis File C library.
Package ov implements the Go bindings of a subset of the functions of the Ogg Vorbis File C library.
vorbis
Package vorbis implements the Go bindings of a subset (only one function) of the functions of the libvorbis library See API reference at: https://xiph.org/vorbis/doc/libvorbis/reference.html
Package vorbis implements the Go bindings of a subset (only one function) of the functions of the libvorbis library See API reference at: https://xiph.org/vorbis/doc/libvorbis/reference.html
Package camera contains virtual cameras and associated controls.
Package camera contains virtual cameras and associated controls.
experimental
collision
Package collision implements collision related algorithms and data structures.
Package collision implements collision related algorithms and data structures.
physics
Package collision implements collision related algorithms and data structures.
Package collision implements collision related algorithms and data structures.
physics/constraint
Package constraint implements physics constraints.
Package constraint implements physics constraints.
physics/equation
Package equation implements SPOOK equations based on the 2007 PhD thesis of Claude Lacoursière titled "Ghosts and Machines: Regularized Variational Methods for Interactive Simulations of Multibodies with Dry Frictional Contacts"
Package equation implements SPOOK equations based on the 2007 PhD thesis of Claude Lacoursière titled "Ghosts and Machines: Regularized Variational Methods for Interactive Simulations of Multibodies with Dry Frictional Contacts"
physics/solver
Package physics implements a basic physics engine.
Package physics implements a basic physics engine.
Package geometry implements several primitive geometry generators.
Package geometry implements several primitive geometry generators.
gls
Package gls implements a loader of OpenGL functions for the platform and a Go binding for selected OpenGL functions.
Package gls implements a loader of OpenGL functions for the platform and a Go binding for selected OpenGL functions.
Package graphic implements scene objects which have a graphic representation.
Package graphic implements scene objects which have a graphic representation.
gui
assets
Code generated by go-bindata.
Code generated by go-bindata.
Package light contains common light types which can be add to a 3D scene to illuminate it.
Package light contains common light types which can be add to a 3D scene to illuminate it.
loader
collada
Package collada
Package collada
gltf
Package gltf
Package gltf
obj
Package obj is used to parse the Wavefront OBJ file format (*.obj), including associated materials (*.mtl).
Package obj is used to parse the Wavefront OBJ file format (*.obj), including associated materials (*.mtl).
Package material contains virtual materials which specify the appearance of graphic objects.
Package material contains virtual materials which specify the appearance of graphic objects.
Package math32 implements basic math functions which operate directly on float32 numbers without casting and contains types of common entities used in 3D Graphics such as vectors, matrices, quaternions and others.
Package math32 implements basic math functions which operate directly on float32 numbers without casting and contains types of common entities used in 3D Graphics such as vectors, matrices, quaternions and others.
Package renderer implements the scene renderer.
Package renderer implements the scene renderer.
shaders
Package shaders contains the several shaders used by the engine
Package shaders contains the several shaders used by the engine
Package text implements text font support.
Package text implements text font support.
Package texture contains several types of textures which can be added to materials.
Package texture contains several types of textures which can be added to materials.
tools
g3nshaders
g3nshaders reads shaders files with ".glsl" extensions and generates a Go file containing strings with the content of these files.
g3nshaders reads shaders files with ".glsl" extensions and generates a Go file containing strings with the content of these files.
util

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL