Code Monkey home page Code Monkey logo

fortran-raylib's People

Contributors

interkosmos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

djoetzi easifem

fortran-raylib's Issues

Only one texture can be present at a time

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.

FPM not working

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.

Problem with compiling

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.

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.