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

Raylib Constant Aliases Missing #21

Open
joseph-montanez opened this issue Aug 2, 2023 · 0 comments
Open

Raylib Constant Aliases Missing #21

joseph-montanez opened this issue Aug 2, 2023 · 0 comments

Comments

@joseph-montanez
Copy link
Owner

Raylib has a handful of aliases missing for backwards compatibility. These are in the define section of the json file.

    {
      "name": "MOUSE_LEFT_BUTTON",
      "type": "UNKNOWN",
      "value": "MOUSE_BUTTON_LEFT",
      "description": ""
    },
    {
      "name": "MOUSE_RIGHT_BUTTON",
      "type": "UNKNOWN",
      "value": "MOUSE_BUTTON_RIGHT",
      "description": ""
    },
    {
      "name": "MOUSE_MIDDLE_BUTTON",
      "type": "UNKNOWN",
      "value": "MOUSE_BUTTON_MIDDLE",
      "description": ""
    },
    {
      "name": "MATERIAL_MAP_DIFFUSE",
      "type": "UNKNOWN",
      "value": "MATERIAL_MAP_ALBEDO",
      "description": ""
    },
    {
      "name": "MATERIAL_MAP_SPECULAR",
      "type": "UNKNOWN",
      "value": "MATERIAL_MAP_METALNESS",
      "description": ""
    },
    {
      "name": "SHADER_LOC_MAP_DIFFUSE",
      "type": "UNKNOWN",
      "value": "SHADER_LOC_MAP_ALBEDO",
      "description": ""
    },
    {
      "name": "SHADER_LOC_MAP_SPECULAR",
      "type": "UNKNOWN",
      "value": "SHADER_LOC_MAP_METALNESS",
      "description": ""
    }

So MATERIAL_MAP_DIFFUSE would map to raylib\MaterialMapIndex\MATERIAL_MAP_ALBEDO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant