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

Blending Modes #26

Open
ghost opened this issue Aug 1, 2019 · 0 comments
Open

Blending Modes #26

ghost opened this issue Aug 1, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 1, 2019

DGEngine now allows defining a BlendMode. This is used mainly to draw composite textures (textures that are created by drawing multiple textures on top of each other). These are used for Flare's hero textures (overlaying weapons, chlothes) and Diablo 2's textures (for nearly all visible elements).

The code that makes it happen is here:
https://github.com/dgengin/DGEngine/blob/master/src/BlendMode.h
https://github.com/dgengin/DGEngine/blob/master/src/SFML/SFMLUtils.cpp

Diablo 2's game assets are currently loaded correctly, but I don't think all required BlendModes exist. The "screen" blend mode is what's used in Diablo 2, which I read is similar to the "add" blend mode.

SFML's blendMode documentation:
https://www.sfml-dev.org/documentation/2.5.1/structsf_1_1BlendMode.php

This issue is to track the missing BlendModes required to properly draw all of Diablo 2's texturers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants