Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some errors #35

Merged
merged 2 commits into from
Dec 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libraries/raylib55.c3l/raylib.c3i
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ fn void unloadVrStereoConfig(VrStereoConfig config) @extern("UnloadVrStereoConfi
// NOTE: Shader functionality is not available on OpenGL 1.1
fn Shader loadShader(ZString vsFileName, ZString fsFileName) @extern("LoadShader"); // Load shader from files and bind default locations
fn Shader loadShaderFromMemory(ZString vs, ZString fs) @extern("LoadShaderFromMemory"); // Load shader from code strings and bind default locations
fn bool isShaderValid(Shader shader) @extern("IsShaderReady") @extern("IsShaderValid"); // Check if a shader is ready
fn bool isShaderValid(Shader shader) @extern("IsShaderReady"); // Check if a shader is ready
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be

fn bool isShaderValid(Shader shader) @extern("IsShaderValid");  // Check if a shader is valid (loaded on GPU)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes hehe... sorry just fixed quickly didnt think much ab it :p

fn int getShaderLocation(Shader shader, ZString uniformName) @extern("GetShaderLocation"); // Get shader uniform location
fn int getShaderLocationAttrib(Shader shader, ZString attr) @extern("GetShaderLocationAttrib"); // Get shader attribute location
fn void setShaderValue(Shader shader, int locIndex, void* value, int uniformType) @extern("SetShaderValue"); // Set shader uniform value
Expand Down Expand Up @@ -1565,7 +1565,7 @@ fn ZString textToCamel(ZString text) @extern("TextToCamel");
// Get integer value from text (negative values not supported)
fn int textToInteger(ZString text) @extern("TextToInteger");
// Get float value from text (negative values not supported)
fn float TextToFloat(ZString text);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong, must @extern("TextToFloat") with that one.

fn float textToFloat(ZString text);
//------------------------------------------------------------------------------------
// Basic 3d Shapes Drawing Functions (Module: models)
//------------------------------------------------------------------------------------
Expand Down