Skip to content

Commit c96669e

Browse files
committed
REVIEWED: Webpage reference comments starting with REF:, more consistent with TODO: and NOTE: comments
1 parent 9c04b1d commit c96669e

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

src/platforms/rcore_android.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,8 @@ static GamepadButton AndroidTranslateGamepadButton(int button)
11621162
static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event)
11631163
{
11641164
// If additional inputs are required check:
1165-
// Ref: https://developer.android.com/ndk/reference/group/input
1166-
// Ref: https://developer.android.com/training/game-controllers/controller-input
1165+
// REF: https://developer.android.com/ndk/reference/group/input
1166+
// REF: https://developer.android.com/training/game-controllers/controller-input
11671167

11681168
int type = AInputEvent_getType(event);
11691169
int source = AInputEvent_getSource(event);

src/platforms/rcore_desktop_glfw.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ double GetTime(void)
11221122
// NOTE: This function is only safe to use if you control the URL given
11231123
// A user could craft a malicious string performing another action
11241124
// Only call this function yourself not with user input or make sure to check the string yourself
1125-
// Ref: https://github.com/raysan5/raylib/issues/686
1125+
// REF: https://github.com/raysan5/raylib/issues/686
11261126
void OpenURL(const char *url)
11271127
{
11281128
// Security check to (partially) avoid malicious code
@@ -1234,8 +1234,8 @@ void PollInputEvents(void)
12341234
// Map touch position to mouse position for convenience
12351235
// WARNING: If the target desktop device supports touch screen, this behaviour should be reviewed!
12361236
// TODO: GLFW does not support multi-touch input yet
1237-
// Ref: https://www.codeproject.com/Articles/668404/Programming-for-Multi-Touch
1238-
// Ref: https://docs.microsoft.com/en-us/windows/win32/wintouch/getting-started-with-multi-touch-messages
1237+
// REF: https://www.codeproject.com/Articles/668404/Programming-for-Multi-Touch
1238+
// REF: https://docs.microsoft.com/en-us/windows/win32/wintouch/getting-started-with-multi-touch-messages
12391239
CORE.Input.Touch.position[0] = CORE.Input.Mouse.currentPosition;
12401240

12411241
// Check if gamepads are ready
@@ -1347,7 +1347,7 @@ void PollInputEvents(void)
13471347
// Function wrappers around RL_*alloc macros, used by glfwInitAllocator() inside of InitPlatform()
13481348
// We need to provide these because GLFWallocator expects function pointers with specific signatures
13491349
// Similar wrappers exist in utils.c but we cannot reuse them here due to declaration mismatch
1350-
// Ref: https://www.glfw.org/docs/latest/intro_guide.html#init_allocator
1350+
// REF: https://www.glfw.org/docs/latest/intro_guide.html#init_allocator
13511351
static void *AllocateWrapper(size_t size, void *user)
13521352
{
13531353
(void)user;
@@ -1945,8 +1945,8 @@ static void CharCallback(GLFWwindow *window, unsigned int codepoint)
19451945
{
19461946
// NOTE: Registers any key down considering OS keyboard layout but
19471947
// does not detect action events, those should be managed by user...
1948-
// Ref: https://github.com/glfw/glfw/issues/668#issuecomment-166794907
1949-
// Ref: https://www.glfw.org/docs/latest/input_guide.html#input_char
1948+
// REF: https://github.com/glfw/glfw/issues/668#issuecomment-166794907
1949+
// REF: https://www.glfw.org/docs/latest/input_guide.html#input_char
19501950

19511951
// Check if there is space available in the queue
19521952
if (CORE.Input.Keyboard.charPressedQueueCount < MAX_CHAR_PRESSED_QUEUE)

src/platforms/rcore_desktop_sdl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ Vector2 GetWindowScaleDPI(void)
11291129

11301130
#ifndef USING_VERSION_SDL3
11311131
// NOTE: SDL_GetWindowDisplayScale was only added on SDL3
1132-
// Ref: https://wiki.libsdl.org/SDL3/SDL_GetWindowDisplayScale
1132+
// REF: https://wiki.libsdl.org/SDL3/SDL_GetWindowDisplayScale
11331133
// TODO: Implement the window scale factor calculation manually
11341134
TRACELOG(LOG_WARNING, "GetWindowScaleDPI() not implemented on target platform");
11351135
#else
@@ -1279,7 +1279,7 @@ double GetTime(void)
12791279
// NOTE: This function is only safe to use if you control the URL given
12801280
// A user could craft a malicious string performing another action
12811281
// Only call this function yourself not with user input or make sure to check the string yourself
1282-
// Ref: https://github.com/raysan5/raylib/issues/686
1282+
// REF: https://github.com/raysan5/raylib/issues/686
12831283
void OpenURL(const char *url)
12841284
{
12851285
// Security check to (partially) avoid malicious code

src/platforms/rcore_desktop_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ double GetTime(void)
12391239
// NOTE: This function is only safe to use if you control the URL given
12401240
// A user could craft a malicious string performing another action
12411241
// Only call this function yourself not with user input or make sure to check the string yourself
1242-
// Ref: https://github.com/raysan5/raylib/issues/686
1242+
// REF: https://github.com/raysan5/raylib/issues/686
12431243
void OpenURL(const char *url)
12441244
{
12451245
// Security check to (partially) avoid malicious code on target platform

src/platforms/rcore_drm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static const short linuxToRaylibMap[KEYMAP_SIZE] = {
220220
248, 0, 0, 0, 0, 0, 0, 0,
221221

222222
// Gamepads are mapped according to:
223-
// Ref: https://www.kernel.org/doc/html/next/input/gamepad.html
223+
// REF: https://www.kernel.org/doc/html/next/input/gamepad.html
224224
// Those mappings are standardized, but that doesn't mean people follow
225225
// the standards, so this is more of an approximation
226226
[BTN_DPAD_UP] = GAMEPAD_BUTTON_LEFT_FACE_UP,
@@ -1013,7 +1013,7 @@ double GetTime(void)
10131013
// NOTE: This function is only safe to use if you control the URL given
10141014
// A user could craft a malicious string performing another action
10151015
// Only call this function yourself not with user input or make sure to check the string yourself
1016-
// Ref: https://github.com/raysan5/raylib/issues/686
1016+
// REF: https://github.com/raysan5/raylib/issues/686
10171017
void OpenURL(const char *url)
10181018
{
10191019
TRACELOG(LOG_WARNING, "OpenURL() not implemented on target platform");

src/platforms/rcore_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ double GetTime(void)
383383
// NOTE: This function is only safe to use if you control the URL given.
384384
// A user could craft a malicious string performing another action.
385385
// Only call this function yourself not with user input or make sure to check the string yourself.
386-
// Ref: https://github.com/raysan5/raylib/issues/686
386+
// REF: https://github.com/raysan5/raylib/issues/686
387387
void OpenURL(const char *url)
388388
{
389389
// Security check to (partially) avoid malicious code on target platform

src/platforms/rcore_web.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static void MouseEnterCallback(GLFWwindow *window, int enter);
131131

132132
// Emscripten window callback events
133133
static EM_BOOL EmscriptenFullscreenChangeCallback(int eventType, const EmscriptenFullscreenChangeEvent *event, void *userData);
134-
// static EM_BOOL EmscriptenWindowResizedCallback(int eventType, const EmscriptenUiEvent *event, void *userData);
134+
//static EM_BOOL EmscriptenWindowResizedCallback(int eventType, const EmscriptenUiEvent *event, void *userData);
135135
static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent *event, void *userData);
136136
static EM_BOOL EmscriptenFocusCallback(int eventType, const EmscriptenFocusEvent *focusEvent, void *userData);
137137
static EM_BOOL EmscriptenVisibilityChangeCallback(int eventType, const EmscriptenVisibilityChangeEvent *visibilityChangeEvent, void *userData);
@@ -165,7 +165,7 @@ EM_JS(void, SetCanvasIdJs, (char *out, int outSize), {
165165
bool WindowShouldClose(void)
166166
{
167167
// Emscripten Asyncify is required to run synchronous code in asynchronous JS
168-
// Ref: https://emscripten.org/docs/porting/asyncify.html
168+
// REF: https://emscripten.org/docs/porting/asyncify.html
169169

170170
// WindowShouldClose() is not called on a web-ready raylib application if using emscripten_set_main_loop()
171171
// and encapsulating one frame execution on a UpdateDrawFrame() function,
@@ -243,7 +243,7 @@ void ToggleFullscreen(void)
243243
244244
// Option 2: Request fullscreen for the canvas element with strategy
245245
// This option does not seem to work at all
246-
// Ref: https://github.com/emscripten-core/emscripten/issues/5124
246+
// REF: https://github.com/emscripten-core/emscripten/issues/5124
247247
// EmscriptenFullscreenStrategy strategy = {
248248
// .scaleMode = EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH, //EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT,
249249
// .canvasResolutionScaleMode = EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF,
@@ -1520,8 +1520,8 @@ static void CharCallback(GLFWwindow *window, unsigned int key)
15201520

15211521
// NOTE: Registers any key down considering OS keyboard layout but
15221522
// does not detect action events, those should be managed by user...
1523-
// Ref: https://github.com/glfw/glfw/issues/668#issuecomment-166794907
1524-
// Ref: https://www.glfw.org/docs/latest/input_guide.html#input_char
1523+
// REF: https://github.com/glfw/glfw/issues/668#issuecomment-166794907
1524+
// REF: https://www.glfw.org/docs/latest/input_guide.html#input_char
15251525

15261526
// Check if there is space available in the queue
15271527
if (CORE.Input.Keyboard.charPressedQueueCount < MAX_CHAR_PRESSED_QUEUE)

src/rcore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,8 +1660,8 @@ float GetFrameTime(void)
16601660
// Wait for some time (stop program execution)
16611661
// NOTE: Sleep() granularity could be around 10 ms, it means, Sleep() could
16621662
// take longer than expected... for that reason we use the busy wait loop
1663-
// Ref: http://stackoverflow.com/questions/43057578/c-programming-win32-games-sleep-taking-longer-than-expected
1664-
// Ref: http://www.geisswerks.com/ryan/FAQS/timing.html --> All about timing on Win32!
1663+
// REF: http://stackoverflow.com/questions/43057578/c-programming-win32-games-sleep-taking-longer-than-expected
1664+
// REF: http://www.geisswerks.com/ryan/FAQS/timing.html --> All about timing on Win32!
16651665
void WaitTime(double seconds)
16661666
{
16671667
if (seconds < 0) return; // Security check

src/rlgl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3914,7 +3914,7 @@ void rlUnloadFramebuffer(unsigned int id)
39143914

39153915
// TODO: Review warning retrieving object name in WebGL
39163916
// WARNING: WebGL: INVALID_ENUM: getFramebufferAttachmentParameter: invalid parameter name
3917-
// Ref: https://registry.khronos.org/webgl/specs/latest/1.0/
3917+
// REF: https://registry.khronos.org/webgl/specs/latest/1.0/
39183918
glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, &depthId);
39193919

39203920
unsigned int depthIdU = (unsigned int)depthId;
@@ -4485,7 +4485,7 @@ void rlSetUniformMatrices(int locIndex, const Matrix *matrices, int count)
44854485
glUniformMatrix4fv(locIndex, count, true, (const float *)matrices);
44864486
#elif defined(GRAPHICS_API_OPENGL_ES2)
44874487
// WARNING: WebGL does not support Matrix transpose ("true" parameter)
4488-
// Ref: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix
4488+
// REF: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix
44894489
glUniformMatrix4fv(locIndex, count, false, (const float *)matrices);
44904490
#endif
44914491
}

src/rmodels.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5998,8 +5998,8 @@ static Model LoadGLTF(const char *fileName)
59985998
//----------------------------------------------------------------------------------------------------
59995999

60006000
// Load animation data
6001-
// Ref: https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#skins
6002-
// Ref: https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#skinned-mesh-attributes
6001+
// REF: https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#skins
6002+
// REF: https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#skinned-mesh-attributes
60036003
//
60046004
// LIMITATIONS:
60056005
// - Only supports 1 armature per file, and skips loading it if there are multiple armatures

0 commit comments

Comments
 (0)