asarium
f25d98cebd
Add AA bitmap support for standard gr.drawImage
...
Since that function already has full support for UV scaling it makes
sense to unify the behavior in one function instead of having a separate
monochrome function that does weird things.
Also deprecates that function since all its use cases are now covered by
drawImage.
2020-12-21 12:48:58 +01:00
asarium
9da5cc17a3
Add type safe handle for graphics buffers
...
This converts the previous plain-int type for a buffer handle to an
instance of our ID class which provides type safety.
2020-10-25 12:16:05 +01:00
asarium
e795327a3f
Add simple NanoVG draw buffer for better performance
...
This improves the rendering performance of the target hotkey brackets a
bit which caused a significant slowdown previously.
2018-01-20 18:32:39 +01:00
asarium
999eb8a3f9
Add documentation to new functions
2017-08-27 17:32:58 +02:00
asarium
03aa75c39a
Move immediate mode rendering into generic graphics code
...
Since this code is the same for all possible graphics backends it can be
moved outside the OpenGL implementation to simplify that code.
2017-08-27 17:14:02 +02:00
asarium
a6411cc1d3
Add documentation for drawing functions
2017-08-23 14:42:54 +02:00
asarium
6dbd7c34e6
Clean up a few remaining functions
2017-08-23 14:42:54 +02:00
asarium
1bca5f128d
Convert curve and circle functions
2017-08-23 14:42:54 +02:00
asarium
6bbb6be880
Move line drawing functions to generic implementation
2017-08-23 14:42:54 +02:00
asarium
c1c2b72ef0
Move gr_string out of OpenGL code
2017-08-23 14:42:54 +02:00
asarium
1aa85d236e
Begin moving 2D functions to a generic implementation
...
Thanks to the new material system, it's now possible to easily make the
2D functions independent of the underlying graphics API which allows to
reduce the size of the gr_screen 2D API.
2017-08-23 14:42:54 +02:00