فهرست منبع

Merge pull request #224 from raysan5/develop

Integrate develop branch
Ray 8 سال پیش
والد
کامیت
f8d94aeba5
11فایلهای تغییر یافته به همراه313 افزوده شده و 325 حذف شده
  1. 3 1
      docs/common/css/main.css
  2. BIN
      docs/common/img/icon_handmade.png
  3. BIN
      docs/common/img/icon_youtube.png
  4. 65 63
      docs/examples.html
  5. 63 61
      docs/games.html
  6. 45 47
      docs/helpme.html
  7. 66 64
      docs/index.html
  8. 68 66
      docs/license.html
  9. 1 1
      src/audio.c
  10. 2 0
      src/audio.h
  11. 0 22
      src/rlgl.h

+ 3 - 1
docs/common/css/main.css

@@ -61,8 +61,10 @@ p a:hover{text-decoration: none; color:gray;}
 	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e0e0e0',GradientType=0 );
 }
 	
-#social{ width:300px; height:50px; position:relative; float:right; margin-right:8px; margin-top:20px; margin-bottom:20px; }
+#social{ width:372px; height:50px; position:relative; float:right; margin-right:8px; margin-top:20px; margin-bottom:20px; }
 #social a:hover{ background-position: 0 -36px;}
+#youtube{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_youtube.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
+#handmade{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_handmade.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 #twitch{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_twitch.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 #patreon{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_patreon.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}
 #itchio{ width:36px; height:36px; float:left; position:relative; background-image: url(../img/icon_itchio.png); cursor: pointer; background-repeat:no-repeat; background-position: 0 0;}

BIN
docs/common/img/icon_handmade.png


BIN
docs/common/img/icon_youtube.png


+ 65 - 63
docs/examples.html

@@ -1,15 +1,15 @@
 <!DOCTYPE html>
 <html>
-	<head>
-	    <meta charset="utf-8">
+    <head>
+        <meta charset="utf-8">
         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-		
-		<title>raylib - examples</title>
-		
-		<meta name="title" content="raylib - examples">
-		<meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming. Check the full set of raylib examples">
-		<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">
+        
+        <title>raylib - examples</title>
+        
+        <meta name="title" content="raylib - examples">
+        <meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming. Check the full set of raylib examples">
+        <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">
         
         <!-- Facebook metatags for sharing -->
         <meta property="og:title" content="raylib - examples"/>
@@ -19,53 +19,55 @@
         <meta property="og:description" content="check the full set of raylib examples... they are amazing!"/>
 
         <link rel="stylesheet" type="text/css" href="common/css/main.css">
-		<link rel="icon" href="favicon.ico" />
+        <link rel="icon" href="favicon.ico" />
 
         <link rel="stylesheet" type="text/css" href="common/css/examples.css">
 
         <!-- NOTE: JavaScript code added at the end of body! -->
-		
+        
         <!-- Enabling HTML5 tags for older IE browsers -->
         <!--[if lt IE 9]>
           <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
         <![endif]-->
-	</head>
-	
-	<body>
-		<div class="page">
-			<!--[if lt IE 7]>
-				<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
-			<![endif]-->
-
-			<div class="header">
-				<a id="logo" href="index.html"></a>
-				<div id="social">
+    </head>
+    
+    <body>
+        <div class="page">
+            <!--[if lt IE 7]>
+                <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
+            <![endif]-->
+
+            <div class="header">
+                <a id="logo" href="index.html"></a>
+                <div id="social">
                     <a id="itchio" href="https://raysan5.itch.io" target="_blank"></a>
+                    <a id="handmade" href="https://raylib.handmade.network/" target="_blank"></a>
                     <a id="patreon" href="https://www.patreon.com/raysan5" target="_blank"></a>
                     <a id="twitch" href="http://www.twitch.tv/raysan5" target="_blank"></a>
                     <a id="reddit" href="https://www.reddit.com/r/raylib/" target="_blank"></a>
                     <a id="freenode" href="http://webchat.freenode.net/?channels=#raylib" target="_blank"></a>
