Lachee / raylib-goplus

A newer version of the Go bindings for Raylib
zlib License
75 stars 6 forks source link

Not Really a BUG but missing some features [BUG] #23

Open ghost opened 3 years ago

ghost commented 3 years ago

Just to say I use your port of Raylib for Go just about everyday and it is great. Basically however some features seem to be missing which would be good to be able to use. The 3 below are ones that I am missing though I am sure there are more. I do understand you might be busy and it might be difficult to add though if you can put on a TO DO list you may have it would be great to have implemented in future. (these are from https://www.raylib.com/cheatsheet/cheatsheet.html)

DrawTexturePoly(Texture2D texture, Vector2 center, Vector2 points, Vector2 texcoords, int pointsCount, Color tint); // Draw a textured polygon

DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a polygon outline of n sides

GetCharPressed(void); // Get char pressed (unicode), call it multiple times for chars queued

To Reproduce Try and use the functions DrawTexturePoly or DrawPolyLines or GetCharPressed

Expected behavior Something however nothing is possible without the functions :(

go env Response

set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=      
set GOCACHE=C:\Users\nicholasimon\AppData\Local\go-build
set GOENV=C:\Users\nicholasimon\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\nicholasimon\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\nicholasimon\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16.3
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\NICHOL~1\AppData\Local\Temp\go-build2748051292=/tmp/go-build -gno-record-gcc-switches

Additional context Add any other context about the problem here.

Lachee commented 3 years ago

Hello,

thank you for your interest in this port. I am currently a major version behind Raylib, but am interested in upgrading it to the latest release. I will look at this hopefully this weekend for you, but no guarantees as I am flat out with some other stuff at the moment.

ghost commented 3 years ago

Okay, look don't rush it is not urgent but just wanted to let you know. Really appreciate your work on this, if you do it sometime it would be good.