aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile6
-rw-r--r--examples/resources/shaders/glsl330/bloom.fs2
-rw-r--r--examples/resources/shaders/glsl330/swirl.fs2
3 files changed, 7 insertions, 3 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 74335fe8..534adee8 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -85,6 +85,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# add standard directories for GNU/Linux
ifeq ($(PLATFORM_OS),LINUX)
INCLUDES = -I. -I../src -I/usr/local/include/raylib/
+ else ifeq ($(PLATFORM_OS),OSX)
+ INCLUDES = -I. -I../src
else
INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
# external libraries headers
@@ -103,6 +105,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# add standard directories for GNU/Linux
ifeq ($(PLATFORM_OS),LINUX)
LFLAGS = -L. -L../../src
+ else ifeq ($(PLATFORM_OS),OSX)
+ LFLAGS = -L. -L../src
else
LFLAGS = -L. -L../../src -LC:/raylib/raylib/src
# external libraries to link with
@@ -129,7 +133,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# libraries for OS X 10.9 desktop compiling
# requires the following packages:
# libglfw3-dev libopenal-dev libegl1-mesa-dev
- LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
+ LIBS = -lraylib -lglfw3 -framework OpenGL -framework OpenAl -framework Cocoa
else
# libraries for Windows desktop compiling
# NOTE: GLFW3 and OpenAL Soft libraries should be installed
diff --git a/examples/resources/shaders/glsl330/bloom.fs b/examples/resources/shaders/glsl330/bloom.fs
index c8cb0d32..47ddee30 100644
--- a/examples/resources/shaders/glsl330/bloom.fs
+++ b/examples/resources/shaders/glsl330/bloom.fs
@@ -22,7 +22,7 @@ void main()
{
for (int j = -3; j < 3; j++)
{
- sum += texture2D(texture0, fragTexCoord + vec2(j, i)*0.004)*0.25;
+ sum += texture(texture0, fragTexCoord + vec2(j, i)*0.004)*0.25;
}
}
diff --git a/examples/resources/shaders/glsl330/swirl.fs b/examples/resources/shaders/glsl330/swirl.fs
index b1dc82f0..da098754 100644
--- a/examples/resources/shaders/glsl330/swirl.fs
+++ b/examples/resources/shaders/glsl330/swirl.fs
@@ -40,7 +40,7 @@ void main (void)
}
tc += center;
- vec3 color = texture2D(texture0, tc/texSize).rgb;
+ vec3 color = texture(texture0, tc/texSize).rgb;
finalColor = vec4(color, 1.0);;
} \ No newline at end of file