Skip to content

Commit 9f8a2e4

Browse files
authored
Merge pull request #289 from raysan5/develop
Integrate develop branch
2 parents 949ed3f + 413d059 commit 9f8a2e4

File tree

22 files changed

+2123
-2210
lines changed

22 files changed

+2123
-2210
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Thumbs.db
4242
*.sbr
4343
*.sdf
4444
obj/
45-
[Rr]elease/
45+
# [Rr]elease/
4646
[Rr]elease.win32/
4747
_ReSharper*/
4848
[Tt]est[Rr]esult*
@@ -90,8 +90,6 @@ xcschememanagement.plist
9090
xcuserdata/
9191
DerivedData/
9292
*.dll
93-
src/libraylib.a
94-
src/libraylib.bc
9593

9694
# external libraries DLLs
9795
!src/external/glfw3/lib/win32/glfw3.dll
@@ -122,6 +120,8 @@ docs/examples/web/*/*.html
122120
!docs/examples/web/models/loader.html
123121

124122
# raylib release libs
123+
src/libraylib.a
124+
src/libraylib.bc
125125
!release/android/armeabi-v7a/libraylib.a
126126
!release/android/armeabi-v7a/libraylib.so
127127
!release/linux/libraylib.a

docs/examples/web/core/core_2d_camera.js

+1,582-1,931
Large diffs are not rendered by default.

examples/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
# WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop()
3131
PLATFORM ?= PLATFORM_DESKTOP
3232

33+
# define raylib directory for include and library
34+
RAYLIB_PATH ?= C:\raylib\raylib
35+
3336
# define NO to use OpenAL Soft as static library (shared by default)
3437
SHARED_OPENAL ?= NO
3538

3639
ifeq ($(PLATFORM),PLATFORM_WEB)
3740
SHARED_OPENAL = NO
3841
endif
3942

40-
# define raylib directory for include and library
41-
RAYLIB_PATH ?= C:\raylib\raylib
42-
4343
# determine PLATFORM_OS in case PLATFORM_DESKTOP selected
4444
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
4545
# No uname.exe on MinGW!, but OS=Windows_NT on Windows! ifeq ($(UNAME),Msys) -> Windows

examples/others/audio_standalone.c

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,24 @@
1111
* jar_mod - MOD audio file loading
1212
*
1313
* Compile audio module using:
14-
* gcc -c audio.c stb_vorbis.c -Wall -std=c99 -DAUDIO_STANDALONE
14+
* gcc -c audio.c stb_vorbis.c -Wall -std=c99 -DAUDIO_STANDALONE -DAL_LIBTYPE_STATIC
1515
*
1616
* Compile example using:
17-
* gcc -o $(NAME_PART).exe $(FILE_NAME) audio.o stb_vorbis.o -lopenal32 -std=c99
17+
* gcc -o audio_standalone.exe audio_standalone.c audio.o stb_vorbis.o -lopenal32 -lwinmm /
18+
* -Wall -std=c99 -Wl,-allow-multiple-definition
1819
*
19-
* This example has been created using raylib 1.5 (www.raylib.com)
20+
* This example has been created using raylib 1.7 (www.raylib.com)
2021
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
2122
*
22-
* Copyright (c) 2015 Ramon Santamaria (@raysan5)
23+
* Copyright (c) 2017 Ramon Santamaria (@raysan5)
2324
*
2425
********************************************************************************************/
2526

2627
#include <stdio.h>
2728
#if defined(_WIN32)
28-
#include <conio.h> // Windows only, no stardard library
29+
#include <conio.h> // Windows only, no stardard library
2930
#endif
31+
3032
#include "audio.h"
3133

3234
#if defined(__linux__)
Binary file not shown.
56 KB
Binary file not shown.
6.1 KB
Binary file not shown.

examples/others/rlgl_standalone.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66
* OpenGL 1.1 does not support shaders but it can also be used.
77
*
88
* Compile rlgl module using:
9-
* gcc -c rlgl.c -Wall -std=c99 -DRLGL_STANDALONE -DRAYMATH_IMPLEMENTATION -DGRAPHICS_API_OPENGL_33
9+
* gcc -c $(RAYLIB_DIR)\raylib\src\rlgl.c -DRLGL_STANDALONE -DRAYMATH_IMPLEMENTATION -DGRAPHICS_API_OPENGL_33 /
10+
* -I$(RAYLIB_DIR)\raylib\src\external -Wall -std=c99
1011
*
1112
* NOTE: rlgl module requires the following header-only files:
1213
* external/glad.h - OpenGL extensions loader (stripped to only required extensions)
13-
* shader_standard.h - Standard shader for materials and lighting
1414
* shader_distortion.h - Distortion shader for VR
1515
* raymath.h - Vector and matrix math functions
1616
*
1717
* Compile example using:
18-
* gcc -o rlgl_standalone.exe rlgl_standalone.c rlgl.o -lglfw3 -lopengl32 -lgdi32 -std=c99
18+
* gcc -o rlgl_standalone.exe rlgl_standalone.c rlgl.o -s $(RAYLIB_DIR)\raylib\raylib_icon -I$(RAYLIB_DIR)\raylib\src /
19+
* -L. -L$(RAYLIB_DIR)\raylib\src -lglfw3 -lopengl32 -lgdi32 -Wall -std=c99
1920
*
20-
* This example has been created using raylib 1.5 (www.raylib.com)
21+
* This example has been created using raylib 1.7 (www.raylib.com)
2122
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
2223
*
23-
* Copyright (c) 2015 Ramon Santamaria (@raysan5)
24+
* Copyright (c) 2017 Ramon Santamaria (@raysan5)
2425
*
2526
********************************************************************************************/
2627

