Commit graph

1193 commits

Author SHA1 Message Date
Benoît Minisini
5b3d4132d2 [EXAMPLES]
* NEW: Another image in the Painting example.
* OPT: The old image was converted to JPEG.

git-svn-id: svn://localhost/gambas/trunk@2561 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:52:58 +00:00
Benoît Minisini
d01028cc99 [GB.DRAW]
* BUG: Fix the Brush.Matrix property management.


git-svn-id: svn://localhost/gambas/trunk@2560 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:33:46 +00:00
Fabien Bodard
767de86c25 [EXAMPLES]
Bug


git-svn-id: svn://localhost/gambas/trunk@2559 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:15:55 +00:00
Benoît Minisini
aaad5d823d [GB.QT4]
* NEW: Found a workaround to the non-antialiased clipping on X11 devices!


git-svn-id: svn://localhost/gambas/trunk@2558 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:13:23 +00:00
Laurent Carlier
50bb203598 [GB.OPENGL.GLSL]
* BUG: Remove Gl.GetShaders, it's an unexistant openGL function !

yes it's a mistake, MY mistake :-)


git-svn-id: svn://localhost/gambas/trunk@2557 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 16:00:42 +00:00
Fabien Bodard
36e6351a4c [EXAMPLES]
* NEW:  Painting example: Image and Image Pattern


git-svn-id: svn://localhost/gambas/trunk@2556 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:59:53 +00:00
Benoît Minisini
6b0fd51325 [EXAMPLES]
* NEW: Cosmetic changes again in the Painting example.

[GB.DRAW]
* NEW: Paint.RelLineTo() is implemented by using Paint.LineTo().

[GB.GTK]
* NEW: Remove the implementation of Paint.RelLineTo().

[GB.QT4]
* NEW: Remove the implementation of Paint.RelLineTo().


git-svn-id: svn://localhost/gambas/trunk@2555 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:23:44 +00:00
Benoît Minisini
77f8beef33 [EXAMPLES]
* NEW: Some little cosmetic changes in the Painting example.

git-svn-id: svn://localhost/gambas/trunk@2554 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:05:54 +00:00
Fabien Bodard
e0f1ea7dca [EXAMPLES]
* NEW:  Painting example: Fill Style Example


git-svn-id: svn://localhost/gambas/trunk@2553 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 15:00:26 +00:00
Fabien Bodard
e3127a80fe [EXAMPLES]
* NEW: Painting example: Gradient Example


git-svn-id: svn://localhost/gambas/trunk@2552 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 14:41:17 +00:00
Benoît Minisini
26e37e4a53 [EXAMPLES]
* NEW: Enhance the Painting example with a rotate and a scale sliders.

git-svn-id: svn://localhost/gambas/trunk@2551 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 14:04:25 +00:00
Fabien Bodard
1528d689fc [GB.DRAW]
* NEW: Paint.RelMoveTo and Paint.RelCurveTo have been added.


git-svn-id: svn://localhost/gambas/trunk@2550 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 13:40:13 +00:00
Laurent Carlier
5ebcb50a84 [GB.OPENGL.GLSL]
* BUG: Fix typos; GetAttachedShader() -> GetAttachedShaders(), and CreateShader signature is now "ShaderType" instead of "Type".


git-svn-id: svn://localhost/gambas/trunk@2549 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 13:33:30 +00:00
Benoît Minisini
4e47ae1785 [EXAMPLES]
* NEW: Painting example now uses a splitter.

[GB.GTK]
* BUG: Try to correctly initialize the splitter layout. Do not work yet!


git-svn-id: svn://localhost/gambas/trunk@2548 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 13:19:34 +00:00
Benoît Minisini
d036103823 [EXAMPLES]
* NEW: Add an example that shows how to use the new Paint class.


git-svn-id: svn://localhost/gambas/trunk@2547 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 12:12:09 +00:00
Fabien Bodard
e183563213 [GB.GTK]
* NEW: New function Paint.RelLineTo to draw line to positions
  relative to the current drawing position