-					<a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
-					<a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
-					<a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
-				</div>
-				<div class="menu">
-					<a href="index.html">about</a>
-					<div id="active">examples</div>
+                    <a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
+                    <a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
+                    <a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
+                    <a id="youtube" href="https://www.youtube.com/channel/UC8WIBkhYb5sBNqXO1mZ7WSQ" target="_blank"></a>
+                </div>
+                <div class="menu">
+                    <a href="index.html">about</a>
+                    <div id="active">examples</div>
                     <a href="games.html">games</a>
-					<a href="helpme.html">helpme!</a>
+                    <a href="helpme.html">helpme!</a>
                     <a id="forum" href="http://forum.raylib.com">forum</a>
-				</div>
-			</div>
+                </div>
+            </div>
 
-			<div class="content">
-				<p>Examples are organized by colors depending on the raylib module features
-				they are teaching. Currently, raylib main modules are 7.</p>
-				<br>
+            <div class="content">
+                <p>Examples are organized by colors depending on the raylib module features
+                they are teaching. Currently, raylib main modules are 7.</p>
+                <br>
                 <p>Wanna see all functions available in raylib? <a class="simplelink" href="cheatsheet/cheatsheet.html">Check cheatsheet</a></p>
                 <br>
                 <p>Click to filter by module:</p>
-				<br>
+                <br>
 
 <!-- Filtering controls
 <div class="filter" data-filter="all">Show All</div>
@@ -87,49 +89,49 @@
                     <div class="filter legendButton" id="models" data-filter=".fmodels">models</div>
                     <div class="filter legendButton" id="shaders" data-filter=".fshaders">shaders</div>
                     <div class="filter legendButton" id="audio" data-filter=".faudio">audio</div>
-				</div>
+                </div>
 
                 <!-- Items container, filled when loading -->
                 <div id="container"></div>
 
-			</div>
+            </div>
 
-			<div class="footer">
-				<p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
-			</div>
+            <div class="footer">
+                <p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
+            </div>
 
-		</div>
+        </div>
 
-		<!-- Add jQuery library -->
-		<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
+        <!-- Add jQuery library -->
+        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
 
         <!-- Add jQuery easing plugin -->
-		<script src="common/libs/jquery.easing.1.3.js"></script>
+        <script src="common/libs/jquery.easing.1.3.js"></script>
 
-		<!-- Add fancyBox main JS and CSS files -->
-		<script src="common/libs/fancybox/jquery.fancybox.js"></script>
-		<link rel="stylesheet" type="text/css" href="common/libs/fancybox/jquery.fancybox.css" media="screen" />
+        <!-- Add fancyBox main JS and CSS files -->
+        <script src="common/libs/fancybox/jquery.fancybox.js"></script>
+        <link rel="stylesheet" type="text/css" href="common/libs/fancybox/jquery.fancybox.css" media="screen" />
 
-		<!-- Add Button helper -->
-		<link rel="stylesheet" type="text/css" href="common/libs/fancybox/helpers/jquery.fancybox-buttons.css" />
-		<script src="common/libs/fancybox/helpers/jquery.fancybox-buttons.js"></script>
+        <!-- Add Button helper -->
+        <link rel="stylesheet" type="text/css" href="common/libs/fancybox/helpers/jquery.fancybox-buttons.css" />
+        <script src="common/libs/fancybox/helpers/jquery.fancybox-buttons.js"></script>
 
         <!-- Add jQuery Mix-It Up plugin -->
-		<script src="http://cdn.jsdelivr.net/jquery.mixitup/latest/jquery.mixitup.min.js"></script>
+        <script src="http://cdn.jsdelivr.net/jquery.mixitup/latest/jquery.mixitup.min.js"></script>
 
         <!-- Add own script code -->
         <script src="common/js/examples.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','http://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','http://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>

