Daniel Ferreira
720a56dcf3
opal/context: allow the client to supply a graphics port
...
In Quartz, the "graphics port" bound to an NSGraphicsContext (subclassed
by OpalContext) is a CGContext. We currently initialize one in
OpalSurface if it does not exist, however we do not allow the client to
initialize a graphics context with a custom graphics port, which should
be allowed. This commit enables this feature.
2017-07-25 11:59:52 +10:00
Fred Kiefer
c5ef196157
* Headers/opal/OpalSurface.h
...
* Source/opal/OpalSurface.m: Make the -device method public.
* Headers/opal/OpalContext.h: Remove method definitions.
* Source/opal/OpalContext.m: Limit the accepted image types.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37172 72102866-910b-0410-8b05-ffd578937521
2013-09-29 20:11:38 +00:00
Fred Kiefer
1c35214821
* Headers/opal/OpalSurface.h
...
* Source/opal/OpalSurface.m: Remove compiler warnings.
* Source/opal/OpalContext.m: Move -flushGraphics method to here.
* Source/opal/OpalGState.m: Simplify -DPSimage. Evaluate CGCTX
only once per method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37170 72102866-910b-0410-8b05-ffd578937521
2013-09-29 17:10:26 +00:00
Ivan Vučica
595cc19471
Fixes for doublebuffering. (Nearly?) correct implementation of -compositeGState: and -drawGState:. Temporarily fixed image drawing issues by lying about drawing to screen.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37142 72102866-910b-0410-8b05-ffd578937521
2013-09-23 18:04:06 +00:00
Ivan Vučica
2a8c5f64b3
opal: Correct DPSgsave/restore. Disabled doublebuffering. Work on fixing doublebuffering. Implemented various DPS methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36927 72102866-910b-0410-8b05-ffd578937521
2013-07-25 14:49:44 +00:00
Ivan Vučica
fbe9ad1032
opal: Implementation of a lot of drawing and matrix methods. Work on getting backing store support to work.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36893 72102866-910b-0410-8b05-ffd578937521
2013-07-15 15:24:04 +00:00
Ivan Vučica
0a75b89dd3
Drawing a red rectangle with Opal.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36873 72102866-910b-0410-8b05-ffd578937521
2013-07-11 20:44:32 +00:00
Ivan Vučica
c1cd79d4af
Minimal code for dummy graphics backend now implemented for Opal backend.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36757 72102866-910b-0410-8b05-ffd578937521
2013-06-25 17:13:37 +00:00