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

Added support for 1,2,3-component textures #1731

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katyo
Copy link

@katyo katyo commented Feb 20, 2019

Setting appropriate texture format:

  • GL_RED for one component
  • GL_RG for two component
  • GL_RGB for three component
  • GL_RGBA for four component

Quick fix for #1730.

@avl
Copy link
Contributor

avl commented Jul 17, 2021

@katyo Seems there are merge conflicts. Would you be interested in fixing these?

@katyo katyo force-pushed the support-for-1-2-3-component-textures branch from 16960d1 to 895792e Compare July 17, 2021 17:03
@katyo
Copy link
Author

katyo commented Jul 17, 2021

@avl I rebased this PR, so it has to be ready for merge now.

@est31
Copy link
Collaborator

est31 commented Jul 17, 2021

Thanks for the PR. It has a bunch of whitespace/formatting changes. Can you undo them? Then I can give it a review.

@katyo
Copy link
Author

katyo commented Jul 18, 2021

@est31 Seems glium doesn't use autoformatting of Rust code. My editing mode does it.

Setting appropriate texture format:

* GL_RED for one component
* GL_RG for two component
* GL_RGB for three component
* GL_RGBA for four component
@katyo katyo force-pushed the support-for-1-2-3-component-textures branch from 895792e to 58311b7 Compare July 18, 2021 05:08
@katyo
Copy link
Author

katyo commented Jul 18, 2021

@est31 I'm not sure but seems client_format_to_glenum already does such.

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.

None yet

3 participants