question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Fix names in structs!

See original GitHub issue

Before submitting a new issue, please verify and check:

  • The issue is specific to Raylib-cs and not raylib
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of Raylib-cs

Issue description

Hello, i saw variable names that not agree with the C# rules.

Example:

Yours:

    public partial struct Transform
    {
        /// <summary>
        /// Translation
        /// </summary>
        public Vector3 translation;

        /// <summary>
        /// Rotation
        /// </summary>
        public Quaternion rotation;

        /// <summary>
        /// Scale
        /// </summary>
        public Vector3 scale;
    }

How it should look like:

    public partial struct Transform
    {
        /// <summary>
        /// Translation
        /// </summary>
        public Vector3 Translation;

        /// <summary>
        /// Rotation
        /// </summary>
        public Quaternion Rotation;

        /// <summary>
        /// Scale
        /// </summary>
        public Vector3 Scale;
    }

Environment

*Raylib-cs

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Reactions:1
  • Comments:22 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
MrScautHDcommented, Aug 5, 2023

And i would suggest to rename the Raylib_cs namespace to Raylib

1reaction
MrScautHDcommented, Aug 5, 2023

If you agree with that i could do that for the full class

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a fix for this Structure naming bug?
The only way we've found to avoid this problem is to rename both the label and the structure name of the offending structure...
Read more >
Unusual bug with structs [closed] - c++
In this program I need to read in information from a text file, the first line is the number of courses I am...
Read more >
Can't compile structs with the same name in different rust ...
Describe the Bug Structs with the same names, that reside in different rust modules and have wasm_bindgen attribute applied, ...
Read more >
Purpose of name for typedef struct : r/C_Programming
Purpose of name for typedef struct. I'm a beginner, and I'm learning about structs now. I'm a little confused about this code sample:...
Read more >
Quick fix C struct name doesn't rename Struct definition
Set naming convention to camelCase; Fix Struct name from main function. Expected: All struct usages and definition are renamed. Actual: Only struct usage ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found