Commit graph

65 commits

Author SHA1 Message Date
Tomek
3ec78089b8 [GB.OPENGL]
* BUG: In GLeval.c changed GB_SINGLE to GB_FLOAT to make Gl2Map work.


git-svn-id: svn://localhost/gambas/trunk@3978 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-06 16:19:39 +00:00
Benoît Minisini
8c7b7f06a7 [GB.OPENGL.GLU]
* BUG: Fix the implementation of GluNurb and GluQuadric.
* NEW: Deleting a nurb or a quadric make the Gambas object invalid now.


git-svn-id: svn://localhost/gambas/trunk@3977 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-06 02:47:29 +00:00
Tomek
7f92ac5969 [GB.OPENGL.GLU]
* BUG: Quadrics and Nurbs finally work properly using proper classes.


git-svn-id: svn://localhost/gambas/trunk@3976 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-05 22:09:28 +00:00
Benoît Minisini
d8b516e8b6 [GB.OPENGL.GLU]
* BUG: Fix some typo mistake and add the GluQuadricDesc class description
  to the component class description list.


git-svn-id: svn://localhost/gambas/trunk@3975 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-05 18:00:56 +00:00
Benoît Minisini
0e9b6dc007 [GB.OPENGL.GLU]
* BUG: Add missing ';' at the end of class names in method signatures.


git-svn-id: svn://localhost/gambas/trunk@3974 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-05 16:58:11 +00:00
Tomek
29a44222e7 [GB.OPENGL]
* BUG: Error in GLU.h file Fixed.


git-svn-id: svn://localhost/gambas/trunk@3970 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-05 08:27:58 +00:00
Tomek
927bad68f3 [GB.OPENGL]
* BUG: Changes in Quadrics definition code from pointer to object - needs
	some cleanup. Nurbs will follow. 


git-svn-id: svn://localhost/gambas/trunk@3969 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-05 08:25:55 +00:00
Tomek
a27dbcc5aa [GB.OPENGL]
* NEW: Multitexture mapping constants and gl.ActiveTexture function.


git-svn-id: svn://localhost/gambas/trunk@3966 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-03 14:52:44 +00:00
Laurent Carlier
5edf50d87b [GB.OPENGL]
* NEW: Gl.CheckExtensions() to check the openGL driver extensions/ability support.

' Check if the driver support OpenGL 1.4 and GL_ARB_point_sprite extension
PRINT Gl.CheckExtensions("GL_VERSION_1_4  GL_ARB_point_sprite")

--> TRUE or FALSE



git-svn-id: svn://localhost/gambas/trunk@3965 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-03 07:20:37 +00:00
Tomek
44c7f36adf [GL.OPENGL]
* NEW: glTexGen and glMultiTexcoord functions


git-svn-id: svn://localhost/gambas/trunk@3962 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-01 16:21:08 +00:00
Tomek
c27b8eb64a [GB.OPENGL]
* BUG: Missing glu and glsl files


git-svn-id: svn://localhost/gambas/trunk@3961 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-01 15:43:09 +00:00
Tomek
ccc22a8f5f [GB.OPENGL]
* NEW: Nurbs functions
* NEW: Basic quadratic shapes (sphere, cylinder, cone, disk)


git-svn-id: svn://localhost/gambas/trunk@3960 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-01 14:43:01 +00:00
Tomek
2296bb88d5 [GB.OPENGL]
* NEW: GLSL attribute variable definition and setting functions. 


git-svn-id: svn://localhost/gambas/trunk@3959 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-01 14:32:57 +00:00
Benoît Minisini
492779760f [GB.OPENGL]
* BUG: Correctly specify the number of color components when using an Image
  in an OpenGL function: glTexImage1D, glTexImage2D, gluBuild2DMipmaps...


git-svn-id: svn://localhost/gambas/trunk@3958 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-01 08:44:48 +00:00
Laurent Carlier
c44293e207 [GB.SDL]
* NEW: Add Gl.EvalCoord2fv() evaluator method.


git-svn-id: svn://localhost/gambas/trunk@3928 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-05 12:40:58 +00:00
Laurent Carlier
7c27920e3f [GB.OPENGL]
* NEW: Add support for GL evaluators, some associated Gets are missing. (Tomek)



git-svn-id: svn://localhost/gambas/trunk@3925 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-04 20:43:10 +00:00
Laurent Carlier
fc6e9b74b5 [GB.OPENGL]
* NEW: Add evaluator file (Tomek)



git-svn-id: svn://localhost/gambas/trunk@3924 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-04 20:33:12 +00:00
Laurent Carlier
e511b62f95 [GB.OPENGL]
* NEW:  Add evaluator header file (Tomek)



git-svn-id: svn://localhost/gambas/trunk@3923 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-04 20:13:54 +00:00
Laurent Carlier
3e1279a121 [GB.OPENGL]
* NEW: Add evaluators constants (Tomek)


git-svn-id: svn://localhost/gambas/trunk@3922 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-07-04 20:05:42 +00:00
Laurent Carlier
cfe20cf459 [GB.OPENGL.GLSL]
* BUG: Restore prefix GL in glew header inclusion for debian based packages.



git-svn-id: svn://localhost/gambas/trunk@3895 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-21 10:17:34 +00:00
Laurent Carlier
541407d8a6 [GB.OPENGL]
* BUG: Restore prefix GL in glew header inclusion for debian based packages.


