Commit Graph

23 Commits (18c20687d40304cf84f57ec2cba06d4b2a3c16f5)

Author SHA1 Message Date
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