Git Product home page Git Product logo

gamen's People

Contributors

rajveermalviya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

gamen's Issues

Where to save Android library

At the hello wirkd example, where shall I save the main.so library generated from the GO code, so that the android app can load it?

Display Poll/Wait crashing after rendering with Vulkan once

Basically, I adapted this example code: https://github.com/bbredesen/go-vk-samples/blob/main/01_single_triangle/app.go - to use gamen instead.

First frame polls and renders nicely, but the 2nd run of the for-loop dies at if !d.Poll() with this:

github.com/rajveermalviya/gamen/internal/wayland._Cfunc_wl_display_dispatch_pending(0x1386060)
        _cgo_gotypes.go:504 +0x47 fp=0xc000191e08 sp=0xc000191de0 pc=0x4a6a87
github.com/rajveermalviya/gamen/internal/wayland.(*Display).pollAndDispatchEvents.func10(0xc000191e78?)
        /home/kristian/go/pkg/mod/github.com/rajveermalviya/[email protected]/internal/wayland/display.go:452 +0x3d fp=0xc000191e40 sp=0xc000191e08 pc=0x4ab71d
github.com/rajveermalviya/gamen/internal/wayland.(*Display).pollAndDispatchEvents(0xc0000e6000, 0x1?)
        /home/kristian/go/pkg/mod/github.com/rajveermalviya/[email protected]/internal/wayland/display.go:452 +0x1c8 fp=0xc000191ea8 sp=0xc000191e40 pc=0x4ab688
github.com/rajveermalviya/gamen/internal/wayland.(*Display).Wait(0x520450?)
        /home/kristian/go/pkg/mod/github.com/rajveermalviya/[email protected]/internal/wayland/display.go:232 +0x37 fp=0xc000191ec8 sp=0xc000191ea8 pc=0x4a9a97

Let me know if further info is needed.

Update: Xcb seems to work, this is just with Wayland.

Define interface in gamen package

@rajveermalviya Hi,

As recommended by the Go language, if a struct with methods satisfies an interface, you should indicate that in your code.

So the code is like this.

package win32
import (
"github.com/rajveermalviya/gamen"
)
var _ gamen.Window = (*Window)(nil)
type Window struct {
}

Currently, important interfaces such as Display and Window are defined in the display package.
However, the display package must define an important function called display.NewDisplay(). You will then refer to the concrete implementation (e.g. win32.NewDisplay()).
Therefore, if an interface is defined within the display package, the display package cannot be referenced from environment-dependent packages (e.g. win32). This is because cross-package references occur.
To prevent this problem, separate display.NewDisplay() and interface definition packages. Simply add the gamen package and define the interface there.

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.