[GB.QT4]
* NEW: New function Paint.RelLineTo to draw line to positions
  relative to the current drawing position



git-svn-id: svn://localhost/gambas/trunk@2546 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 11:09:25 +00:00
Benoît Minisini
8bd9372f83 [GB.GTK]
* BUG: Fix the Paint.LineWidth, Paint.Dash and Paint.DashOffset properties.
  Now the dash positions and the dash offset are in line width units.

[GB.QT4]
* BUG: Paint.Begin correctly initializes the default line join style.
* BUG: Draw.Begin now fails if the device is being painted somewhere else.


git-svn-id: svn://localhost/gambas/trunk@2545 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 02:15:00 +00:00
Benoît Minisini
be7b2620de [GB.GTK]
* BUG: Paint.Arc() has been fixed.

[GB.QT4]
* BUG: Paint.Begin() now starts with a solid black brush.


git-svn-id: svn://localhost/gambas/trunk@2544 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 00:12:09 +00:00
Benoît Minisini
79e76072d1 [WIKI CGI SCRIPT]
* NEW: Pages under "/comp" whose name begins with "~" are normal pages.

[GB.DRAW]
* NEW: Paint.TextExtents has been removed. Use Paint.PathExtents just after 
  having done a Paint.Text.
* BUG: Paint.RadialGradient now takes a center, a radius, and a focal 
  point, like in SVG standard.

[GB.GTK]
* BUG: Paint.RadialGradient() should have been correctly implemented.

[GB.QT4]
* NEW: Link with the QtSvg module.
* BUG: Paint.RadialGradient() has been correctly implemented.


git-svn-id: svn://localhost/gambas/trunk@2543 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 23:18:43 +00:00
Benoît Minisini
8e7661d2c6 [GB.DRAW]
* BUG: Paint.RichText() has been removed.

[GB.GTK]
* BUG: Paint.Arc() draws in the same direction as in gb.qt4.
* BUG: Paint.RichText() has been removed.
* BUG: PaintBrush.Matrix now behaves the same as in gb.qt4.

[GB.QT4]
* NEW: Paint.Text() has been implemented.
* BUG: Paint.Begin() now initializes the underlying pen the same way as in 
  gb.gtk.


git-svn-id: svn://localhost/gambas/trunk@2542 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 21:42:40 +00:00
Benoît Minisini
d752c36ade [GB.IMAGE]
* BUG: Fix the macro that splits a Gambas color into its components and 
  revert the alpha value.


git-svn-id: svn://localhost/gambas/trunk@2541 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 18:19:33 +00:00
Benoît Minisini
71af715f2a [GB.GTK]
* BUG: Fix the Draw.Text() and Draw.RichText() functions when the alignment 
  argument is used.
* NEW: Paint.Text() and Paint.RichText() were implemented.
* NEW: Paint.LinearGradient() and Paint.RadialGradient() were implemented.

[GB.QT4]
* BUG: Paint.ArcTo() should take angles in radian now.


git-svn-id: svn://localhost/gambas/trunk@2540 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 18:08:06 +00:00
Benoît Minisini
da664d19ff [GB.IMAGE]
* NEW: Image.Mask is new method that mask the colors of an image with 
  another color, and that enhance the alpha channel with the alpha channel 
  of that another color.


git-svn-id: svn://localhost/gambas/trunk@2539 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 11:56:43 +00:00
Benoît Minisini
ef53dddcfd [GB.DRAW]
* BUG: Fix a memory leak in Paint class transformation matrix management.

[GB.GTK]
* BUG: Paint.Image works correctly now.
* BUG: The PaintBrush matrix works the same way as in gb.qt4 now, i.e. it 
  is inverted compared with Cairo!


git-svn-id: svn://localhost/gambas/trunk@2538 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 02:26:30 +00:00
Benoît Minisini
e644006626 [WIKI CGI SCRIPT]
* BUG: Handle cyclic dependencies between components correctly.

[GB.DRAW]
* BUG: Handle brush origin by translating the brush transformation matrix.

