diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/Makefile | 17 | ||||
| -rw-r--r-- | examples/shaders/resources/fudesumi.png | bin | 219234 -> 222742 bytes | |||
| -rw-r--r-- | examples/text/text_ttf_loading.c | 4 | ||||
| -rw-r--r-- | examples/textures/resources/fudesumi.png | bin | 219234 -> 222742 bytes | |||
| -rw-r--r-- | examples/textures/resources/fudesumi.raw | bin | 786432 -> 786432 bytes | |||
| -rw-r--r-- | examples/textures/resources/scarfy.png | bin | 21597 -> 33146 bytes |
6 files changed, 11 insertions, 10 deletions
diff --git a/examples/Makefile b/examples/Makefile index 060789e7..18a5d1f4 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -4,7 +4,7 @@ # # NOTE: By default examples are compiled using raylib static library and OpenAL Soft shared library # -# Copyright (c) 2013-2016 Ramon Santamaria (@raysan5) +# Copyright (c) 2013-2017 Ramon Santamaria (@raysan5) # # This software is provided "as-is", without any express or implied warranty. In no event # will the authors be held liable for any damages arising from the use of this software. @@ -23,20 +23,22 @@ # #************************************************************************************************** +.PHONY: all clean + # define raylib platform to compile for # possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB # WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop() PLATFORM ?= PLATFORM_DESKTOP # define NO to use OpenAL Soft as static library (shared by default) -SHARED_OPENAL ?= YES +SHARED_OPENAL ?= NO ifeq ($(PLATFORM),PLATFORM_WEB) SHARED_OPENAL = NO endif # define raylib directory for include and library -RAYLIB_PATH = D:\GitHub\raylib +RAYLIB_PATH ?= C:\raylib\raylib # determine PLATFORM_OS in case PLATFORM_DESKTOP selected ifeq ($(PLATFORM),PLATFORM_DESKTOP) @@ -99,7 +101,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB) # --memory-init-file 0 # to avoid an external memory initialization code file (.mem) # -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) - # -preload-file file.res # embbed file.res resource into .data file + # --preload-file file.res # embbed file.res resource into .data file endif ifeq ($(PLATFORM),PLATFORM_RPI) CFLAGS = -O2 -s -Wall -std=gnu99 -fgnu89-inline @@ -174,7 +176,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # requires the following packages: # libglfw3-dev libopenal-dev libegl1-mesa-dev LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -lpthread -ldl - # on XWindow could require also below libraries, just uncomment + # on XWindow requires also below libraries LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor else ifeq ($(PLATFORM_OS),OSX) @@ -202,7 +204,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI) LIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lbcm_host -lopenal endif ifeq ($(PLATFORM),PLATFORM_WEB) - # just adjust the correct path to libraylib.bc + # NOTE: Set the correct path to libraylib.bc LIBS = $(RAYLIB_RELEASE)/libraylib.bc endif @@ -282,8 +284,7 @@ EXAMPLES = \ fix_dylib \ -# typing 'make' will invoke the default target entry called 'all', -# in this case, the 'default' target entry is raylib +# typing 'make' will invoke the default target entry all: examples # generic compilation pattern diff --git a/examples/shaders/resources/fudesumi.png b/examples/shaders/resources/fudesumi.png Binary files differindex 8ba983dc..9d9038fa 100644 --- a/examples/shaders/resources/fudesumi.png +++ b/examples/shaders/resources/fudesumi.png diff --git a/examples/text/text_ttf_loading.c b/examples/text/text_ttf_loading.c index 4e490399..02b7f95f 100644 --- a/examples/text/text_ttf_loading.c +++ b/examples/text/text_ttf_loading.c @@ -25,7 +25,7 @@ int main() // NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required) // TTF SpriteFont loading with custom generation parameters - SpriteFont font = LoadSpriteFontTTF("resources/KAISG.ttf", 96, 0, 0); + SpriteFont font = LoadSpriteFontEx("resources/KAISG.ttf", 96, 0, 0); // Generate mipmap levels to use trilinear filtering // NOTE: On 2D drawing it won't be noticeable, it looks like FILTER_BILINEAR @@ -82,7 +82,7 @@ int main() if (count == 1) // Only support one ttf file dropped { UnloadSpriteFont(font); - font = LoadSpriteFontTTF(droppedFiles[0], fontSize, 0, 0); + font = LoadSpriteFontEx(droppedFiles[0], fontSize, 0, 0); ClearDroppedFiles(); } } diff --git a/examples/textures/resources/fudesumi.png b/examples/textures/resources/fudesumi.png Binary files differindex 8ba983dc..9d9038fa 100644 --- a/examples/textures/resources/fudesumi.png +++ b/examples/textures/resources/fudesumi.png diff --git a/examples/textures/resources/fudesumi.raw b/examples/textures/resources/fudesumi.raw Binary files differindex e05fa0e1..dad6ff0a 100644 --- a/examples/textures/resources/fudesumi.raw +++ b/examples/textures/resources/fudesumi.raw diff --git a/examples/textures/resources/scarfy.png b/examples/textures/resources/scarfy.png Binary files differindex a377a712..beb5ffa0 100644 --- a/examples/textures/resources/scarfy.png +++ b/examples/textures/resources/scarfy.png |
