Roberto Fernandez Bautista
3404f4e86b
Check GLEW functions exist before calling them
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6235
5 years ago
Tomasz Włostowski
85a7ab7795
gal: minor cleanup & formatting
7 years ago
Tomasz Włostowski
bbee30671a
gal: pixel alignment hacks, works for Retina display too now.
gal: pixel alignment for Cairo.
gal: pixel alignment for OpenGL
Cleanup of pixel alignment patches
gal/opengl: more pixel alignment patches:
- works on Retina displays now
- pixel alignment for circles
- correct 1-pixel strokes
- fixed unfinished 1-pixel line ends
GAL: Restore antialiasing options in Cairo
GAL: Fix arc drawing
Removes DrawArcSegment, which drew arcs whose edge was optionally
stroked (a feature that we did not use). Fixes Cairo arc drawing issue
where arcs were not visible in pcbnew.
gal: further cleanup
gal: removed unused shader parameter
7 years ago
Tomasz Włostowski
32185ddcd3
Multiple improvements concerning colors, configuration handling and legacy features in pcbnew:
- support for background color setting
- removed several global config settings (such as g_Drc_On)
- wrapped most of global config settings in PCB_GENERAL_SETTINGS class
- reorganized PCB general options dialog to clearly mark which options concern only the legacy canvas
- new GAL feature for legacy users: double-click (or E) to change track width available as an option.
Fixes: lp:1530543
* https://bugs.launchpad.net/kicad/+bug/1530543
Fixes: lp:1707145
* https://bugs.launchpad.net/kicad/+bug/1707145
8 years ago
Maciej Suminski
e6cfb6af52
Revert "Fix setting the background color in OPENGL_GAL"
Causes flickering on some GPUs.
This reverts commit ca985791bc .
9 years ago
Maciej Suminski
ca985791bc
Fix setting the background color in OPENGL_GAL
Fixes: lp:1669098
* https://bugs.launchpad.net/kicad/+bug/1669098
9 years ago
Maciej Suminski
77af6547c1
Coverity fixes (mostly initializing variables)
9 years ago
Maciej Suminski
838c6097d9
Removed a redundant assert in OPENGL_COMPOSITOR.
9 years ago
Maciej Suminski
7cf1cfedb3
Change exception message time from wxString to std::string
9 years ago
Maciej Suminski
88eb648cbb
Alternative way of handling OpenGL initialization & errors
Some faults could result in a crash, as they were not properly
handled. Now the rendering loop is wrapped with try..catch block
which will revert to Cairo in case of an error and display an
error message.
Fixes: lp:1655766
* https://bugs.launchpad.net/kicad/+bug/1655766
9 years ago
Maciej Suminski
5a7604cbb4
More code formatting
9 years ago
Maciej Suminski
aabf8300c3
Removed non-ASCII characters
9 years ago
decimad
64cd1228ea
Clearer error messages for OPENGL_COMPOSITOR::CreateBuffer() (thanks Orson)
9 years ago
decimad
77138e3702
Add UI control to set up gal opengl antialiasing and load/store the settings
9 years ago
decimad
2a8dd508c4
Add smaa (subsample morphological antialiasing)
9 years ago
decimad
afacee5d96
Add supersampling (2x/4x) antialiasing
9 years ago
decimad
02bb410cdb
Refactor COMPOSITOR/OPENGL_COMPOSITOR to enable customization of scene rendering and presentation
9 years ago
Maciej Suminski
58ed0c8cce
Improved grid drawing routine (OpenGL).
10 years ago
Maciej Suminski
4cca3bc368
Minor OPENGL_COMPOSITOR refactoring.
10 years ago
Maciej Suminski
247f018075
FIxed rendering artifacts in OpenGL canvas.
10 years ago
jean-pierre charras
9004ed8801
Remove a few coverity warnings. Fix some comments which were incorrect, due to the changes in code. Remove not compiled code (kept as comments), now outdated or useless
legacy plugin: better compatibility with old brd files (current track width and current vias size, stored in SETUP section, were not read from file and incorrectly set)
11 years ago
Maciej Suminski
b1ace1607b
Reworked GAL switching.
Now OpenGL can report its problems instead of shutting down the application.
11 years ago
Maciej Suminski
90c7c72d81
Reverted missing changes.
11 years ago
Maciej Suminski
7de3aa9af2
Reverted the last commit, apparently not every GLEW contains required definitions.
11 years ago
Maciej Suminski
1f8b77697f
gal: Check maximum framebuffer size (OpenGL).
11 years ago
jean-pierre charras
4fc4ea6147
Make some system error messages not translatable. Better comments in some dialogs.
12 years ago
Maciej Suminski
0fc93666c6
Rework to support multiple views with OpenGL GAL canvas.
12 years ago
Maciej Suminski
1c253bfba0
Some variables initialized to NULL.
12 years ago
Maciej Suminski
5235d7e5eb
Modified error handling for OpenGL backend, now error messages should be visible.
12 years ago
Maciej Suminski
f615c462a2
Changed the used framebuffer object extension from ARB_framebuffer_object to EXT_framebuffer_object (compatibility reasons).
12 years ago
Maciej Suminski
0ac3e1fbf2
Namespace KiGfx->KIGFX.
template<> -> template <>
Some more reformatting according to uncrustify results.
12 years ago
Maciej Suminski
f1c3ea1c3c
Fixed unnecessary comment
12 years ago
Maciej Suminski
75bb84704d
Added error messages for OpenGL framebuffer errors. This should eliminate quiet segfaults in case of drivers that cannot handle multiple attachment points for framebuffers.
12 years ago
Maciej Suminski
f93d297cb5
Some comments.
12 years ago
Maciej Suminski
43ae1cb98d
Smarter way of the overlay rendering (overlay is always refreshed, while cached&noncached targets only if the viewport or items have changed).
13 years ago
Maciej Suminski
ebc2a4269e
Modified way of handling OpenGL framebuffer errors.
Now it is more verbose and the status is checked at the right moment (previously it was fine with Linux, but on Windows it showed errors).
13 years ago
Maciej Suminski
190ed58568
Code refactoring.
13 years ago
Maciej Suminski
790a1f8563
Made GAL backends settings more consistent. Fixed grid line width in the OpenGL backend.
13 years ago
Maciej Suminski
27113348b9
Fixed blending function for OpenGL compositing. Corrected documentation, removed unnecessary functions.
13 years ago
Maciej Suminski
618a5f0e75
OpenGL multitarget rendering (compositing).
13 years ago