+ 63 - 61
docs/games.html

@@ -1,15 +1,15 @@
 <!DOCTYPE html>
 <html>
-	<head>
-	    <meta charset="utf-8">
+    <head>
+        <meta charset="utf-8">
         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-		
-		<title>raylib - games</title>
-		
-		<meta name="title" content="raylib - games collection">
-		<meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming. Check the full set of raylib examples">
-		<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">
+        
+        <title>raylib - games</title>
+        
+        <meta name="title" content="raylib - games collection">
+        <meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming. Check the full set of raylib examples">
+        <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">
         
         <!-- Facebook metatags for sharing -->
         <meta property="og:title" content="raylib - games collection"/>
@@ -19,95 +19,97 @@
         <meta property="og:description" content="check the this collection of raylib games... they are amazing!"/>
 
         <link rel="stylesheet" type="text/css" href="common/css/main.css">
-		<link rel="icon" href="favicon.ico" />
+        <link rel="icon" href="favicon.ico" />
 
         <link rel="stylesheet" type="text/css" href="common/css/games.css">
 
         <!-- NOTE: JavaScript code added at the end of body! -->
-		
+        
         <!-- Enabling HTML5 tags for older IE browsers -->
         <!--[if lt IE 9]>
           <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
         <![endif]-->
-	</head>
-	
-	<body>
-		<div class="page">
-			<!--[if lt IE 7]>
-				<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
-			<![endif]-->
-
-			<div class="header">
-				<a id="logo" href="index.html"></a>
-				<div id="social">
+    </head>
+    
+    <body>
+        <div class="page">
+            <!--[if lt IE 7]>
+                <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
+            <![endif]-->
+
+            <div class="header">
+                <a id="logo" href="index.html"></a>
+                <div id="social">
                     <a id="itchio" href="https://raysan5.itch.io" target="_blank"></a>
+                    <a id="handmade" href="https://raylib.handmade.network/" target="_blank"></a>
                     <a id="patreon" href="https://www.patreon.com/raysan5" target="_blank"></a>
                     <a id="twitch" href="http://www.twitch.tv/raysan5" target="_blank"></a>
                     <a id="reddit" href="https://www.reddit.com/r/raylib/" target="_blank"></a>
                     <a id="freenode" href="http://webchat.freenode.net/?channels=#raylib" target="_blank"></a>
-					<a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
-					<a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
-					<a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
-				</div>
-				<div class="menu">
-					<a href="index.html">about</a>
-					<a href="examples.html">examples</a>
+                    <a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
+                    <a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
+                    <a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
+                    <a id="youtube" href="https://www.youtube.com/channel/UC8WIBkhYb5sBNqXO1mZ7WSQ" target="_blank"></a>
+                </div>
+                <div class="menu">
+                    <a href="index.html">about</a>
+                    <a href="examples.html">examples</a>
                     <div id="active">games</div>
-					<a href="helpme.html">helpme!</a>
+                    <a href="helpme.html">helpme!</a>
                     <a id="forum" href="http://forum.raylib.com">forum</a>
-				</div>
-			</div>
+                </div>
+            </div>
 
-			<div class="content">
-				<p>Games are organized in three categories:</p>
-				<br>
+            <div class="content">
+                <p>Games are organized in three categories:</p>
+                <br>
                 <div id="filter_menu">
                     <div class="filter legendButton" id="sample" data-filter=".fsample">sample games</div>
                     <div class="filter legendButton" id="game" data-filter=".fgame">full games</div> 
                     <div class="filter legendButton" id="user" data-filter=".fuser">users games</div>
-				</div>
+                </div>
 
                 <!-- Items container, filled when loading -->
                 <div id="container"></div>
 
-			</div>
+            </div>
 
-			<div class="footer">
-				<p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
-			</div>
+            <div class="footer">
+                <p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
+            </div>
 
-		</div>
+        </div>
 
