Skip to content

Commit

Permalink
update to master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
GuvaCode committed Jan 21, 2025
1 parent 941c141 commit 016575c
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
cmem,
{uncomment if necessary}
raymath,
//rlgl,
//rlgl,
raylib;

const
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions headers/raylib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ RLAPI int GetShaderLocationAttrib(Shader shader, const char *attribName); // Ge
RLAPI void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType); // Set shader uniform value
RLAPI void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count); // Set shader uniform value vector
RLAPI void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat); // Set shader uniform value (matrix 4x4)
RLAPI void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture); // Set shader uniform value for texture (sampler2d)
RLAPI void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture); // Set shader uniform value and bind the texture (sampler2d)
RLAPI void UnloadShader(Shader shader); // Unload shader from GPU memory (VRAM)

// Screen-space-related functions
Expand Down Expand Up @@ -1502,7 +1502,8 @@ RLAPI int GetCodepointPrevious(const char *text, int *codepointSize);
RLAPI const char *CodepointToUTF8(int codepoint, int *utf8Size); // Encode one codepoint into UTF-8 byte array (array length returned as parameter)

// Text strings management functions (no UTF-8 strings, only byte chars)
// NOTE: Some strings allocate memory internally for returned strings, just be careful!
// WARNING 1: Most of these functions use internal static buffers, it's recommended to store returned data on user-side for re-use
// WARNING 2: Some strings allocate memory internally for the returned strings, those strings must be free by user using MemFree()
RLAPI int TextCopy(char *dst, const char *src); // Copy one string to another, returns bytes copied
RLAPI bool TextIsEqual(const char *text1, const char *text2); // Check if two text string are equal
RLAPI unsigned int TextLength(const char *text); // Get text length, checks for '\0' ending
Expand Down
18 changes: 14 additions & 4 deletions headers/rlgl.h
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,10 @@ RLAPI void rlSetCullFace(int mode); // Set face culling mode
RLAPI void rlEnableScissorTest(void); // Enable scissor test
RLAPI void rlDisableScissorTest(void); // Disable scissor test
RLAPI void rlScissor(int x, int y, int width, int height); // Scissor test
RLAPI void rlEnableWireMode(void); // Enable wire mode
RLAPI void rlEnablePointMode(void); // Enable point mode
RLAPI void rlDisableWireMode(void); // Disable wire (and point) mode
RLAPI void rlDisablePointMode(void); // Disable point mode
RLAPI void rlEnableWireMode(void); // Enable wire mode
RLAPI void rlDisableWireMode(void); // Disable wire mode
RLAPI void rlSetLineWidth(float width); // Set the line drawing width
RLAPI float rlGetLineWidth(void); // Get the line drawing width
RLAPI void rlEnableSmoothLines(void); // Enable line aliasing
Expand Down Expand Up @@ -1967,6 +1968,15 @@ void rlEnableWireMode(void)
#endif
}

// Disable wire mode
void rlDisableWireMode(void)
{
#if defined(GRAPHICS_API_OPENGL_11) || defined(GRAPHICS_API_OPENGL_33)
// NOTE: glPolygonMode() not available on OpenGL ES
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
#endif
}

// Enable point mode
void rlEnablePointMode(void)
{
Expand All @@ -1977,8 +1987,8 @@ void rlEnablePointMode(void)
#endif
}

// Disable wire mode
void rlDisableWireMode(void)
// Disable point mode
void rlDisablePointMode(void)
{
#if defined(GRAPHICS_API_OPENGL_11) || defined(GRAPHICS_API_OPENGL_33)
// NOTE: glPolygonMode() not available on OpenGL ES
Expand Down
Binary file modified libs/i386-win32/libraylibdll.a
Binary file not shown.
Binary file modified libs/i386-win32/raylib.dll
Binary file not shown.
Binary file modified libs/x86_32-linux/libraylib.a
Binary file not shown.
Binary file modified libs/x86_32-linux/libraylib.so
Binary file not shown.
Binary file modified libs/x86_64-linux/libraylib.a
Binary file not shown.
Binary file modified libs/x86_64-linux/libraylib.so
Binary file not shown.
Binary file modified libs/x86_64-win64/libraylibdll.a
Binary file not shown.
Binary file modified libs/x86_64-win64/raylib.dll
Binary file not shown.
5 changes: 3 additions & 2 deletions source/raylib.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ procedure SetShaderValue(shader: TShader; locIndex: Integer; const value: Pointe
procedure SetShaderValueV(shader: TShader; locIndex: Integer; const value: Pointer; uniformType: TShaderUniformDataType; count: Integer); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'SetShaderValueV';
{Set shader uniform value (matrix 4x4)}
procedure SetShaderValueMatrix(shader: TShader; locIndex: Integer; mat:TMatrix); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'SetShaderValueMatrix';
{Set shader uniform value for texture (sampler2d) }
{Set shader uniform value and bind the texture (sampler2d)}
procedure SetShaderValueTexture(shader: TShader; locIndex: Integer; texture: TTexture2D); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'SetShaderValueTexture';
{Unload shader from GPU memory (VRAM)}
procedure UnloadShader(shader: TShader); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'UnloadShader';
Expand Down Expand Up @@ -1899,7 +1899,8 @@ function GetCodepointPrevious(const text: PChar; codepointSize: PInteger): Integ
function CodepointToUTF8(codepoint: Integer; utf8Size: PInteger): PChar; cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'CodepointToUTF8';

(* Text strings management functions (no UTF-8 strings, only byte chars) *)
// NOTE: Some strings allocate memory internally for returned strings, just be careful!
// WARNING 1: Most of these functions use internal static buffers, it's recommended to store returned data on user-side for re-use
// WARNING 2: Some strings allocate memory internally for the returned strings, those strings must be free by user using MemFree()

{Copy one string to another, returns bytes copied}
function TextCopy(dst: PChar; const src: PChar): Integer; cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'TextCopy';
Expand Down
8 changes: 5 additions & 3 deletions source/rlgl.pas
Original file line number Diff line number Diff line change
Expand Up @@ -595,11 +595,13 @@ procedure rlEnableScissorTest; cdecl; external {$IFNDEF RAY_STATIC}cDllName{$END
procedure rlDisableScissorTest; cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlDisableScissorTest';
{Scissor test}
procedure rlScissor(x, y, width, height: Integer); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlScissor';
{Enable point mode}
procedure rlEnablePointMode(); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlEnablePointMode';
{Disable point mode}
procedure rlDisablePointMode(); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlDisablePointMode';
{Enable wire mode}
procedure rlEnableWireMode; cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlEnableWireMode';
{Enable point mode}
procedure rlEnablePointMode(); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlDisableWireMode';
{Disable wire (and point) mode}
{Disable wire mode}
procedure rlDisableWireMode; cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlDisableWireMode';
{Set the line drawing width}
procedure rlSetLineWidth(width: Single); cdecl; external {$IFNDEF RAY_STATIC}cDllName{$ENDIF} name 'rlSetLineWidth';
Expand Down

0 comments on commit 016575c

Please sign in to comment.