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

Add return value to LoadTextureDepth #479

Merged
merged 2 commits into from
Dec 28, 2024
Merged

Conversation

sugarvoid
Copy link
Contributor

Modified the LoadTextureDepth function in the Go bindings to return the texture depth ID (uint32). Previously, the function did not return anything, which made it difficult to access the texture ID directly in Go.

@JupiterRider
Copy link
Contributor

Thanks for the PR!
Could you also please make the change in the purego version?

You just need to change

func LoadTextureDepth(width, height int32, useRenderBuffer bool) {
	rlLoadTextureDepth(width, height, useRenderBuffer)
}

to

func LoadTextureDepth(width, height int32, useRenderBuffer bool) uint32 {
	return rlLoadTextureDepth(width, height, useRenderBuffer)
}

in raylib/rlgl_purego.go

@sugarvoid
Copy link
Contributor Author

Thanks for pointing that out. I have made that change.

@gen2brain gen2brain merged commit d58ffe1 into gen2brain:master Dec 28, 2024
10 checks passed
@gen2brain
Copy link
Owner

Merged, thanks.

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

Successfully merging this pull request may close these issues.

3 participants