interkosmos / fortran-raylib Goto Github PK
View Code? Open in Web Editor NEWFortran 2018 interface bindings to raylib 4.5/4.6/5.0/5.1
License: ISC License
Fortran 2018 interface bindings to raylib 4.5/4.6/5.0/5.1
License: ISC License
I was writing a flappy bird clone, and I noticed that there can be only one texture2d_type
in a module (or maybe in the whole program).
When I add a second one, the first one gets zeroed out.
When trying to build with fpm (added as a dependency), the error shows up:
raylib.f90 failed.
[ 33%] Compiling...
build/dependencies/fortran-raylib/src/raylib.f90:318:82:
318 | type(color_type), parameter, public :: LIGHTGRAY = color_type(200, 200, 200, 255)
| 1
Error: Arithmetic overflow converting INTEGER(4) to INTEGER(1) at (1). This check can be disabled with the option ‘-fno-range-check’
compilation terminated due to -fmax-errors=1.
<ERROR> Compilation failed for object " build_dependencies_fortran-raylib_src_raylib.f90.o "
<ERROR> stopping due to failed compilation
STOP 1
How to fix that? Thanks in advance.
I wanted to do the test program but when I went to compile it, it said
use :: raylib
raylib.mod could not be opened.
it wasn’t able to find it. This is what I used to compile: $ gfortran -L/wesley/local/lib -I/wesley/raylib/build/raylib/include -o example example.f90 \libfortran-raylib.a -lraylib -lGL -lpthread -lm -ldl -lrt -1X11
I’m not sure it I need to rewrite wesley/local/lib if it’s that which is messing it up. Other than that no other errors.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.