Questions tagged [raylib]

A simple to use library for making videogames, distributed under the zLib license.

raylib is a simple and easy-to-use library to enjoy videogames programming.

raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education.

NOTE for ADVENTURERS: raylib is a programming library to enjoy videogames programming; no fancy interface, no visual helpers, no auto-debugging... just coding in the most pure spartan-programmers way.

Raylib.com

On Github

171 questions
0
votes
2 answers

Installing and using RayLib in macOS 12.2.1 with Python 3.10

I am using a macOS 12.2.1 with Python 3.10 and I am trying to install Raylib Python CFFI 3.7 or higher but whenever I run the python3 -m pip install raylib command or the pip3 install raylib command but I keep getting the error below: generating…
0
votes
0 answers

Implement normal mapping GLSL and raylib

I'm trying to implement normal mapping to my shaders but I keep getting weird results. I already implemented diffuse and specular light (which are working). I first calculated the normalized vector from the normal map : Ni = 2 * normalColor - 1 then…
Sanico
  • 39
  • 7
0
votes
1 answer

raylib :: Making the barest code required for a blank window

Greetings I'm very new to C. I would like to know the most minimal amount of steps/code for making a basic window using raylib. I'm using Linux and have followed the steps on github https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux, but…
user12081821
0
votes
2 answers

Can't make raylib, receives makefile error 576: recipe for target 'rmodels.o' failed

I am trying to use MinGW to compile the raylib package, but it's not going very good. It gives me this error: cc1.exe: some warnings being treated as errors Makefile:576: recipe for target 'rmodels.o' failed mingw32-make: *** [rmodels.o] Error…
Falconeer
  • 21
  • 4
0
votes
0 answers

How do I package code within VSCode with Raylib

I have made a game using C++ code within VSCode using raylib libraries and the raylib compiler. I want to know how the package/build the game into an application so I can play it without having to run the code over and over again. Does anyone know…
Okoma
  • 1
0
votes
0 answers

Trying to make a button in raylib

I'm trying to create a UI button in raylib_cs and I cant seem to find where I'm going wrong, Is anyone able to send me to a tutorial help out with the solution?? public bool CanClick() { Vector2 mousePos = new…
Keegz510
  • 1
  • 2
0
votes
1 answer

Raylib project stopped being able to run

Raylib project in visual studio was working perfectly fine, as in if you run the project it would execute and create a window and the game would run, but after opening the project one day, after attempting to run the project the same error kept…
Bobbfrey
  • 3
  • 1
0
votes
1 answer

Makefile:2: *** missing separator. Stop. How can i fix this I am new to Raylib for C++

This is my code in Makefile default: g++ ../main.cpp -o test.exe -O2 -Wall -Wno-missing-braces -I ../include/ -L ../lib/ - lraylib -lopengl32 -lgdi32 -lwinmm. This is my source tree C:. │ main.cpp │ └───build | Makefile │ ├───include │ …
Carl
  • 1
  • 2
0
votes
1 answer

MSYS2 gcc undefined reference _assert, what library am i missing?

Im trying to link with a game library that has already been compiled using mingw, called Raylib. However; whenever I use MSYS's gcc 10.2 it gives me the following undefined reference error: gcc main.c -Iraylib-3.7.0_win64_mingw-w64/include…
efel
  • 1,054
  • 3
  • 14
  • 29
0
votes
0 answers

Visual Studio link error "CloseWindow already defined" only when raylib.lib is linked after user32.lib

I have a compiled static library of raylib : raylib.lib. I compiled this library myself with Librarian > General > Additional Dependencies: winmm.lib This library has a C function like the following: void CloseWindow(void); And I also have my very…
Kyriet
  • 401
  • 5
  • 8
0
votes
1 answer

Raylib Makefile Issue

I've install raylib according to this wiki page. My Project Folder is look like this: [this][1] > ..\build>mingw32-make g++ ../main.cpp -o test.exe -O2 -Wall -Wno-missing-braces -I ../include/ -L ../lib/ -lraylib -lopeng132 -lgdi32…
user14307130
0
votes
0 answers

Can Someone Tell Me Why I Am Getting This Error While Compiling raylib for android

So, i Was compiling raylib for android with This and i linked all androidhome,jdk,ndk etc. correctly (I think) And This Error Log's Out In The Terminal Even When I Use A Template Project. PS D:\Dev\VISUAL studio PROJECT\RaylibTest> mingw32-make…
DG58
  • 11
  • 2
0
votes
1 answer

(Raylib) Cannot execute program in Notepad++. Exit code -1073741819

So I was running a C code in Notepad++ but it exited with the code: -1073741819. I don't know what this means and I cannot find any explanation online. Please tell me how to fix this problem. Here is the full console log: > Setup required…
Megarion
  • 9
  • 1
  • 5
0
votes
0 answers

How do I fix "Link error: Linking ES Shaders with non-ES shaders is not supported."?

I'm currently learning OpenGL and C, and have run into a problem with shader linking. I am using GLSL and Raylib and my goal is to generate the Mandelbrot set. My computer is running MacOS 10.12.6 with an NVIDIA GeForce 320M 256 MB graphics…
user15834033
0
votes
0 answers

How do I install an external library in Dev-c++? (raylib)

I want to include an external library called "raylib" on Dev-C++. I downloaded the library with .zip extension from github and tried to install it with Dev-C++ package installer, but it gives me an erorr and doesn't work. I exctracted it and tried…
Emilio P.
  • 23
  • 2