-		<!-- Add jQuery library -->
-		<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
+        <!-- Add jQuery library -->
+        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
 
         <!-- Add jQuery easing plugin -->
-		<script src="common/libs/jquery.easing.1.3.js"></script>
+        <script src="common/libs/jquery.easing.1.3.js"></script>
 
-		<!-- Add fancyBox main JS and CSS files -->
-		<script src="common/libs/fancybox/jquery.fancybox.js"></script>
-		<link rel="stylesheet" type="text/css" href="common/libs/fancybox/jquery.fancybox.css" media="screen" />
+        <!-- Add fancyBox main JS and CSS files -->
+        <script src="common/libs/fancybox/jquery.fancybox.js"></script>
+        <link rel="stylesheet" type="text/css" href="common/libs/fancybox/jquery.fancybox.css" media="screen" />
 
-		<!-- Add Button helper -->
-		<link rel="stylesheet" type="text/css" href="common/libs/fancybox/helpers/jquery.fancybox-buttons.css" />
-		<script src="common/libs/fancybox/helpers/jquery.fancybox-buttons.js"></script>
+        <!-- Add Button helper -->
+        <link rel="stylesheet" type="text/css" href="common/libs/fancybox/helpers/jquery.fancybox-buttons.css" />
+        <script src="common/libs/fancybox/helpers/jquery.fancybox-buttons.js"></script>
 
         <!-- Add jQuery Mix-It Up plugin -->
-		<script src="http://cdn.jsdelivr.net/jquery.mixitup/latest/jquery.mixitup.min.js"></script>
+        <script src="http://cdn.jsdelivr.net/jquery.mixitup/latest/jquery.mixitup.min.js"></script>
 
         <!-- Add own script code -->
         <script src="common/js/games.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','http://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','http://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>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 45 - 47
docs/helpme.html


+ 66 - 64
docs/index.html

@@ -1,16 +1,16 @@
 <!DOCTYPE html>
 <html>
-	<head>
-	    <meta charset="utf-8">
+    <head>
+        <meta charset="utf-8">
         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		
-		<title>raylib</title>
-		
-		<meta name="title" content="raylib">
-		<meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming.">
-		<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">
+        
+        <title>raylib</title>
+        
+        <meta name="title" content="raylib">
+        <meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming.">
+        <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">
         
         <!-- Facebook metatags for sharing -->
         <meta property="og:title" content="raylib"/>
@@ -29,7 +29,7 @@
         <meta name="twitter:url" content="http://www.raylib.com" />
         
         <link rel="stylesheet" href="common/css/main.css">
-		<link rel="shortcut icon" href="favicon.ico" />
+        <link rel="shortcut icon" href="favicon.ico" />
         
         <!-- Facebook Conversion Code for visitas_raylib -->
         <script>
@@ -48,72 +48,74 @@
             window._fbq.push(['track', '6023277399201', {'value':'0.00','currency':'EUR'}]);
         </script>
         <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6023277399201&amp;cd[value]=0.00&amp;cd[currency]=EUR&amp;noscript=1" /></noscript>
-	</head>
-	
-	<body>
-		<div class="page">
-			<!--[if lt IE 7]>
-				<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
-			<![endif]-->
+    </head>
+    
+    <body>
+        <div class="page">
+            <!--[if lt IE 7]>
+                <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
+            <![endif]-->
 
-			<div class="header">
-				<a id="logo" href="index.html"></a>
-				<div id="social">
+            <div class="header">
+                <a id="logo" href="index.html"></a>
+                <div id="social">
                     <a id="itchio" href="https://raysan5.itch.io" target="_blank"></a>
+                    <a id="handmade" href="https://raylib.handmade.network/" target="_blank"></a>
                     <a id="patreon" href="https://www.patreon.com/raysan5" target="_blank"></a>
                     <a id="twitch" href="http://www.twitch.tv/raysan5" target="_blank"></a>
                     <a id="reddit" href="https://www.reddit.com/r/raylib/" target="_blank"></a>
                     <a id="freenode" href="http://webchat.freenode.net/?channels=#raylib" target="_blank"></a>
