summaryrefslogtreecommitdiffhomepage
path: root/examples/others
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-21 19:53:18 +0200
committerRay <[email protected]>2022-06-21 19:53:18 +0200
commitc1b01c0d5d2f2bb5108df910b2376d45314e7335 (patch)
tree02b65387eacae0324a3ff28851fa43d78cd6fb09 /examples/others
parent8bd3ecaa66a2a13dca9f7b3532b2c8b1298b206b (diff)
downloadraylib-c1b01c0d5d2f2bb5108df910b2376d45314e7335.tar.gz
raylib-c1b01c0d5d2f2bb5108df910b2376d45314e7335.zip
Added new comment to examples
Diffstat (limited to 'examples/others')
-rw-r--r--examples/others/easings_testbed.c6
-rw-r--r--examples/others/embedded_files_loading.c3
-rw-r--r--examples/others/raylib_opengl_interop.c5
-rw-r--r--examples/others/rlgl_compute_shader.c3
-rw-r--r--examples/others/rlgl_standalone.c6
5 files changed, 16 insertions, 7 deletions
diff --git a/examples/others/easings_testbed.c b/examples/others/easings_testbed.c
index 19c3b457..fbd71751 100644
--- a/examples/others/easings_testbed.c
+++ b/examples/others/easings_testbed.c
@@ -56,10 +56,8 @@ enum EasingTypes {
EASING_NONE = NUM_EASING_TYPES
};
-
static float NoEase(float t, float b, float c, float d); // NoEase function declaration, function used when "no easing" is selected for any axis
-
// Easing functions reference data
static const struct {
const char *name;
@@ -96,7 +94,9 @@ static const struct {
[EASING_NONE] = { .name = "None", .func = NoEase },
};
-
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/others/embedded_files_loading.c b/examples/others/embedded_files_loading.c
index 5923a9ac..70864c73 100644
--- a/examples/others/embedded_files_loading.c
+++ b/examples/others/embedded_files_loading.c
@@ -16,6 +16,9 @@
#include "resources/audio_data.h" // Wave file exported with ExportWaveAsCode()
#include "resources/image_data.h" // Image file exported with ExportImageAsCode()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/others/raylib_opengl_interop.c b/examples/others/raylib_opengl_interop.c
index 69591083..e55a0d38 100644
--- a/examples/others/raylib_opengl_interop.c
+++ b/examples/others/raylib_opengl_interop.c
@@ -49,7 +49,10 @@ typedef struct Particle {
float period;
} Particle;
-int main()
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
+int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
diff --git a/examples/others/rlgl_compute_shader.c b/examples/others/rlgl_compute_shader.c
index abc58934..9b82cfb7 100644
--- a/examples/others/rlgl_compute_shader.c
+++ b/examples/others/rlgl_compute_shader.c
@@ -40,6 +40,9 @@ typedef struct GolUpdateSSBO {
GolUpdateCmd commands[MAX_BUFFERED_TRANSFERTS];
} GolUpdateSSBO;
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c
index cc0eda2d..3796ea3c 100644
--- a/examples/others/rlgl_standalone.c
+++ b/examples/others/rlgl_standalone.c
@@ -113,9 +113,9 @@ static void DrawRectangleV(Vector2 position, Vector2 size, Color color);
//static Matrix MatrixPerspective(double fovy, double aspect, double near, double far);
//static Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up);
-//----------------------------------------------------------------------------------
-// Main Entry point
-//----------------------------------------------------------------------------------
+//------------------------------------------------------------------------------------
+// Program main entry point
+//------------------------------------------------------------------------------------
int main(void)
{
// Initialization