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

renderer: add support for OpenGL uniform blocks in shader_program #1078

Merged
merged 4 commits into from Dec 25, 2018

Conversation

Vtec234
Copy link
Contributor

@Vtec234 Vtec234 commented Dec 24, 2018

This adds partial support for uniform buffers in the renderer. Namely, the OpenGL backend can parse and extract all information out of shaders containing uniform blocks, but I didn't add any way to actually set the block contents. This is intentional, because I'm not sure what the best interface for that would be, so let's leave it until it's needed.

@TheJJ TheJJ added improvement Enhancement of an existing component area: renderer Concerns our graphics renderer lang: c++ Done in C++ code labels Dec 24, 2018
tusharpm
tusharpm previously approved these changes Dec 25, 2018
Copy link
Member

@tusharpm tusharpm left a comment

Choose a reason for hiding this comment

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

Suggested minor changes. LGTM.

libopenage/renderer/opengl/lookup.h Outdated Show resolved Hide resolved
libopenage/renderer/opengl/shader_program.cpp Show resolved Hide resolved
@tusharpm tusharpm merged commit e0a1e97 into SFTtech:master Dec 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: renderer Concerns our graphics renderer improvement Enhancement of an existing component lang: c++ Done in C++ code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants