Closed
Description
Raylib uses generic names like Font
, Music
, Sound
, Shader
, Model
, Texture
, BoundingBox
, Matrix
, BeginDrawing
, PlaySound
, etc. These names could also be used in anywhere, and should be avoided in a library, because it can lead to clashes. There are other (mostly closed) issues here about compilation errors that are caused by this.
C++ has namespaces, but as raylib is written in C, maybe you should consider using a prefix for all the names in the library? Maybe raylib_
, Ray_
or something like that.
For backward compatibility maybe provide an header file that does #define SomeName Ray_SomeName
.
Metadata
Metadata
Assignees
Labels
No labels