440 KB
Binary file not shown.
484 KB
Binary file not shown.

release/html5/libraylib.bc

80 Bytes
Binary file not shown.

release/win32/mingw32/libraylib.a

-13.2 KB
Binary file not shown.

src/Makefile

+10-7
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@
4444
# possible platforms: PLATFORM_DESKTOP PLATFORM_ANDROID PLATFORM_RPI PLATFORM_WEB
4545
PLATFORM ?= PLATFORM_DESKTOP
4646

47+
# define raylib default path, required to look for emsdk and android-toolchain
48+
RAYLIB_PATH ?= C:/raylib
49+
4750
# define YES if you want shared/dynamic version of library instead of static (default)
48-
SHARED ?= NO
51+
SHARED_RAYLIB ?= NO
4952

5053
# use OpenAL Soft as shared library (.so / .dll)
5154
# NOTE: If defined NO, static OpenAL Soft library should be provided
@@ -84,7 +87,7 @@ endif
8487

8588
ifeq ($(PLATFORM),PLATFORM_WEB)
8689
# Emscripten required variables
87-
EMSDK_PATH = C:/emsdk
90+
EMSDK_PATH = $(RAYLIB_PATH)/emsdk
8891
EMSCRIPTEN_VERSION = 1.37.9
8992
CLANG_VERSION=e1.37.9_64bit
9093
PYTHON_VERSION=2.7.5.3_64bit
@@ -101,7 +104,7 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID)
101104
# Android standalone toolchain path
102105
# NOTE: This path is also used if toolchain generation
103106
#ANDROID_TOOLCHAIN = $(CURDIR)/toolchain
104-
ANDROID_TOOLCHAIN = C:/raylib/android-toolchain
107+
ANDROID_TOOLCHAIN = $(RAYLIB_PATH)/android-toolchain
105108

106109
# Android architecture: ARM or ARM64
107110
ANDROID_ARCH ?= ARM
@@ -209,7 +212,7 @@ endif
209212
#CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes
210213

211214
# if shared library required, make sure code is compiled as position independent
212-
ifeq ($(SHARED),YES)
215+
ifeq ($(SHARED_RAYLIB),YES)
213216
CFLAGS += -fPIC
214217
SHAREDFLAG = BUILDING_DLL
215218
SHAREDLIBS = -Lexternal/glfw3/lib/win32 -Lexternal/openal_soft/lib/win32 -lglfw3 -lgdi32
@@ -313,7 +316,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
313316
emcc -O1 $(OBJS) -o $(OUTPUT_PATH)/libraylib.bc
314317
@echo "libraylib.bc generated (web version)!"
315318
else
316-
ifeq ($(SHARED),YES)
319+
ifeq ($(SHARED_RAYLIB),YES)
317320
ifeq ($(PLATFORM_OS),LINUX)
318321
# compile raylib to shared library version for GNU/Linux.
319322
# WARNING: you should type "make clean" before doing this target
@@ -388,7 +391,7 @@ ifeq ($(ROOT),root)
388391
# libraries and header files. These directory (/usr/local/lib and
389392
# /usr/local/include/) are for libraries that are installed
390393
# manually (without a package manager).
391-
ifeq ($(SHARED),YES)
394+
ifeq ($(SHARED_RAYLIB),YES)
392395
cp --update $(OUTPUT_PATH)/libraylib.so /usr/local/lib/libraylib.so
393396
else
394397
cp --update raylib.h /usr/local/include/raylib.h
@@ -408,7 +411,7 @@ uninstall :
408411
ifeq ($(ROOT),root)
409412
ifeq ($(PLATFORM_OS),LINUX)
410413
rm --force /usr/local/include/raylib.h
411-
ifeq ($(SHARED),YES)
414+
ifeq ($(SHARED_RAYLIB),YES)
412415
rm --force /usr/local/lib/libraylib.so
413416
else
414417
rm --force /usr/local/lib/libraylib.a
98.5 KB
Binary file not shown.
1.34 MB
Binary file not shown.
Binary file not shown.

src/resources src/raylib_icon

105 KB
Binary file not shown.

0 commit comments

Comments
 (0)