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

Changed from software to hardware texture tileing. #29

Merged
merged 1 commit into from Mar 21, 2016
Merged

Changed from software to hardware texture tileing. #29

merged 1 commit into from Mar 21, 2016

Conversation

Rinnegatamante
Copy link
Contributor

Changed from software to hardware texture tileing as suggested in issue #22 .

Some note about this modification:

  1. I've leaved the code for the original tile32 function since i've noticed targets got added to sf2dlib. I don't even know how they really work and i don't have much time to test them so if someone wants to add tile32_hardware support to them too, it can try it.
  2. I tried to leave the code similar to the old syntax but i probably suggest to force texture->tiled = 0 in fill_texture_from_RGBA8.
  3. There are probably better way to do so but this works fine and since in like 3 months anyone pulled this modification, better this then nothing i think.

Changed from software to hardware texture tileing.
xerpi added a commit that referenced this pull request Mar 21, 2016
Changed from software to hardware texture tileing.
@xerpi xerpi merged commit e9a23af into xerpi:master Mar 21, 2016
@Cruel
Copy link
Contributor

Cruel commented Mar 21, 2016

If you do this, I don't think you can use smaller textures. You try testing 8x8 and 16x16 textures?

You may need to change TEX_MIN_SIZE to 32 to get them working.

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