summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cheatsheet/raylib_audio.c5
-rw-r--r--cheatsheet/raylib_core.c10
-rw-r--r--cheatsheet/raylib_shaders.c1
-rw-r--r--examples/web/audio/loader.html106
-rw-r--r--examples/web/core/core_input_gestures.c2
-rw-r--r--examples/web/core/core_input_multitouch.c2
-rw-r--r--examples/web/core/loader.html106
-rw-r--r--examples/web/models/loader.html106
-rw-r--r--examples/web/models/models_first_person_maze.c2
-rw-r--r--examples/web/physics/loader.html106
-rw-r--r--examples/web/physics/physac.h4
-rw-r--r--examples/web/shaders/loader.html106
-rw-r--r--examples/web/shaders/shaders_custom_uniform.c2
-rw-r--r--examples/web/shapes/loader.html106
-rw-r--r--examples/web/shapes/shapes_bouncing_ball.c2
-rw-r--r--examples/web/shapes/shapes_colors_palette.c2
-rw-r--r--examples/web/shapes/shapes_draw_circle_sector.c2
-rw-r--r--examples/web/shapes/shapes_draw_ring.c2
-rw-r--r--examples/web/shapes/shapes_easings_box_anim.c2
-rw-r--r--examples/web/shapes/shapes_following_eyes.c8
-rw-r--r--examples/web/shapes/shapes_rectangle_scaling.c4
-rw-r--r--examples/web/text/loader.html106
-rw-r--r--examples/web/text/text_font_filters.c2
-rw-r--r--examples/web/text/text_font_loading.c2
-rw-r--r--examples/web/text/text_font_sdf.c4
-rw-r--r--examples/web/textures/loader.html106
26 files changed, 452 insertions, 454 deletions
diff --git a/cheatsheet/raylib_audio.c b/cheatsheet/raylib_audio.c
index eaa3585..e6f9793 100644
--- a/cheatsheet/raylib_audio.c
+++ b/cheatsheet/raylib_audio.c
@@ -7,7 +7,6 @@
// Wave/Sound loading/unloading functions
Wave LoadWave(const char *fileName); // Load wave data from file
- Wave LoadWaveEx(void *data, int sampleCount, int sampleRate, int sampleSize, int channels); // Load wave data from raw array data
Sound LoadSound(const char *fileName); // Load sound from file
Sound LoadSoundFromWave(Wave wave); // Load sound from wave data
void UpdateSound(Sound sound, const void *data, int samplesCount); // Update sound buffer with new data
@@ -51,7 +50,7 @@
AudioStream InitAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels); // Init audio stream (to stream raw audio pcm data)
void UpdateAudioStream(AudioStream stream, const void *data, int samplesCount); // Update audio stream buffers with data
void CloseAudioStream(AudioStream stream); // Close audio stream and free memory
- bool IsAudioBufferProcessed(AudioStream stream); // Check if any audio stream buffers requires refill
+ bool IsAudioStreamProcessed(AudioStream stream); // Check if any audio stream buffers requires refill
void PlayAudioStream(AudioStream stream); // Play audio stream
void PauseAudioStream(AudioStream stream); // Pause audio stream
void ResumeAudioStream(AudioStream stream); // Resume audio stream
@@ -59,4 +58,4 @@
void StopAudioStream(AudioStream stream); // Stop audio stream
void SetAudioStreamVolume(AudioStream stream, float volume); // Set volume for audio stream (1.0 is max level)
void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for audio stream (1.0 is base level)
-
+ void SetAudioStreamBufferSizeDefault(int size); // Default size for new audio streams
diff --git a/cheatsheet/raylib_core.c b/cheatsheet/raylib_core.c
index eecbaec..4d08523 100644
--- a/cheatsheet/raylib_core.c
+++ b/cheatsheet/raylib_core.c
@@ -55,7 +55,7 @@
Matrix GetCameraMatrix(Camera camera); // Returns camera transform matrix (view matrix)
Matrix GetCameraMatrix2D(Camera2D camera); // Returns camera 2d transform matrix
Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Returns the screen space position for a 3d world space position
- Vector2 GetWorldToScreenEx(Vector3 position, Camera camera,int width, int height); // Returns size position for a 3d world space position
+ Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height); // Returns size position for a 3d world space position
Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); // Returns the screen space position for a 2d camera world space position
Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); // Returns the world space position for a 2d camera screen space position
@@ -84,8 +84,8 @@
int GetRandomValue(int min, int max); // Returns a random value between min and max (both included)
// Files management functions
- unsigned char *LoadFileData(const char *fileName, int *bytesRead); // Load file data as byte array (read)
- void SaveFileData(const char *fileName, void *data, int bytesToWrite); // Save data to file from byte array (write)
+ unsigned char *LoadFileData(const char *fileName, unsigned int *bytesRead); // Load file data as byte array (read)
+ void SaveFileData(const char *fileName, void *data, unsigned int bytesToWrite); // Save data to file from byte array (write)
char *LoadFileText(const char *fileName); // Load text data from file (read), returns a '\0' terminated string
void SaveFileText(const char *fileName, char *text); // Save text data to file (write), string must be '\0' terminated
bool FileExists(const char *fileName); // Check if file exists
@@ -109,8 +109,8 @@
unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorythm)
// Persistent storage management
- int LoadStorageValue(int position); // Load integer value from storage file (from defined position)
- void SaveStorageValue(int position, int value); // Save integer value to storage file (to defined position)
+ void SaveStorageValue(unsigned int position, int value); // Save integer value to storage file (to defined position)
+ int LoadStorageValue(unsigned int position); // Load integer value from storage file (from defined position)
void OpenURL(const char *url); // Open URL with default system browser (if available)
diff --git a/cheatsheet/raylib_shaders.c b/cheatsheet/raylib_shaders.c
index 772ff3f..bca5dbe 100644
--- a/cheatsheet/raylib_shaders.c
+++ b/cheatsheet/raylib_shaders.c
@@ -1,6 +1,5 @@
// Shader loading/unloading functions
- char *LoadText(const char *fileName); // Load chars array from text file
Shader LoadShader(const char *vsFileName, const char *fsFileName); // Load shader from files and bind default locations
Shader LoadShaderCode(char *vsCode, char *fsCode); // Load shader from code strings and bind default locations
void UnloadShader(Shader shader); // Unload shader from GPU memory (VRAM)
diff --git a/examples/web/audio/loader.html b/examples/web/audio/loader.html
index b584039..f0ff4d7 100644
--- a/examples/web/audio/loader.html
+++ b/examples/web/audio/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "example_to_avoid")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file
diff --git a/examples/web/core/core_input_gestures.c b/examples/web/core/core_input_gestures.c
index 308f890..509f6f4 100644
--- a/examples/web/core/core_input_gestures.c
+++ b/examples/web/core/core_input_gestures.c
@@ -26,7 +26,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 touchPosition = { 0.0f };
+Vector2 touchPosition = { 0 };
Rectangle touchArea = { 0 };
int gesturesCount = 0;
diff --git a/examples/web/core/core_input_multitouch.c b/examples/web/core/core_input_multitouch.c
index 75f659c..915ef0b 100644
--- a/examples/web/core/core_input_multitouch.c
+++ b/examples/web/core/core_input_multitouch.c
@@ -29,7 +29,7 @@ Vector2 ballPosition = { -100.0f, -100.0f };
Color ballColor = BEIGE;
int touchCounter = 0;
-Vector2 touchPosition = { 0.0f };
+Vector2 touchPosition = { 0 };
//----------------------------------------------------------------------------------
// Module Functions Declaration
diff --git a/examples/web/core/loader.html b/examples/web/core/loader.html
index b584039..f0ff4d7 100644
--- a/examples/web/core/loader.html
+++ b/examples/web/core/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "example_to_avoid")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file
diff --git a/examples/web/models/loader.html b/examples/web/models/loader.html
index 093fc92..40cbce7 100644
--- a/examples/web/models/loader.html
+++ b/examples/web/models/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "models_material_pbr")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file
diff --git a/examples/web/models/models_first_person_maze.c b/examples/web/models/models_first_person_maze.c
index b48495b..54a26e1 100644
--- a/examples/web/models/models_first_person_maze.c
+++ b/examples/web/models/models_first_person_maze.c
@@ -34,7 +34,7 @@ Texture2D texture = { 0 };
Color *mapPixels = NULL;
Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position
-Vector3 playerPosition = { 0.0f };
+Vector3 playerPosition = { 0 };
//----------------------------------------------------------------------------------
// Module Functions Declaration
diff --git a/examples/web/physics/loader.html b/examples/web/physics/loader.html
index b584039..f0ff4d7 100644
--- a/examples/web/physics/loader.html
+++ b/examples/web/physics/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "example_to_avoid")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file
diff --git a/examples/web/physics/physac.h b/examples/web/physics/physac.h
index 3fb832b..ed77a3c 100644
--- a/examples/web/physics/physac.h
+++ b/examples/web/physics/physac.h
@@ -391,8 +391,8 @@ PHYSACDEF PhysicsBody CreatePhysicsBodyRectangle(Vector2 pos, float width, float
newBody->id = newId;
newBody->enabled = true;
newBody->position = pos;
- newBody->velocity = (Vector2){ 0.0f };
- newBody->force = (Vector2){ 0.0f };
+ newBody->velocity = (Vector2){ 0 };
+ newBody->force = (Vector2){ 0 };
newBody->angularVelocity = 0.0f;
newBody->torque = 0.0f;
newBody->orient = 0.0f;
diff --git a/examples/web/shaders/loader.html b/examples/web/shaders/loader.html
index 1c7a269..420f1b9 100644
--- a/examples/web/shaders/loader.html
+++ b/examples/web/shaders/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "shaders_raymarching")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file
diff --git a/examples/web/shaders/shaders_custom_uniform.c b/examples/web/shaders/shaders_custom_uniform.c
index 77f84bd..131c897 100644
--- a/examples/web/shaders/shaders_custom_uniform.c
+++ b/examples/web/shaders/shaders_custom_uniform.c
@@ -44,7 +44,7 @@ Shader shader = { 0 }; // Postpro shader
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
int swirlCenterLoc = 0;
-float swirlCenter[2] = { 0.0f };
+float swirlCenter[2] = { 0 };
RenderTexture2D target = { 0 };
diff --git a/examples/web/shapes/loader.html b/examples/web/shapes/loader.html
index b584039..f0ff4d7 100644
--- a/examples/web/shapes/loader.html
+++ b/examples/web/shapes/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "example_to_avoid")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file
diff --git a/examples/web/shapes/shapes_bouncing_ball.c b/examples/web/shapes/shapes_bouncing_ball.c
index cd416ae..1918c9e 100644
--- a/examples/web/shapes/shapes_bouncing_ball.c
+++ b/examples/web/shapes/shapes_bouncing_ball.c
@@ -23,7 +23,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 ballPosition = { 0.0f };
+Vector2 ballPosition = { 0 };
Vector2 ballSpeed = { 5.0f, 4.0f };
int ballRadius = 20;
diff --git a/examples/web/shapes/shapes_colors_palette.c b/examples/web/shapes/shapes_colors_palette.c
index daff399..bcf3172 100644
--- a/examples/web/shapes/shapes_colors_palette.c
+++ b/examples/web/shapes/shapes_colors_palette.c
@@ -39,7 +39,7 @@ Rectangle colorsRecs[MAX_COLORS_COUNT] = { 0 }; // Rectangles array
int colorState[MAX_COLORS_COUNT] = { 0 }; // Color state: 0-DEFAULT, 1-MOUSE_HOVER
-Vector2 mousePoint = { 0.0f };
+Vector2 mousePoint = { 0 };
//----------------------------------------------------------------------------------
// Module Functions Declaration
diff --git a/examples/web/shapes/shapes_draw_circle_sector.c b/examples/web/shapes/shapes_draw_circle_sector.c
index 1e94c25..1862c41 100644
--- a/examples/web/shapes/shapes_draw_circle_sector.c
+++ b/examples/web/shapes/shapes_draw_circle_sector.c
@@ -29,7 +29,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 center = { 0.0f };
+Vector2 center = { 0 };
float outerRadius = 180.f;
int startAngle = 0;
diff --git a/examples/web/shapes/shapes_draw_ring.c b/examples/web/shapes/shapes_draw_ring.c
index b863bc5..7262b0d 100644
--- a/examples/web/shapes/shapes_draw_ring.c
+++ b/examples/web/shapes/shapes_draw_ring.c
@@ -29,7 +29,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 center = { 0.0f };
+Vector2 center = { 0 };
float innerRadius = 80.0f;
float outerRadius = 190.0f;
diff --git a/examples/web/shapes/shapes_easings_box_anim.c b/examples/web/shapes/shapes_easings_box_anim.c
index 4def3ed..2c954ad 100644
--- a/examples/web/shapes/shapes_easings_box_anim.c
+++ b/examples/web/shapes/shapes_easings_box_anim.c
@@ -25,7 +25,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Rectangle rec = { 0.0f };
+Rectangle rec = { 0 };
float rotation = 0.0f;
float alpha = 1.0f;
diff --git a/examples/web/shapes/shapes_following_eyes.c b/examples/web/shapes/shapes_following_eyes.c
index 2a1007b..d83a53c 100644
--- a/examples/web/shapes/shapes_following_eyes.c
+++ b/examples/web/shapes/shapes_following_eyes.c
@@ -25,12 +25,12 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 scleraLeftPosition = { 0.0f };
-Vector2 scleraRightPosition = { 0.0f };
+Vector2 scleraLeftPosition = { 0 };
+Vector2 scleraRightPosition = { 0 };
float scleraRadius = 80;
-Vector2 irisLeftPosition = { 0.0f };
-Vector2 irisRightPosition = { 0.0f };
+Vector2 irisLeftPosition = { 0 };
+Vector2 irisRightPosition = { 0 };
float irisRadius = 24;
//----------------------------------------------------------------------------------
diff --git a/examples/web/shapes/shapes_rectangle_scaling.c b/examples/web/shapes/shapes_rectangle_scaling.c
index d5432c2..200e91e 100644
--- a/examples/web/shapes/shapes_rectangle_scaling.c
+++ b/examples/web/shapes/shapes_rectangle_scaling.c
@@ -27,9 +27,9 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Rectangle rec = { 0.0f };
+Rectangle rec = { 0 };
-Vector2 mousePosition = { 0.0f };
+Vector2 mousePosition = { 0 };
bool mouseScaleReady = false;
bool mouseScaleMode = false;
diff --git a/examples/web/text/loader.html b/examples/web/text/loader.html
index b584039..f0ff4d7 100644
--- a/examples/web/text/loader.html
+++ b/examples/web/text/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "example_to_avoid")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file
diff --git a/examples/web/text/text_font_filters.c b/examples/web/text/text_font_filters.c
index 6a8acf1..3a0c0b3 100644
--- a/examples/web/text/text_font_filters.c
+++ b/examples/web/text/text_font_filters.c
@@ -29,7 +29,7 @@ const char msg[50] = "Loaded Font";
Font font = { 0 };
float fontSize = 0.0f;
-Vector2 fontPosition = { 0.0f };
+Vector2 fontPosition = { 0 };
Vector2 textSize = { 0 };
int currentFontFilter = 0; // FILTER_POINT
diff --git a/examples/web/text/text_font_loading.c b/examples/web/text/text_font_loading.c
index 31c4391..008b6e7 100644
--- a/examples/web/text/text_font_loading.c
+++ b/examples/web/text/text_font_loading.c
@@ -38,7 +38,7 @@ const char msg[256] = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI\nJKLMNOPQRSTUV
Font fontBm = { 0 }; // BMFont (AngelCode)
Font fontTtf = { 0 }; // TTF font
-Vector2 fontPosition = { 0.0f };
+Vector2 fontPosition = { 0 };
bool useTtf = false;
diff --git a/examples/web/text/text_font_sdf.c b/examples/web/text/text_font_sdf.c
index 94be519..3176a9e 100644
--- a/examples/web/text/text_font_sdf.c
+++ b/examples/web/text/text_font_sdf.c
@@ -36,8 +36,8 @@ Font fontSDF = { 0 };
Shader shader = { 0 };
-Vector2 fontPosition = { 0.0f };
-Vector2 textSize = { 0.0f };
+Vector2 fontPosition = { 0 };
+Vector2 textSize = { 0 };
float fontSize = 16.0f;
int currentFont = 0; // 0 - fontDefault, 1 - fontSDF
diff --git a/examples/web/textures/loader.html b/examples/web/textures/loader.html
index b584039..f0ff4d7 100644
--- a/examples/web/textures/loader.html
+++ b/examples/web/textures/loader.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
- <head>
- <title>loading...</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <meta name="title" content="raylib - example">
- <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
- <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
- <meta name="viewport" content="width=device-width">
+ <head>
+ <title>loading...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <meta name="title" content="raylib - example">
+ <meta name="description" content="raylib is a simple and easy-to-use library to enjoy videogames programming. This a small example of what you can do.">
+ <meta name="keywords" content="raylib, videogames, programming, C, C++, library, learn, study, simple, easy, free, open source, raysan">
+ <meta name="viewport" content="width=device-width">
<!-- Open Graph metatags for sharing -->
<meta property="og:title" content="raylib - example"/>
@@ -16,42 +16,42 @@
<meta property="og:site_name" content="raylib"/>
<meta property="og:description" content="This is a small example of what you can do with raylib"/>
- <!-- Add jQuery library -->
- <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
-
- <!-- hightlight.js - Syntax highlighting for the Web -->
+ <!-- Add jQuery library -->
+ <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
+
+ <!-- hightlight.js - Syntax highlighting for the Web -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <style type="text/css">
- @font-face {
+ <style type="text/css">
+ @font-face {
font-family: 'grixel_acme_7_wide_xtnd';
- src: url('../../font/acme_7_wide_xtnd.eot');
- src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
- url('../../font/acme_7_wide_xtnd.woff') format('woff'),
- url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-size-adjust:0.49;
- }
+ src: url('../../font/acme_7_wide_xtnd.eot');
+ src: url('../../font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
+ url('../../font/acme_7_wide_xtnd.woff') format('woff'),
+ url('../../font/acme_7_wide_xtnd.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-size-adjust:0.49;
+ }
#eximage { width: 802px; height: 452px; text-align: center; }
- #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
+ #eximage img { margin: 0 auto; border: 1px solid; border-color: black; }
#eximage canvas { position: relative; top: 1px; left: 1px; border: 1px solid red; background: black; }
pre { width: 802px!important;}
- pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
- .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
- line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
- border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
- #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
+ pre code{ border: 1px solid; border-color:#b0b0b0; height:auto; }
+ .exdownbtn{ margin-right: 20px; width:220px; height:30px; float:left; position: relative; cursor:pointer; font-weight:bold; font-size:10px;
+ line-height:30px; text-align: center; border-width:5px; background-color:#e1e1e1; color:#5c5a5a;
+ border:4px solid #898888; font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;}
+ #exdowncode .exdownbtn:hover{background-color:#f0d6d6; color:#c55757; border:4px solid #e66666;}
#exdownexec .exdownbtn:hover{background-color:#bedce8; color:#417794; border:4px solid #5d9cbd;}
.fancybox-wrap fancybox-desktop fancybox-type-iframe fancybox-opened { width: 860px!important;}
.fancybox-inner { width: 850px!important; }
.fancybox-iframe { width: 830px!important; }
- </style>
-
- <script type="text/javascript">
- $(document).ready(function() {
+ </style>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
var mainUrl = $(location).attr('href');
var name = mainUrl.slice(mainUrl.indexOf('=') + 1);
@@ -68,10 +68,10 @@
$('#eximage img').attr('src', imgUrl);
- $.get(srcUrl, function(data) {
- $('pre code').text(data);
- $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
- }, 'text');
+ $.get(srcUrl, function(data) {
+ $('pre code').text(data);
+ $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
+ }, 'text');
// Quick hack for some examples not working on web
if (name == "example_to_avoid")
@@ -94,8 +94,8 @@
// Run emscripten example
$.getScript(jsUrl, function() {});
}
- });
- </script>
+ });
+ </script>
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script>
<script type='text/javascript'>
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code
@@ -114,9 +114,9 @@
saveAs(blob, localFSname);
}
</script>
- </head>
-
- <body>
+ </head>
+
+ <body>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
@@ -126,7 +126,7 @@
<!--<textarea id="output" rows="8"></textarea>-->
- <pre><code class="cpp"></code></pre>
+ <pre><code class="cpp"></code></pre>
<script type='text/javascript'>
//var statusElement = document.getElementById('status');
@@ -214,16 +214,16 @@
<!--<script async type="text/javascript" src="../examples/web/core_basic_window.js"></script>-->
- <!-- Google Analytics tracking code -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ <!-- Google Analytics tracking code -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-45733555-1', 'raylib.com');
+ ga('create', 'UA-45733555-1', 'raylib.com');
ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
- </body>
+ ga('send', 'pageview');
+ </script>
+ </body>
</html> \ No newline at end of file