jackun
2f807a4c0d
Add `spdlog` wrap and logging
3 years ago
jackun
b6dab97d08
[OpenGL] Some code clean-ups
3 years ago
jackun
0f6ead57d7
[OpenGL] Bind framebuffer for all GL ES versions
3 years ago
jackun
e62d6e3337
[OpenGL] Save/restore last GL_DRAW_FRAMEBUFFER if using `gl_bind_framebuffer`
3 years ago
jackun
afa50a17c4
[OpenGL] Add gl_size_query, gl_bind_framebuffer, gl_dont_flip options for workarounds
...
`gl_size_query = viewport` - specify what to use for getting display size. Options are "viewport", "scissorbox" or disabled. Defaults to using glXQueryDrawable.
`gl_bind_framebuffer = 0` - (re)bind given framebuffer before MangoHud gets drawn. Helps with Crusader Kings 3.
`gl_dont_flip = 1` - don't swap origin if using GL_UPPER_LEFT. Helps with Ryujinx.
3 years ago
jackun
30cdc912a8
Rework blending equation to preserve alpha in output buffer
...
bda12e5fdd
3 years ago
jackun
118c54072f
[OpenGL] Disable primitive restart
3 years ago
jackun
8e7564ab1a
[OpenGL] Disable stencil test
3 years ago
jackun
bdd87f5eff
Use SetTexID instead
3 years ago
jackun
76b571bc11
[OpenGL] Fix glClipControl(GL_UPPER_LEFT) rendering
3 years ago
jackun
ee2933bff5
Resize fonts
4 years ago
jackun
891a3944f3
[OpenGL] Default and limit GLSL version to 1.20 if OpenGL < 3.0. Not using anything fancy for now anyway.
4 years ago
jackun
60940e5a02
[OpenGL] Just "refcount" by glXCreate/DestroyContext calls; recreate "lost" objects
4 years ago
jackun
ba6346110c
[OpenGL] Enable color mask
...
Maybe previous state needs to be restored afterwards?
4 years ago
jackun
8eba5e2ed2
[OpenGL] Use GL_R8 for font textures
...
Randomly getting squares with GL_ALPHA for some reason
4 years ago
jackun
c63037efb5
Use 1-channel font textures; glyph ranges support; vulkan image descriptors and "helper" functions
...
* To save some memory, use just 1-channel alpha-only textures
* Add some sort of wider glyph ranges support
* Chop single-ish vulkan font image uploading function into separate reusable helper functions
* Use descriptor set for ImTextureID but probably use texture array and push constants for "fast-path" if need arises
4 years ago
jackun
62efa4acc4
[OpenGL] Simplify if check
4 years ago
jackun
d0999ab01b
[OpenGL] Workaround: Merge version and shader strings for Feral games
...
FIXME: GLAD loads Feral's version of glShaderSource,
4 years ago
jackun
2db83f4e18
[OpenGL] Check if font texture is valid and regenerate if not
4 years ago
jackun
bb9721fe87
[OpenGL] Check if SRGB is enabled and Render ImGui in linear colorspace
4 years ago
jackun
d8264c485f
[OpenGL] Fixed version check mistakenly testing for GL 4.0+ instead of 3.2+ to enable ImGuiBackendFlags_RendererHasVtxOffset, leaving 3.2 contexts without it. (ocornut#3119, ocornut#2866, ocornut#2852)
4 years ago
jackun
22ee56def5
[OpenGL] Use 32bit font texture until someone figures out why 8-bit looks worse
4 years ago
jackun
bb4b78ada0
[OpenGL] Spam terminal a little less with version strings
4 years ago
jackun
f35e49defa
[OpenGL] Merge "shared" files back to imgui_hud.cpp
4 years ago
jackun
b40fb95a04
[OpenGL] Better version parsing and fix gl version checks for vertex arrays
4 years ago
jackun
ff3c58c9c5
[OpenGL] Change glXMakeCurrent return type to int just in case and convert missed #ifdefs
4 years ago
jackun
780ea7c89b
[OpenGL] Use GLAD instead on gl3w and hook EGL
4 years ago
jackun
8cd3172335
[OpenGL] Separate GLX out from shareable code so wayland sessions can just use EGL, hopefully
4 years ago
jackun
6eb2c9bc09
[OpenGL] Explicitly set ImGui's context and treat global context as foreign
...
Apps might be using Dear ImGui so keep our stuff separate from theirs.
Issue #107
4 years ago
jackun
8aa0783b4a
Show vulkan/opengl version
...
OpenGL glGetIntegerv(GL_[MAJOR|MINOR]_VERSION) don't work on versions < 3.0 though
4 years ago
jackun
a52dce875f
[OpenGL] Keep glClipControl local to imgui_impl_opengl3.cpp
4 years ago
jackun
37e34335ae
Sprinkle NDEBUG over gl debug prints
4 years ago
FlightlessMango
a2735693ba
Merge opengl into develop
4 years ago