diff --git a/src/Makefile b/src/Makefile index 35a10bc7..c50d4279 100644 --- a/src/Makefile +++ b/src/Makefile @@ -437,6 +437,7 @@ else ifeq ($(RAYLIB_LIBTYPE),SHARED) ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM_OS),WINDOWS) + # TODO: Compile resource file raylib.dll.rc for linkage on raylib.dll generation $(CC) -shared -o $(RAYLIB_RELEASE_PATH)/raylib.dll $(OBJS) -L$(RAYLIB_RELEASE_PATH) -static-libgcc -lopengl32 -lgdi32 -lwinmm -Wl,--out-implib,$(RAYLIB_RELEASE_PATH)/libraylibdll.a @echo "raylib dynamic library (raylib.dll) and import library (libraylibdll.a) generated!" endif diff --git a/src/raylib.dll.rc b/src/raylib.dll.rc new file mode 100644 index 00000000..e5dca309 --- /dev/null +++ b/src/raylib.dll.rc @@ -0,0 +1,27 @@ +GLFW_ICON ICON "raylib.ico" + +1 VERSIONINFO +FILEVERSION 2,5,0,0 +PRODUCTVERSION 2,5,0,0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + //BLOCK "080904E4" // English UK + BLOCK "040904E4" // English US + BEGIN + //VALUE "CompanyName", "raylib technologies" + VALUE "FileDescription", "raylib dynamic library (www.raylib.com)" + VALUE "FileVersion", "2.5.0" + VALUE "InternalName", "raylib_dll" + VALUE "LegalCopyright", "(c) 2019 Ramon Santamaria (@raysan5)" + //VALUE "OriginalFilename", "raylib.dll" + VALUE "ProductName", "raylib" + VALUE "ProductVersion", "2.5.0" + END + END + BLOCK "VarFileInfo" + BEGIN + //VALUE "Translation", 0x809, 1252 // English UK + VALUE "Translation", 0x409, 1252 // English US + END +END diff --git a/src/raylib.h b/src/raylib.h index 3bd64b3b..21202f18 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1174,13 +1174,14 @@ RLAPI void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontS RLAPI int MeasureText(const char *text, int fontSize); // Measure string width for default font RLAPI Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // Measure string size for Font RLAPI int GetGlyphIndex(Font font, int character); // Get index position for a unicode character on font -RLAPI int GetNextCodepoint(const char* text, int* count); // Returns next codepoint in a UTF8 encoded `text` or 0x3f(`?`) on failure. `count` will hold the total number of bytes processed. +RLAPI int GetNextCodepoint(const char *text, int *count); // Returns next codepoint in a UTF8 encoded string + // NOTE: 0x3f(`?`) is returned on failure, `count` will hold the total number of bytes processed // Text strings management functions // NOTE: Some strings allocate memory internally for returned strings, just be careful! RLAPI bool TextIsEqual(const char *text1, const char *text2); // Check if two text string are equal RLAPI unsigned int TextLength(const char *text); // Get text length, checks for '\0' ending -RLAPI unsigned int TextCountCodepoints(const char *text); // Get total number of characters(codepoints) in a UTF8 encoded `text` until '\0' is found. +RLAPI unsigned int TextCountCodepoints(const char *text); // Get total number of characters (codepoints) in a UTF8 encoded string RLAPI const char *TextFormat(const char *text, ...); // Text formatting with variables (sprintf style) RLAPI const char *TextSubtext(const char *text, int position, int length); // Get a piece of a text string RLAPI const char *TextReplace(char *text, const char *replace, const char *by); // Replace text string (memory should be freed!) diff --git a/src/raylib.rc b/src/raylib.rc index c2fdfa46..4d204c65 100644 --- a/src/raylib.rc +++ b/src/raylib.rc @@ -10,7 +10,7 @@ BEGIN BLOCK "040904E4" // English US BEGIN //VALUE "CompanyName", "raylib technologies" - VALUE "FileDescription", "Created using raylib (www.raylib.com)" + VALUE "FileDescription", "raylib application (www.raylib.com)" VALUE "FileVersion", "2.5.0" VALUE "InternalName", "raylib app" VALUE "LegalCopyright", "(c) 2019 Ramon Santamaria (@raysan5)"