Code Monkey home page Code Monkey logo

gforth-raylib's Introduction

gforth-raylib

4.5 Bindings in Progress using the new parser.

Yeah I'm gonna try eventually to update these...3.5 is still really good for gforth.

Raylib 3.5 bindings for Gforth.
gforth-raylib logo

Simply include raylib3.fs and you're good to go.

You will need to install raylib. Some distributions include a package but it'll be easiest to just use this process. Because of further dev branch updates I have yet to add, I would not recommend the process below right now. Download the Raylib 3.5 release zip and you should be good.

git clone https://github.com/raysan5/raylib
cd raylib/src
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
sudo make install RAYLIB_LIBTYPE=SHARED

Check https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux for more details.

projects

BearBit: An overlay for Gforth-Raylib that gives a simple fantasy console for making old 8-bit esque style games.

gforth-raylib's People

Contributors

arnautdaniel 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

Watchers

 avatar  avatar  avatar

gforth-raylib's Issues

Errors with lastest gforth

I have just installed the latest version of gforth (gforth 0.7.9_20230921) and the command

gforth example-camerafree3d.fs

gives the following error:
in file included from example-camerafree3d.fs:4:9:
raylib3.fs:1511:1: error: open-lib failed

end-c-library<<<
Backtrace:
libcc.fs:949:29: 0 $7FE66A0C9F20 throw
libcc.fs:1189:5: 1 $7FE66A0CB820 compile-wrapper-function1

with gforth 0.7.3, I have this error:

in file included from example-camerafree3d.fs:4
raylib3.fs:567: Undefined word
c-function InitWindow InitWindow n n >>>s<<< -- void ( width height title -- )
Backtrace:
$7F8E8BE58C90 throw
$7F8E8BE58D28 parse-libcc-type
$7F8E8BE5C0F8 parse-function-types
$7F8E8BE5C3A8 c-function-ft

I have installed raylib 3.5 and spent sometimes to try to fix these
problems, but I ran out of patience.

Is anybody working on this?

Hello

I tried using this library, apparently so many changes happened since this was created, change in:

  • names of alot of functions
  • number of parameters of some functions
  • some functions were removed
  • maybe more?
    I was fixing them on my machine one by one but I was stuck in some VR related functions and some errors I couldn't fix

I'm new to forth, is it easier to regenerate the lib based on raylib.h or change the resulting raylib3.fs is easier?
I tried generating it using swig but I saw maaany errors that I didn't know how to fix

I hope somebody has some time to update the codes

>vector2 definition

Hi,

When we enter the components of a vector2, we have to reverse
the order, while for vector3, it is, I suppose, as expected.

10e 20e >vector2 ok 1
vector2> ok f:2
f.s <2> 2.0000000000E1 1.0000000000E1 ok f:2

10e 20e 30e >vector3 ok 1
vector3> ok f:3
f.s <3> 1.0000000000E1 2.0000000000E1 3.0000000000E1 ok f:3

brd

Assistance in porting the binding

Hello, I'm trying to update the bindings to the last version; could you share the .i and -fsi.c files? I don't have any experience in making that kind of bindings, and I'm a bit confused by the whole thing.
Otherwise, got your original binding working; thank you so much for your hard work on this!

raylib3.fs:567: Undefined word

hello,

which minimal gforth version is needed to run the example?

I'm using gforth-0.7.3 and here is the result of the gforth example-camerafree3d.fs command.

in file included from *OS command line*:-1
in file included from example-camerafree3d.fs:4
raylib3.fs:567: Undefined word
c-function InitWindow InitWindow n n >>>s<<< -- void	( width height title -- )
Backtrace:
$7F744DCF9C90 throw 
$7F744DCF9D28 parse-libcc-type 
$7F744DCFD0F8 parse-function-types 
$7F744DCFD3A8 c-function-ft 

I've previously installed raylib as required in the readme

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.