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

Allow for mipmapping in texture atlas. #50

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

Possseidon
Copy link
Owner

No description provided.

@Possseidon Possseidon self-assigned this Aug 14, 2021
@Possseidon Possseidon added the enhancement New feature or request label Aug 14, 2021
size[v_indices]...);
if (!mipmap_levels) {
if constexpr (v_target == TextureTarget::Texture1DArray)
mipmap_levels = mipmapCount(size.x().maxValue());
Copy link
Owner Author

Choose a reason for hiding this comment

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

size.x() is just a GLsizei and does not have .maxValue().

Can I just use only .maxValue() everywhere and get rid of these if constexpr checks?

@Possseidon Possseidon force-pushed the dev/mipmapping branch 3 times, most recently from 01a570d to 9a03579 Compare June 5, 2022 16:15
Possseidon and others added 9 commits June 5, 2022 22:51
Also removed automatic mipmap generation in "generate".
Main appeal is, that it also works for unsigned types.
It no longer has constructor overloads on BorderedImageData::Image.
- Use std::size_t everywhere.
- Get rid of a load of static_casts.
  - Those are now in the OpenGL specializations.
- Fix ensureTextureSize for zero sized textures.
- Added support for MipmapLevels in tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dang-gl enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant