Commit Graph

214 Commits

Author SHA1 Message Date
codeanticode
7cf5d676a2 add isPowerOfTwo check 2015-05-30 17:58:19 -04:00
codeanticode
474dddf704 get current pixel scale from GLWindow 2015-05-17 09:14:22 -04:00
codeanticode
2e8187d9c4 present and retina tweaks 2015-05-16 10:20:45 -04:00
Ben Fry
0cf0cc09fc removing more AWT 2015-04-30 21:40:13 -04:00
codeanticode
06b1cb265a return correct default draw buffer 2015-03-03 17:44:59 -05:00
codeanticode
f4e0f23466 make jogl work as a subclass of PGraphicsOpenGL 2015-02-20 16:43:29 -05:00
codeanticode
0b941e1612 invert Y 2015-01-29 01:30:07 -05:00
codeanticode
90920df882 use allocateIntBuffer method, fixes all allocate buffer methods 2015-01-29 01:26:55 -05:00
codeanticode
f26c5cbb57 store label pixels 2015-01-29 01:22:41 -05:00
codeanticode
d22eee76fd draw label texture 2015-01-29 00:49:06 -05:00
codeanticode
eaac9b14a2 draw exit label in PGL 2015-01-28 18:48:40 -05:00
codeanticode
ca5aa10d71 use WINDOW_BGCOLOR 2015-01-28 18:15:36 -05:00
codeanticode
af746c00d0 another way to implement present mode w/out AWT 2015-01-28 17:57:31 -05:00
codeanticode
4922e90dd0 trying to get smooth change to work 2015-01-23 17:08:00 -05:00
codeanticode
32240d2901 fixes to lwjgl renderer 2015-01-12 14:38:25 -05:00
codeanticode
d26c3f8a03 handle smooth changes in surface 2014-12-16 18:51:43 -05:00
codeanticode
9781a18938 disable SAVE_SURFACE_TO_PIXELS_HACK, and a few other init tweaks 2014-12-15 15:04:45 -05:00
Ben Fry
3edd745d20 clean up some font handling 2014-11-17 18:33:59 -05:00
codeanticode
e85237a626 cleaning up PGL 2014-11-15 23:04:32 -07:00
codeanticode
9a44cb85e3 implemented a few more PSurface methods 2014-11-15 17:15:03 -07:00
codeanticode
2d5a298288 getting opengl to work with the new renderer architecture 2014-11-15 13:14:26 -07:00
Ben Fry
69b9e26005 Friday morning in Denver, making more of a mess 2014-11-14 13:18:15 -07:00
codeanticode
d7cef16d09 don't call enable(target)/disable(target) 2014-08-07 11:26:27 -04:00
codeanticode
ec95cf257c TODO note 2014-03-12 18:56:33 -04:00
codeanticode
b409759e9c handle framebuffer set to 0 2014-03-12 18:24:42 -04:00
codeanticode
a0e117981d fixes #2345, and also a bug in the coordinates passed to drawTexture()
in the Texture class.
2014-03-03 15:45:21 -05:00
codeanticode
aa2fe6ccf1 make sure to recreate texture rendering VBO when context changes, fix
#2322
2014-01-23 13:09:31 -05:00
codeanticode
c27d1bf72c added JOGL.getGL() utility function, restore original USE_JOGL_FBOLAYER
value (true for OSX)
2014-01-21 15:36:12 -05:00
codeanticode
a0731dd3d7 testing/debugging, context sharing 2014-01-21 01:02:08 -05:00
codeanticode
5d713058b8 texture shaders in PGL are initialized only in the primary interface. 2014-01-20 17:10:18 -05:00
codeanticode
9110cebd0d more refactoring/testing with non-static fields in PGL 2014-01-20 16:48:19 -05:00
codeanticode
f2c730b58f continues the removal of static references 2014-01-20 12:14:35 -05:00
codeanticode
c18ddffdc0 getCanvas() in PGL so libraries can access the native surface 2013-11-20 18:57:18 -05:00
codeanticode
f0cec66aee removed some superfluous references to PGL 2013-11-08 15:23:44 -05:00
codeanticode
e1f4b82d3c minor correction in the name of the texture sampler 2013-10-26 22:06:25 -04:00
codeanticode
cd4a5ae453 constrain depth and stencil bits to requested values, use capabilities
to obtain current values
2013-10-24 17:59:27 -04:00
codeanticode
68f44f14bc removing debug messages 2013-10-24 17:13:11 -04:00
codeanticode
c60ba7e6d7 better handling of glsl code in different versions 2013-10-24 12:51:38 -04:00
codeanticode
1ce9c9d360 assuming npot texture support, auto mipmaps generation, etc, are part of
core gl profile when using gl3
2013-10-24 12:17:50 -04:00
codeanticode
217b63b5f6 moved load shader functions to PGL 2013-10-20 20:04:34 -04:00
codeanticode
11fd3c0a98 getting GL3 profile to work properly 2013-10-20 19:33:39 -04:00
codeanticode
1d7bd062b5 don't use vertex arrays anymore 2013-10-20 19:15:04 -04:00
codeanticode
a56c5effef added GLSL 150 versions of the texture drawing shaders 2013-10-20 18:11:49 -04:00
Benjamin Maus
ec89911766 Added STENCIL_TEST -> GL.STENCIL_TEST field to PGL/PJOGL 2013-10-06 10:52:00 +02:00
Benjamin Maus
047d771fb7 Added reinitSurface() method to PGL/PJOGL backend. Does not destroy the
active canvas and keeps the current capabilities, but triggers a reset of
the allocated FBOs.
2013-10-05 18:35:55 +02:00
codeanticode
312fb99508 sets the resized native font in PGraphicsOpenGL, fix #2109 2013-10-03 17:03:14 -04:00
codeanticode
2f8af18ba6 some changes for android compatibility 2013-09-19 11:35:03 -04:00
codeanticode
d6ce4aa7b9 made canDraw() abstract in PGL 2013-09-19 10:05:13 -04:00
codeanticode
ea82da68de added registerListeners() method to PGL 2013-09-13 19:04:55 -04:00
codeanticode
51947ae116 done with the PGL refactoring 2013-09-13 15:02:36 -04:00