Maciej Suminski
7eacd1b15d
Restored cursor in OpenGL canvas (still an issue with subpixel AA)
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
da00d64877
OpenGL antialising code clean up & formatting
9 years ago
decimad
77138e3702
Add UI control to set up gal opengl antialiasing and load/store the settings
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
decimad
77f9cd0cb0
remove custom shader header generation build-step in favor of c++11 raw string literals
rework shader loading code to handle an arbitrary amount of to-be-concatenated strings
9 years ago
decimad
047f52e7cb
Move builtin font resources out of opengl_gal translation unit
9 years ago
jean-pierre charras
d56a49d218
Performance counter rework: More comments, code cleaning, and move GetRunningMicroSecs() prototype from common.h to profile.h.
profile.h should now contain all info for profiling.
9 years ago
Simon Richter
ac9f858813
Performance counter rework
9 years ago
Maciej Suminski
89055c4425
Code formatting
9 years ago
Tomasz Włostowski
daf103d7e4
GAL: fix grid origin and grid rendering in flipped view mode
9 years ago
Tomasz Włostowski
da28e163d2
Optimizations/fixes to the VIEW/GAL classes:
- much faster Cairo rendering (outperforms legacy)
- improvements in VIEW update handling
- fixed issue with grid rendering in flip view mode
9 years ago
Tomasz Włostowski
c661c30f68
pcbnew: added flip view mode
9 years ago
jean-pierre charras
30df041de6
fix shadowed local variables
9 years ago
decimad
402f53a302
update font code along with the changes done in the msdf atlas tool (use codepoint spans and refined char placement)
add font coordinate system clarification drawing (svg)
9 years ago
decimad
d9a8aac96c
transfer font texture width to the fragment shader via uniform variable
9 years ago
Chris Pavlina
71263c32e8
Dismiss signed index warning in opengl_gal.cpp
9 years ago
Maciej Suminski
7a5f72c948
Fixed a crash when drawing a single point polyline
9 years ago
decimad
f78721b451
Multichannel Signed Distance Field text rendering for OpenGL GAL
9 years ago
Maciej Suminski
9f5f0ab31b
Minor OpenGL GAL code changes
9 years ago
Maciej Suminski
c9a41be774
Added licence for the GAL bitmap font
10 years ago
Simon Richter
da5699de0a
Replace boost::shared_ptr with std::shared_ptr.
10 years ago
Michael Steinberg
fde12ebd25
Replace boost::function and boost::bind with their std:: counterparts
10 years ago
Maciej Suminski
b82ccc3b4e
Reverted 6912 with minor changes (LockCtx requires to specify canvas that locks a context).
10 years ago
Maciej Suminski
57d4e8d51d
Fixed OpenGL crash on canvas switch.
10 years ago
Maciej Suminski
b7ec4ea160
Corrected the last instance check in OPENGL_GAL.
10 years ago
Simon Richter
2928cb7419
Replace unshared boost::shared_array with std::unique_ptr
10 years ago
Maciej Suminski
3fcae6b120
Fixes for OpenGL resources handling.
10 years ago
Maciej Suminski
b4ad18a3ea
Do not rebuild shaders on each OPENGL_GAL construction.
10 years ago
Maciej Suminski
b83c148e10
Delete OpenGL context on GLCanvas subclasses destruction.
10 years ago
Maciej Suminski
68b6da57c0
Removed OPENGL_GAL::instanceCounter.
10 years ago
Maciej Suminski
01f32dd52c
GL_CONTEXT_MANAGER class to avoid unexpected GL context switches.
10 years ago
Maciej Suminski
4f7bb4c0f7
Simplified error checking in OPENGL_GAL test.
10 years ago
jean-pierre charras
3e2cae946c
Corrected wxDC objects used by EDA_DRAW_PANEL_GAL & OPENGL_GAL.
10 years ago
jean-pierre charras
1ae9175671
A few minor fixes for compil warnings (shadowed variables and deprecated auto_ptr)
10 years ago
jean-pierre charras
ca0113ab65
Fix my previous commit: I committed the wrong file
10 years ago
jean-pierre charras
b7f863dc4c
Fix the commit 6838 (Fix non optimal position of net name and pad name in GAL mode), broken.
10 years ago
Maciej Suminski
a42cb0ef8c
OpenGL GAL: Set context in destructor when possible (under Linux the window has to be visible).
10 years ago
Maciej Suminski
d9f4877c94
Fixed a crash when starting pcbnew with OpenGL GAL.
10 years ago
Maciej Suminski
cca36d355a
Remove unnecessary debug messages (OpenGL GAL).
10 years ago
Maciej Suminski
22c4e4d240
Set OpenGL context only when the parent window is visible.
10 years ago
Maciej Suminski
55976e39ef
Fixed crash occuring when a vertex buffer is mapped in invalid OpenGL context.
10 years ago
Maciej Suminski
a62d2b5412
Bigger net labels (GAL).
10 years ago
Maciej Suminski
8d952f35c6
Fixed text vertical alignment for bitmap font (OpenGL).
10 years ago
Maciej Suminski
58ed0c8cce
Improved grid drawing routine (OpenGL).
10 years ago
Maciej Suminski
fff3abc9a0
Support for overbars in bitmap fonts (OpenGL GAL).
10 years ago
Maciej Suminski
c506d2b16c
Set OpenGL context before freeing video resources.
10 years ago
Maciej Suminski
59fe8df269
Split bitmap text drawing routine into smaller functions (GAL).
10 years ago