[GB.GTK]
* NEW: Start implementing the Paint interface.
* NEW: DrawingArea.Painted is a new property. When set, the Paint interface 
  must be used inside the Draw event, instead of the old Draw interface.


git-svn-id: svn://localhost/gambas/trunk@2537 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 01:21:39 +00:00
Laurent Carlier
c7d04a158e [GB.OPENGL.QT]
* BUG: Correctly initialize gb.opengl component.



git-svn-id: svn://localhost/gambas/trunk@2536 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 00:51:25 +00:00
Laurent Carlier
491b6fbbf7 [GB.OPENGL.QT4]
* BUG: Correctly initialize gb.opengl component.


git-svn-id: svn://localhost/gambas/trunk@2535 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 00:48:52 +00:00
Laurent Carlier
eef5ede511 [GB.OPENGL]
* BUG: Fix external GL interface name (GB_OPENGL_1 instead of GB_OPENGL) preventing component to
  be loaded. 


git-svn-id: svn://localhost/gambas/trunk@2534 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-29 00:31:12 +00:00
Benoît Minisini
2ed6fa4f79 [GB.DRAW]
* BUG: Forgot to free PaintMatrix objects.


git-svn-id: svn://localhost/gambas/trunk@2533 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-28 12:37:49 +00:00
Benoît Minisini
7ebcf93a44 [DEVELOPMENT ENVIRONMENT]
* BUG: The modifying help button now works on the help root page.
* BUG: Sorting components does not enter an infinite loop anymore when 
  there are circular dependencies between components.


git-svn-id: svn://localhost/gambas/trunk@2532 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-28 02:54:32 +00:00
Benoît Minisini
ea6ce6b566 [GB.QT4]
* NEW: Forgot the two new source files.


git-svn-id: svn://localhost/gambas/trunk@2531 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-28 01:22:13 +00:00
Benoît Minisini
774baa91f6 [DEVELOPMENT ENVIRONMENT]
* NEW: Do not apply the new DrawingArea.Painted property.

[GB.DRAW]
* NEW: The new Paint interface is now completed. Only its text part is
  rudimentary at the moment.

[GB.QT4]
* NEW: The Paint interface has been implemented on the following classes:
  Picture, Image, DrawingArea.
* NEW: DrawingArea.Painted is a new property. When set, the Paint interface 
  must be used inside the Draw event, instead of the old Draw interface.


git-svn-id: svn://localhost/gambas/trunk@2530 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-28 01:19:27 +00:00
Laurent Carlier
cb17f588aa [CONFIGURATION]
* BUG: Add symlink support for ltmain.sh in build-dist script.


git-svn-id: svn://localhost/gambas/trunk@2529 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-28 00:46:07 +00:00
Laurent Carlier
438c6be3ef [GB.QT4.OPENGL]
* BUG: Remove OpenGL detection, as QtOpenGL implies that GL files and support are presents.


git-svn-id: svn://localhost/gambas/trunk@2528 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-28 00:30:46 +00:00
Laurent Carlier
bc0d1f80ee [GB.OPENGL]
* NEW: Add internal GL_COMPRESSED_TEXTURE_FORMATS support through Gl.Gets, also do some code cleanup.


git-svn-id: svn://localhost/gambas/trunk@2527 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-28 00:06:37 +00:00
Laurent Carlier
d950667703 [GB.OPENGL.GLSL]
* BUG: Fixed a typo (GLUNIFORM2FI->GLUNIFORM2IV)


git-svn-id: svn://localhost/gambas/trunk@2526 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-27 23:26:59 +00:00
Laurent Carlier
7109b1d436 [GB.QT.OPENGL]
* NEW: Remove dependency with glew library, as the component use now the GL_INTERFACE api.


git-svn-id: svn://localhost/gambas/trunk@2525 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-27 23:19:53 +00:00
Laurent Carlier
4918f83cdf [GB.QT4.OPENGL]
* NEW: Remove dependency with glew library, as the component use now the GL_INTERFACE api.