-					<a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
-					<a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
-					<a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
-				</div>
-				<div class="menu">
-					<div id="active">about</div>
-					<a href="examples.html">examples</a>
+                    <a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
+                    <a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
+                    <a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
+                    <a id="youtube" href="https://www.youtube.com/channel/UC8WIBkhYb5sBNqXO1mZ7WSQ" target="_blank"></a>
+                </div>
+                <div class="menu">
+                    <div id="active">about</div>
+                    <a href="examples.html">examples</a>
                     <a href="games.html">games</a>
-					<a href="helpme.html">helpme!</a>
+                    <a href="helpme.html">helpme!</a>
                     <a id="forum" href="http://forum.raylib.com">forum</a>
-				</div>
-			</div>
+                </div>
+            </div>
 
-			<div class="content">
-				<strong>raylib is a simple and easy-to-use library to learn videogames programming.</strong>
+            <div class="content">
+                <strong>raylib is a simple and easy-to-use library to learn videogames programming.</strong>
                 <br>
                 <br>
                 <!--<a href="https://github.com/raysan5/raylib/releases/download/1.5.0/raylib_installer_v1.5.exe"><div class="downloadButtonInstaller" id="btnlib">Download raylib Windows Installer (v1.5.0)</div></a>-->
                 <div id="itchioframe"><iframe frameborder="0" src="https://itch.io/embed/85331?bg_color=f5f5f5" width="640" height="170"></iframe></div>
                 <br>
-				<p>raylib is highly inspired by Borland BGI graphics lib and by XNA framework. Allegro and SDL have also been analyzed for reference.</p>
-				<br>
+                <p>raylib is highly inspired by Borland BGI graphics lib and by XNA framework. Allegro and SDL have also been analyzed for reference.</p>
+                <br>
                 <p><strong>NOTE for ADVENTURERS:</strong> raylib is a programming library to learn videogames programming; no fancy interface, no visual helpers, no auto-debugging... just coding in the most pure spartan-programmers way. Are you ready to learn? <a class="simplelink" href="examples.html" target="_self">Jump to code examples!</a>.</p>
                 <br>
-				<strong>some raylib features</strong>
-				<br>
-				<div class="list">
-					- Written in plain C code (C99)<br>
-					- Uses PascalCase/camelCase notation<br>
-					- Hardware accelerated with OpenGL (<strong>1.1, 2.1, 3.3 or ES 2.0</strong>)<br>
-					- Unique OpenGL abstraction layer (usable as standalone module): [<a class="simplelink" href="https://github.com/raysan5/raylib/blob/master/src/rlgl.h" target="_blank">rlgl</a>]<br>
-					- Powerful fonts module with SpriteFonts support (XNA fonts, AngelCode fonts, TTF)<br>
-					- Outstanding texture formats support, including compressed formats (DXT, ETC, ASTC)<br>
-					- Basic 3d support for Geometrics, Models, Heightmaps and Billboards<br>
+                <strong>some raylib features</strong>
+                <br>
+                <div class="list">
+                    - Written in plain C code (C99)<br>
+                    - Uses PascalCase/camelCase notation<br>
+                    - Hardware accelerated with OpenGL (<strong>1.1, 2.1, 3.3 or ES 2.0</strong>)<br>
+                    - Unique OpenGL abstraction layer (usable as standalone module): [<a class="simplelink" href="https://github.com/raysan5/raylib/blob/master/src/rlgl.h" target="_blank">rlgl</a>]<br>
+                    - Powerful fonts module with SpriteFonts support (XNA fonts, AngelCode fonts, TTF)<br>
+                    - Outstanding texture formats support, including compressed formats (DXT, ETC, ASTC)<br>
+                    - Basic 3d support for Geometrics, Models, Heightmaps and Billboards<br>
                     - Materials (diffuse, normal, specular) and Lighting (point, directional, spot)<br>
                     - Shaders support, including Model shaders and Postprocessing shaders<br>
