aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-08-28 14:17:35 +0200
committerraysan5 <raysan5@gmail.com>2015-08-28 14:17:35 +0200
commit12581c1721a3cbca990766cb98b78211b59074be (patch)
treef79c76e3b963b6e5b5e3b8e7566b776d450b8de5 /examples
parent324259ef8e9a758aafa89ff7cf101037defa92a9 (diff)
downloadraylib-12581c1721a3cbca990766cb98b78211b59074be.tar.gz
raylib-12581c1721a3cbca990766cb98b78211b59074be.zip
Changed mail address by twitter user
Probably more useful...
Diffstat (limited to 'examples')
-rw-r--r--examples/audio_sound_loading.c2
-rw-r--r--examples/core_3d_mode.c2
-rw-r--r--examples/core_basic_window_web.c2
-rw-r--r--examples/core_color_select.c2
-rw-r--r--examples/core_input_gamepad.c2
-rw-r--r--examples/core_input_keys.c2
-rw-r--r--examples/core_input_mouse.c2
-rw-r--r--examples/core_mouse_wheel.c2
-rw-r--r--examples/core_random_values.c2
-rw-r--r--examples/models_custom_shader.c86
-rw-r--r--examples/models_geometric_shapes.c2
-rw-r--r--examples/shapes_basic_shapes.c2
-rw-r--r--examples/shapes_colors_palette.c2
-rw-r--r--examples/shapes_logo_raylib.c2
-rw-r--r--examples/shapes_logo_raylib_anim.c2
-rw-r--r--examples/text_sprite_fonts.c2
-rw-r--r--examples/textures_logo_raylib.c2
17 files changed, 16 insertions, 102 deletions
diff --git a/examples/audio_sound_loading.c b/examples/audio_sound_loading.c
index 359af0af..1376a27d 100644
--- a/examples/audio_sound_loading.c
+++ b/examples/audio_sound_loading.c
@@ -7,7 +7,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_3d_mode.c b/examples/core_3d_mode.c
index 2275058d..c38da256 100644
--- a/examples/core_3d_mode.c
+++ b/examples/core_3d_mode.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_basic_window_web.c b/examples/core_basic_window_web.c
index b35c07e6..65650b1a 100644
--- a/examples/core_basic_window_web.c
+++ b/examples/core_basic_window_web.c
@@ -15,7 +15,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_color_select.c b/examples/core_color_select.c
index a2a79ed9..118dc88a 100644
--- a/examples/core_color_select.c
+++ b/examples/core_color_select.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_input_gamepad.c b/examples/core_input_gamepad.c
index 384ef989..64be4cd8 100644
--- a/examples/core_input_gamepad.c
+++ b/examples/core_input_gamepad.c
@@ -8,7 +8,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_input_keys.c b/examples/core_input_keys.c
index 442ae840..99d5e516 100644
--- a/examples/core_input_keys.c
+++ b/examples/core_input_keys.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_input_mouse.c b/examples/core_input_mouse.c
index eeef8c7a..c64b421e 100644
--- a/examples/core_input_mouse.c
+++ b/examples/core_input_mouse.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_mouse_wheel.c b/examples/core_mouse_wheel.c
index 08c2ee1e..6a5252ee 100644
--- a/examples/core_mouse_wheel.c
+++ b/examples/core_mouse_wheel.c
@@ -5,7 +5,7 @@
* This test has been created using raylib 1.1 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/core_random_values.c b/examples/core_random_values.c
index 20989ee1..98e0e91e 100644
--- a/examples/core_random_values.c
+++ b/examples/core_random_values.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.1 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/models_custom_shader.c b/examples/models_custom_shader.c
deleted file mode 100644
index 5430ed65..00000000
--- a/examples/models_custom_shader.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/*******************************************************************************************
-*
-* raylib [models] example - Load and draw a 3d model (OBJ)
-*
-* This example has been created using raylib 1.0 (www.raylib.com)
-* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
-*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
-*
-********************************************************************************************/
-
-#include "raylib.h"
-
-int main()
-{
- // Initialization
- //--------------------------------------------------------------------------------------
- int screenWidth = 1280;
- int screenHeight = 720;
-
- InitWindow(screenWidth, screenHeight, "raylib [models] example - custom shader");
-
- // Define the camera to look into our 3d world
- Camera camera = {{ 10.0, 8.0, 10.0 }, { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }};
-
- Texture2D texture = LoadTexture("resources/catsham.png"); // Load model texture
- Shader shader = LoadShader("resources/shaders/custom.vs", "resources/shaders/custom.fs");
- //Shader poste = LoadShader("resources/shaders/custom.vs", "resources/shaders/pixel.fs");
-
- Model cat = LoadModel("resources/cat.obj"); // Load OBJ model
-
- SetModelTexture(&cat, texture); // Bind texture to model
- //SetModelShader(&cat, poste);
-
- Vector3 catPosition = { 0.0, 0.0, 0.0 }; // Set model position
-
- SetPostproShader(shader);
-
- SetTargetFPS(60); // Set our game to run at 60 frames-per-second
- //--------------------------------------------------------------------------------------
-
- // Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
- {
- // Update
- //----------------------------------------------------------------------------------
- if (IsKeyDown(KEY_LEFT)) catPosition.x -= 0.2;
- if (IsKeyDown(KEY_RIGHT)) catPosition.x += 0.2;
- if (IsKeyDown(KEY_UP)) catPosition.z -= 0.2;
- if (IsKeyDown(KEY_DOWN)) catPosition.z += 0.2;
- //----------------------------------------------------------------------------------
-
- // Draw
- //----------------------------------------------------------------------------------
- BeginDrawing();
-
- ClearBackground(RAYWHITE);
-
- Begin3dMode(camera);
-
- DrawModel(cat, catPosition, 0.1f, WHITE); // Draw 3d model with texture
-
- DrawGrid(10.0, 1.0); // Draw a grid
-
- DrawGizmo(catPosition); // Draw gizmo
-
- End3dMode();
-
- DrawFPS(10, 10);
-
- EndDrawing();
- //----------------------------------------------------------------------------------
- }
-
- // De-Initialization
- //--------------------------------------------------------------------------------------
- UnloadTexture(texture); // Unload texture
- UnloadModel(cat); // Unload model
- UnloadShader(shader);
- //UnloadShader(poste);
-
- CloseWindow(); // Close window and OpenGL context
- //--------------------------------------------------------------------------------------
-
- return 0;
-} \ No newline at end of file
diff --git a/examples/models_geometric_shapes.c b/examples/models_geometric_shapes.c
index 3a649a3a..e2d41dcd 100644
--- a/examples/models_geometric_shapes.c
+++ b/examples/models_geometric_shapes.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/shapes_basic_shapes.c b/examples/shapes_basic_shapes.c
index 4ae9f4df..4b14af89 100644
--- a/examples/shapes_basic_shapes.c
+++ b/examples/shapes_basic_shapes.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/shapes_colors_palette.c b/examples/shapes_colors_palette.c
index 926dcdf8..3e161114 100644
--- a/examples/shapes_colors_palette.c
+++ b/examples/shapes_colors_palette.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/shapes_logo_raylib.c b/examples/shapes_logo_raylib.c
index a9e5104a..3dd8fbf3 100644
--- a/examples/shapes_logo_raylib.c
+++ b/examples/shapes_logo_raylib.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/shapes_logo_raylib_anim.c b/examples/shapes_logo_raylib_anim.c
index cd3a4aa6..d0831378 100644
--- a/examples/shapes_logo_raylib_anim.c
+++ b/examples/shapes_logo_raylib_anim.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.1 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/text_sprite_fonts.c b/examples/text_sprite_fonts.c
index e27e8c08..423fa250 100644
--- a/examples/text_sprite_fonts.c
+++ b/examples/text_sprite_fonts.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
diff --git a/examples/textures_logo_raylib.c b/examples/textures_logo_raylib.c
index f4aeb738..2ebf0867 100644
--- a/examples/textures_logo_raylib.c
+++ b/examples/textures_logo_raylib.c
@@ -5,7 +5,7 @@
* This example has been created using raylib 1.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com)
+* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
********************************************************************************************/