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

SDL rendering without OpenGL #54

Closed
Toneymoon opened this issue Oct 29, 2014 · 8 comments
Closed

SDL rendering without OpenGL #54

Toneymoon opened this issue Oct 29, 2014 · 8 comments
Labels
nice new thing ☺ A new feature that was not there before

Comments

@Toneymoon
Copy link

It would be great to have simple SDL rendering without OpenGL for old & troubled video chips, that has no hardware acceleration for 3D & OpenGL.

@mic-e
Copy link
Member

mic-e commented Oct 29, 2014

Doesn't SDL2 internally use OpenGL?

Anyways, the renderer currently does non-trivial stuff with shaders, such as coloring buildings/units with their team colors. Rendering unit outlines (for units that are hidden behind a building) would be an other thing.

I don't see an obvious way of doing this with the basic SDL2 renderer, but I haven't really looked into it either. I guess the team colors could be replaced in software, at the price of having 8 versions of each unit in memory.

@janisozaur
Copy link
Contributor

SDL is certainly able to use DirectX instead, perhaps also GLES? While noone cares about former, GLES actually could be useful.

@LeviSchuck
Copy link

Would it be possible to alternatively provide mesa 3d (software opengl implementation) for such needs?

I've seen a guy use mesa in dosbox for fun.

@mic-e
Copy link
Member

mic-e commented Oct 29, 2014

IIRC software rendering can always by triggered by setting an environment variable LIBGL_ALWAYS_SOFTWARE=1. No support in openage is required for that.

@janisozaur
Copy link
Contributor

As @mic-e says, llvmpipe would have nothing to do with openage/sdl. Given its performance though, if you have "troubled video chip", chances are your cpu isn't performant as well.
I don't think llvmpipe should be taken into consideration at this stage.
GLES, on the other hand, enables you to target much broader audience: embedded devices, wayland (libGL currently pulls X libraries, hence has GLES support only so far)

@mic-e mic-e added the nice new thing ☺ A new feature that was not there before label Oct 29, 2014
@TheJJ TheJJ changed the title Feature request: SDL rendering without OpenGL. SDL rendering without OpenGL Nov 2, 2014
@franciscod
Copy link
Contributor

do we really want to mantain another rendering subsystem? i mean, opengl is pretty standard nowadays...

@mic-e
Copy link
Member

mic-e commented Jun 25, 2015

#287 will add support for multiple rendering subsystems (targeted at Vulkan).

@TheJJ
Copy link
Member

TheJJ commented Aug 12, 2015

Due to the lack of shaders this will probably never happen. Tell me if you think otherwise.

@TheJJ TheJJ closed this as completed Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice new thing ☺ A new feature that was not there before
Projects
None yet
Development

No branches or pull requests

6 participants