-					- Powerful math module for Vector and Matrix operations: [<a class="simplelink" href="https://github.com/raysan5/raylib/blob/master/src/raymath.h" target="_blank">raymath</a>]<br>
-					- Audio loading and playing with streaming support (WAV, OGG, FLAC, XM, MOD)<br>
+                    - Powerful math module for Vector and Matrix operations: [<a class="simplelink" href="https://github.com/raysan5/raylib/blob/master/src/raymath.h" target="_blank">raymath</a>]<br>
+                    - Audio loading and playing with streaming support (WAV, OGG, FLAC, XM, MOD)<br>
                     - VR stereo rendering support with configurable HMD device parameters<br>
                     - Multiplatform support: Android, Raspberry Pi, HTML5, Oculus Rift CV1<br>
                     - Custom color palette for fancy visuals on raywhite background<br>
                     - Minimal external dependencies (GLFW3, OpenGL, OpenAL)<br>
                     - Complete binding to Lua: [<a class="simplelink" href="https://github.com/raysan5/raylib/blob/master/src/rlua.h" target="_blank">rlua</a>]<br>
-				</div>
-				<br>
+                </div>
+                <br>
                 <a href="images/raylib_architecture.png"><img src="images/raylib_architecture.png" alt="raylib architechture" width="800" height="450"/></a>
                 <br>
                 <br>
                 <p>Wanna see all functions available in raylib? <a class="simplelink" href="cheatsheet/cheatsheet.html">CHECK CHEATSHEET</a></p>
-				<p>raylib is open-source and free to use. <a class="simplelink" href="license.html" target="_self">View license</a>.</p>
+                <p>raylib is open-source and free to use. <a class="simplelink" href="license.html" target="_self">View license</a>.</p>
                 <br>
                 <strong>raylib supporters on patreon</strong>
                 <p>The following people is supporting raylib project on <a class="simplelink" href="https://www.patreon.com/raysan5" target="_blank">patreon</a>. Many thanks to all of them for believing in the project and contributing to it.</p>
@@ -128,24 +130,24 @@
                 <p> - Evan</p>
                 <br>
                 <p>And a very special thanks to <strong>Ilya Zarembsky</strong> for his generous contribution. Many thanks Ilya! Hope your students enjoy raylib! :D</p>
-			</div>
+            </div>
 
-			<div class="footer">
-				<p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
-			</div>
+            <div class="footer">
+                <p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
+            </div>
 
-		</div>
+        </div>
 
-		<!-- 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','http://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','http://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>

+ 68 - 66
docs/license.html

@@ -1,15 +1,15 @@
 <!DOCTYPE html>
 <html>
-	<head>
-	    <meta charset="utf-8">
+    <head>
+        <meta charset="utf-8">
         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-		
-		<title>raylib - license</title>
-		
-		<meta name="title" content="raylib - license">
-		<meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming. It is free, open-source and can be used in commercial projects at no cost!">
-		<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">
+        
+        <title>raylib - license</title>
+        
+        <meta name="title" content="raylib - license">
+        <meta name="description" content="raylib is a simple and easy-to-use library to learn videogames programming. It is free, open-source and can be used in commercial projects at no cost!">
+        <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">
         
         <!-- Facebook metatags for sharing -->
         <meta property="og:title" content="raylib - license"/>
@@ -19,75 +19,77 @@
         <meta property="og:description" content="raylib zlib/libpng license... it is free, open-source and can be used in commercial projects at no cost!"/>
 
         <link rel="stylesheet" href="common/css/main.css">
-		<link rel="icon" href="favicon.ico" />
-	</head>
-	
-	<body>
-		<div class="page">
-			<!--[if lt IE 7]>
-				<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
-			<![endif]-->
+        <link rel="icon" href="favicon.ico" />
+    </head>
+    
+    <body>
+        <div class="page">
+            <!--[if lt IE 7]>
+                <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
+            <![endif]-->
 
-			<div class="header">
-				<a id="logo" href="index.html"></a>
-				<div id="social">
+            <div class="header">
+                <a id="logo" href="index.html"></a>
+                <div id="social">
                     <a id="itchio" href="https://raysan5.itch.io" target="_blank"></a>
+                    <a id="handmade" href="https://raylib.handmade.network/" target="_blank"></a>
                     <a id="patreon" href="https://www.patreon.com/raysan5" target="_blank"></a>
                     <a id="twitch" href="http://www.twitch.tv/raysan5" target="_blank"></a>
                     <a id="reddit" href="https://www.reddit.com/r/raylib/" target="_blank"></a>
                     <a id="freenode" href="http://webchat.freenode.net/?channels=#raylib" target="_blank"></a>
-					<a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
-					<a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
-					<a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
-				</div>
-				<div class="menu">
-					<a href="index.html">about</a>
+                    <a id="facebook" href="http://www.facebook.com/raylibgames" target="_blank"></a>
+                    <a id="twitter" href="http://www.twitter.com/raysan5" target="_blank"></a>
+                    <a id="github" href="http://github.com/raysan5/raylib" target="_blank"></a>
+                    <a id="youtube" href="https://www.youtube.com/channel/UC8WIBkhYb5sBNqXO1mZ7WSQ" target="_blank"></a>
+                </div>
+                <div class="menu">
+                    <a href="index.html">about</a>
                     <a href="examples.html">examples</a>
-					<a href="games.html">games</a>
-					<a href="helpme.html">helpme!</a>
+                    <a href="games.html">games</a>
+                    <a href="helpme.html">helpme!</a>
                     <a id="forum" href="http://forum.raylib.com">forum</a>
-				</div>
-			</div>
+                </div>
+            </div>
 
-			<div class="content">
-				<strong>license</strong>
-				<br><br>
-				<p>raylib is licensed under an unmodified zlib/libpng license, which is an 
-				OSI-certified, BSD-like license that allows static linking with closed 
-				source software. It is reproduced in its entirety below.</p>
-				<br>
-				<div id="licensebox">
-					<p>Copyright (c) 2013-2016 Ramon Santamaria (@raysan5)</p>
-					<p>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.</p>
-					<p>Permission is granted to anyone to use this software for any purpose, including commercial 
-					applications, and to alter it and redistribute it freely, subject to the following restrictions:</p>
-					<p class="licensepoint"> 1. The origin of this software must not be misrepresented; you must not claim that you 
-					wrote the original software. If you use this software in a product, an acknowledgment 
-					in the product documentation would be appreciated but is not required.</p>
-					<p class="licensepoint"> 2. Altered source versions must be plainly marked as such, and must not be 
-					misrepresented as being the original software.</p>
-					<p class="licensepoint"> 3. This notice may not be removed or altered from any source distribution.</p>
-					<br>
-				</div>
-			</div>
+            <div class="content">
+                <strong>license</strong>
+                <br><br>
+                <p>raylib is licensed under an unmodified zlib/libpng license, which is an 
+                OSI-certified, BSD-like license that allows static linking with closed 
+                source software. It is reproduced in its entirety below.</p>
+                <br>
+                <div id="licensebox">
+                    <p>Copyright (c) 2013-2016 Ramon Santamaria (@raysan5)</p>
+                    <p>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.</p>
+                    <p>Permission is granted to anyone to use this software for any purpose, including commercial 
+                    applications, and to alter it and redistribute it freely, subject to the following restrictions:</p>
+                    <p class="licensepoint"> 1. The origin of this software must not be misrepresented; you must not claim that you 
+                    wrote the original software. If you use this software in a product, an acknowledgment 
+                    in the product documentation would be appreciated but is not required.</p>
+                    <p class="licensepoint"> 2. Altered source versions must be plainly marked as such, and must not be 
+                    misrepresented as being the original software.</p>
+                    <p class="licensepoint"> 3. This notice may not be removed or altered from any source distribution.</p>
+                    <br>
+                </div>
+            </div>
 