git-svn-id: svn://localhost/gambas/trunk@2524 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-27 23:13:08 +00:00
Laurent Carlier
8cfd420ed4 [GB.OPENGL]
* BUG: Add interface version in gb.gl.h.


git-svn-id: svn://localhost/gambas/trunk@2523 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-27 22:55:10 +00:00
Laurent Carlier
6c3d840326 [GB.OPENGL]
* NEW: Add a GL_INTERFACE, Init must be called when an openGL context is created
  to properly initialize gb.opengl component.

Some cleanup too, no more needs for testing glx and context creation inside gb.opengl
component, all init will be done through Init call.


git-svn-id: svn://localhost/gambas/trunk@2522 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-27 22:48:26 +00:00
Benoît Minisini
67a672c6d7 [CONFIGURATION]
* NEW: Do not compile gb.qt.kde anymore.

[GB.DRAW]
* NEW: Work continues on the new Paint interface.


git-svn-id: svn://localhost/gambas/trunk@2521 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-27 15:51:27 +00:00
Laurent Carlier
a797cf2bfc [GB.OPENGL.GLSL]
* NEW: Add Gl.Uniform{1,2,3,4}iv and Gl.Uniform{1,2,3,4}fv methods.


git-svn-id: svn://localhost/gambas/trunk@2520 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-27 00:51:15 +00:00
Laurent Carlier
9c40bbac3f [CONFIGURATION]
* BUG: Add --install glag to autoreconf, that fix creation of config files,
  also add build-dist script to create a lighter tar.bz2 archive of the
  repository.



git-svn-id: svn://localhost/gambas/trunk@2519 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-26 21:30:35 +00:00
Laurent Carlier
a642cb18c5 [CONFIGURATION]
* BUG:Remove more m4 macros as they are refreshed by aclocal.


git-svn-id: svn://localhost/gambas/trunk@2518 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-26 19:08:10 +00:00
Benoît Minisini
ccfd94594f [GB.OPENGL.GLSL]
* BUG: Remove a Makefile.in file that must not be in the repository.

[GB.QT4]
* BUG: The ComboBox Click event now is raised correctly when setting the 
  Text property. 


git-svn-id: svn://localhost/gambas/trunk@2516 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 16:28:28 +00:00
Benoît Minisini
efb2659278 [CONFIGURATION]
* BUG: Remove the libtoolize "--install" flag in the reconf script, as it 
  breaks the "main" source sub-directory. We must add an option to this
  script to handle that flag correctly.

[DEVELOPMENT ENVIRONMENT]
* BUG: Correctly display errors raised at program startup.

[EXAMPLES]
* BUG: The Notepad example has been fixed.

[GB.DRAW]
* NEW: Work continue on the Paint class.


git-svn-id: svn://localhost/gambas/trunk@2514 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 15:09:08 +00:00
Laurent Carlier
a05c17d9cc [GB.SDL]
* BUG: Remove running SDL events in a separate thread, as it give instability.


git-svn-id: svn://localhost/gambas/trunk@2512 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 12:36:05 +00:00
Laurent Carlier
4dbca3f22d [GB.OPENGL.GLSL]
* NEW: Add missing method Gl.GetProgramInfoLog()


git-svn-id: svn://localhost/gambas/trunk@2511 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 12:24:01 +00:00
Laurent Carlier
fe929cce9e [GB.OPENGL]
* NEW: Add dependency to glew library.
* NEW: New method Gl.GetString() for Gl.GL_VENDOR, ....

[GB.OPENGL.GLSL]
* NEW: New component to use shaders.

- Some code cleanup, add add more constants support for Gl.GetXXXX
- Still missing some features to plainly use shaders, not fully tested
  but it's building fine :-p 


git-svn-id: svn://localhost/gambas/trunk@2510 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 11:34:17 +00:00
Laurent Carlier
0f259a6c28 [GB.QT.OPENGL]
* NEW: Add dependency to libglew, needed for gb.opengl component.



git-svn-id: svn://localhost/gambas/trunk@2509 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-24 10:03:16 +00:00