Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ofauchon
Copy link
Contributor

@ofauchon ofauchon commented Apr 14, 2025

I faced the situation I wanted to experiment with new custom gfx components within my project.
Some of these new gfx components can be very specific and may not be merged in tinygl.

With current TinyGL, it's not possible to have graphics components in your project source tree, because there are some unexported structs/methods.

This PR changes some BaseObject/Object definitions to have them exported and allows external uses.

What is your opinion on this approach ?

@ofauchon ofauchon changed the title Export Object and BaseObject to allow creation of external,custom gfx… Export Object and BaseObject definitions Apr 14, 2025
@ofauchon ofauchon marked this pull request as draft April 14, 2025 14:30
@aykevl
Copy link
Owner

aykevl commented Apr 16, 2025

Actually it is possible already to have custom objects! You can look at the gfx package as an example, which only uses the public API of the tinygl package.
(It's a bit less ergonomic though, but it should be usable).

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.

2 participants