-			<div class="footer">
-				<p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
-			</div>
+            <div class="footer">
+                <p>Web developed by <a href="http://www.raysanweb.com" target="_blank">RaySan</a> and <a href="http://www.elendow.com" target="_blank">Elendow</a></p>
+            </div>
 
-		</div>
+        </div>
 
-		<!-- 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','http://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','http://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>

+ 1 - 1
src/audio.c

@@ -859,7 +859,7 @@ void SetMusicPitch(Music music, float pitch)
 
 // Set music loop count (loop repeats)
 // NOTE: If set to -1, means infinite loop
-void SetMusicLoopCount(Music music, float count);
+void SetMusicLoopCount(Music music, float count)
 {
     music->loopCount = count;
 }

+ 2 - 0
src/audio.h

@@ -109,6 +109,7 @@ extern "C" {            // Prevents name mangling of functions
 void InitAudioDevice(void);                                     // Initialize audio device and context
 void CloseAudioDevice(void);                                    // Close the audio device and context
 bool IsAudioDeviceReady(void);                                  // Check if audio device has been initialized successfully
+void SetMasterVolume(float volume);                             // Set master volume (listener)
 
 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
@@ -138,6 +139,7 @@ void ResumeMusicStream(Music music);                            // Resume playin
 bool IsMusicPlaying(Music music);                               // Check if music is playing
 void SetMusicVolume(Music music, float volume);                 // Set volume for music (1.0 is max level)
 void SetMusicPitch(Music music, float pitch);                   // Set pitch for a music (1.0 is base level)
+void SetMusicLoopCount(Music music, float count);               // Set music loop count (loop repeats)
 float GetMusicTimeLength(Music music);                          // Get music time length (in seconds)
 float GetMusicTimePlayed(Music music);                          // Get current music time played (in seconds)
 

+ 0 - 22
src/rlgl.h

@@ -251,25 +251,6 @@ typedef unsigned char byte;
         float fovy;             // Camera field-of-view apperture in Y (degrees)
     } Camera;
 
-    // Light type
-    typedef struct LightData {
-        unsigned int id;        // Light unique id
-        bool enabled;           // Light enabled
-        int type;               // Light type: LIGHT_POINT, LIGHT_DIRECTIONAL, LIGHT_SPOT
-
-        Vector3 position;       // Light position
-        Vector3 target;         // Light target: LIGHT_DIRECTIONAL and LIGHT_SPOT (cone direction target)
-        float radius;           // Light attenuation radius light intensity reduced with distance (world distance)
-
-        Color diffuse;          // Light diffuse color
-        float intensity;        // Light intensity level
-
-        float coneAngle;        // Light cone max angle: LIGHT_SPOT
-    } LightData, *Light;
-
-    // Light types
-    typedef enum { LIGHT_POINT, LIGHT_DIRECTIONAL, LIGHT_SPOT } LightType;
-    
     // Texture parameters: filter mode
     // NOTE 1: Filtering considers mipmaps if available in the texture
     // NOTE 2: Filter is accordingly set for minification and magnification
@@ -415,9 +396,6 @@ void EndShaderMode(void);                                           // End custo
 void BeginBlendMode(int mode);                                      // Begin blending mode (alpha, additive, multiplied)
 void EndBlendMode(void);                                            // End blending mode (reset to default: alpha blending)
 
-Light CreateLight(int type, Vector3 position, Color diffuse);       // Create a new light, initialize it and add to pool
-void DestroyLight(Light light);                                     // Destroy a light and take it out of the list
-
 void TraceLog(int msgType, const char *text, ...);
 float *MatrixToFloat(Matrix mat);
 

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است