Robadob / sdl_exp

Low-level graphics engine built over SDL2
MIT License
1 stars 2 forks source link

Linux Support #27

Open ptheywood opened 8 years ago

ptheywood commented 8 years ago

Working version on linux would be nice.

Makefile has been created ptheywood/sdl_exp@c06d369, however OpenGL issues are stopping any rendering (currently)

Robadob commented 7 years ago

If you add this code before the context is created, the last two lines should flush any defaults which force forwards compatibility. Might simply be the case that forward compatibility is enables on Linux by default, but not on windows.

    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
    SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
    SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0);
Robadob commented 7 years ago

Using the above note, I've managed to get the branch 4.3compat working, would be useful to check this branch now builds/runs on Linux.

Robadob commented 7 years ago

Will also need to adjust Stock font's in Text on Linux.