Skip to content

Make Set_UniformColor a member function instead of a template#1966

Open
slipher wants to merge 2 commits intoDaemonEngine:masterfrom
slipher:uniform-notemplate
Open

Make Set_UniformColor a member function instead of a template#1966
slipher wants to merge 2 commits intoDaemonEngine:masterfrom
slipher:uniform-notemplate

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented May 5, 2026

No description provided.

@illwieckz
Copy link
Copy Markdown
Member

Nice! I guess I can do the same with a similar dispatcher in my GL4ES branch!

Comment thread src/engine/renderer/gl_shader.cpp Outdated
u_ColorModulateColorGen_Uint( this ),
u_Color_Float( this ),
u_Color_Uint( this ),
u_ColorModulateColorGen_Dual( this ),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe _Multi is more generic for a naming convention of one thing dispatching to many?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or _Dispatch… 😁️

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changed to _Dispatch.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

OK now I got both of them.

@slipher slipher force-pushed the uniform-notemplate branch from bdede59 to f98f142 Compare May 6, 2026 05:10
Get rid of SetUniform_Color and SetUniform_ColorModulateColorGen
template functions and make them member functions of classes which
inherit the two variants of each uniform.
@slipher slipher force-pushed the uniform-notemplate branch from f98f142 to 89a54ce Compare May 6, 2026 18:22
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