git-svn-id: svn://localhost/gambas/trunk@3894 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-21 09:44:35 +00:00
Laurent Carlier
ced3c8066d fiw a typo: <glew.h> instead of <GL/glew.h>
git-svn-id: svn://localhost/gambas/trunk@3891 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-18 14:02:06 +00:00
Laurent Carlier
f3146d84fd [GB.OPENGL]
* BUG: Use pkg-config to detect needed libraries, should fix building on OSX.


git-svn-id: svn://localhost/gambas/trunk@3890 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-18 13:59:52 +00:00
Laurent Carlier
c2b8568ef3 [GB.OPENGL]
* BUG: No need to search for glu.h file.


git-svn-id: svn://localhost/gambas/trunk@3889 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-15 20:55:01 +00:00
Benoît Minisini
2fbf67cb29 [CONFIGURATION]
* NEW: Update FSF address in every source file.


git-svn-id: svn://localhost/gambas/trunk@3870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-03 00:51:09 +00:00
Laurent Carlier
50cc5e432c [GB.OPENGL]
* NEW: Remove Glu methods from the component. Should help on systems where glu isn't available.
  also safe a bit of memory when glu isn't mandatory.

[GB.OPENGL.GLU]
* NEW: New component including Glu functions from the gb.opengl component.


git-svn-id: svn://localhost/gambas/trunk@3714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-04-01 09:15:55 +00:00
Laurent Carlier
aaf1f225d0 [GB.OPENGL]
* BUG: Fix glu.pickmatrix() method, with need an integer array instead of a simple integer.


git-svn-id: svn://localhost/gambas/trunk@3386 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-20 20:29:44 +00:00
Benoît Minisini
3054690743 [CONFIGURATION]
* NEW: Print a summary of warning messages after each component 
  compilation.

[INTERPRETER]
* BUG: StrPtr() with a length argument now works correctly.
* NEW: Support for callbacks: when converting a function to a Pointer, an 
  internal closure is created with the libffi library. The pointer then can 
  be sent to any extern function as function pointer argument.
* BUG: Opening memory stream should work in all cases now.


git-svn-id: svn://localhost/gambas/trunk@3038 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-07-14 01:50:18 +00:00
Laurent Carlier
b065f55995 [GB.OPENGL]
* BUG: Add more OpenGL constants.


git-svn-id: svn://localhost/gambas/trunk@2997 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-06-09 14:06:09 +00:00
Laurent Carlier
c9750f23a5 [GB.OPENGL]
* BUG: Fix building when FLTK toolkit is installed.


git-svn-id: svn://localhost/gambas/trunk@2808 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-03-18 16:52:56 +00:00
Laurent Carlier
8c33a256c3 [GB.OPENGL]
* BUG: Enable Glu.PickMatrix() method


git-svn-id: svn://localhost/gambas/trunk@2670 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-02-07 23:16:34 +00:00
Benoît Minisini
a1635a40a5 [GB.DB.MYSQL]
* NEW: Search include and library files in /opt/local for Mac OS X.

[GB.OPENGL]
* NEW: Search include and library files in /opt/local for Mac OS X. But it 
  does not compile yet.

[GB.QT4]
* NEW: Make the component compile on Mac OS X with the qt4-mac port. The
  Embedder and TrayIcon classes now do nothing.
* BUG: The compilation now uses the C++ flags, not the C flags anymore!



git-svn-id: svn://localhost/gambas/trunk@2622 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-21 16:46:21 +00:00
Benoît Minisini
61997e8921 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the new mascot to draw project directory icon.

[EXAMPLES]
* NEW: Some little changes in the Painting example.

[INTERPRETER]
* NEW: The component GB_INIT function now returns an integer that gives an 
  unloading order. The higher the returned number, the later the component 
  is unloaded. If GB_INIT returns -1, then the component shared library 
  will not be unloaded.
* NEW: Update GB_INIT functions in all components.

[GB.DRAW]
* BUG: Paint.Image() optional translation arguments are not inverted 
  anymore.

[GB.QT4]
* BUG: If Paint.LineWidth is zero, then nothing is stroked, as in gb.gtk.
* BUG: TabStrip is now correctly arranged when it has only one tab.


git-svn-id: svn://localhost/gambas/trunk@2605 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-10 13:40:48 +00:00
Laurent Carlier
61a84a8483 [GB.OPENGL.GLSL]
* NEW: Add support for Gl.GetUniformLocation and Gl.UniformMatrix**** methods


git-svn-id: svn://localhost/gambas/trunk@2598 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-01-03 23:42:48 +00:00
Laurent Carlier
41a6cb07b4 [GB.OPENGL]
* NEW: Remove extra parameter "size" for Gl.GetIntegerv, Gl.GetBooleanv, Gl.GetFloatv. All parameters size
  are managed internaly (at least for OpenGL 2.1). It's preferable to get an error message instead of failling silently.


git-svn-id: svn://localhost/gambas/trunk@2568 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-30 21:08:31 +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
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
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
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
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
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
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
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
88163aa9de [GB.OPENGL]
* BUG: Fix gluPickMatrix typo.


git-svn-id: svn://localhost/gambas/trunk@2497 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-12-15 23:37:06 +00:00
Laurent Carlier
16a9dd7929 [GB.OPENGL]
* BUG: Fix returned Integer[][] with Gl.RenderModel() call.


git-svn-id: svn://localhost/gambas/trunk@2270 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-25 16:49:33 +00:00
Benoît Minisini
1b213d482d [GB.OPENGL]
* NEW: Use "Integer[][]" instead of "Object[]". That seems to work. :-)


git-svn-id: svn://localhost/gambas/trunk@2269 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-08-24 23:31:10 +00:00