5 years agoFix regression on freeglut platforms.
Luis Oliveira [Sat, 29 Aug 2009 20:39:49]
Fix regression on freeglut platforms.

Ignore-this: 4aacad022ed099458c00b55cdab68a6a

Using freeglut, the MAIN-LOOP does exit at some point but
*GLUT-INITIALIZED-P* does not reflect that. So let's use
(GETP :INIT-STATE) again to check for such cases.

5 years agoUse the GLUT Framework on Darwin
Luis Oliveira [Sat, 25 Jul 2009 22:55:54]
Use the GLUT Framework on Darwin


Patch courtesy of Xristos <xristos@suspicious.org> and others.

5 years agoUse single-floats instead of short-floats for the %GL:FLOAT type.
Luis Oliveira [Mon, 22 Jun 2009 10:57:42]
Use single-floats instead of short-floats for the %GL:FLOAT type.

Ignore-this: 24a86fa8c156fe631a0d58fd7aed39c

5 years agoUse explicit single-float constants.
Luis Oliveira [Tue, 02 Jun 2009 13:03:49]
Use explicit single-float constants.

Ignore-this: 3f23f145012658b2cbfa3c6f9aeb4b5b

Use 1.0s0 so that cl-opengl compilation is not dependent on
*READ-DEFAULT-FLOAT-FORMAT* being bound to SINGLE-FLOAT.

Reported by Sumant Oemrawsingh.

6 years agoDon't use cffi-features.
Luis Oliveira [Fri, 26 Sep 2008 20:24:46]
Don't use cffi-features.

6 years agoglu additions
mcdermott.michaelj@gmail.com [Fri, 26 Sep 2008 20:02:38]
glu additions

Added support for the following glu functions:
gluQuadOrientation
gluQuadTexture
gluQuadNormals
Also defined the C structures needed for these functions.
Set all three of the above to be exported.
Added the glu Sphere function to the export list.

6 years agoPacking pixel storage modes
Andy Hefner [Fri, 26 Sep 2008 16:11:09]
Packing pixel storage modes

6 years agoSupport anisotropic texture filtering.
Mikael Lax [Sat, 06 Sep 2008 12:06:10]
Support anisotropic texture filtering.

6 years agoFix typo in glu/library.lisp
Luis Oliveira [Fri, 22 Aug 2008 20:44:10]
Fix typo in glu/library.lisp

6 years agoExport pixel-store, pixel-transfer, pixel-map
Andy Hefner [Sat, 05 Jul 2008 01:16:31]
Export pixel-store, pixel-transfer, pixel-map

6 years agoImplement game-mode in glut:window
Luis Oliveira [Sun, 06 Jul 2008 20:59:27]
Implement game-mode in glut:window


Patch courtesy of Dan Torop.

6 years agoA few minor patches
Luis Oliveira [Sun, 06 Jul 2008 20:51:21]
A few minor patches


- in gl:tex-parameter's :texture-border-color use "elt" rather than
"aref", to be consistent with other calls in the file
- in gl:fog, implement :fog-color
- change names of some gluPerspective parameters to match their standard
names

Patch courtesy of Dan Torop.

6 years agoFix bitrot in {push,pop}{,-client}-attrib and implement with-pushed-* macros
Luis Oliveira [Sun, 06 Jul 2008 20:37:38]
Fix bitrot in {push,pop}{,-client}-attrib and implement with-pushed-* macros

6 years agoFix WITH-PUSHED-MATRIX to handle multiple return values properly.
Luis Oliveira [Sun, 06 Jul 2008 20:36:29]
Fix WITH-PUSHED-MATRIX to handle multiple return values properly.

6 years agoMinor tweaks to Charlie's patch.
Luis Oliveira [Sun, 06 Jul 2008 19:49:08]
Minor tweaks to Charlie's patch.

6 years agoGet rid of *argcp* and *argv*
Luis Oliveira [Sun, 06 Jul 2008 19:47:07]
Get rid of *argcp* and *argv*


Checked FreeGLUT's source. No need to be paranoid there.

7 years agoInt64EXT type handling
charliemac+cl-opengl@gmail.com [Sun, 04 May 2008 22:09:41]
Int64EXT type handling

Initial handling for type Int64EXT from the gl spec files. If this is the correct path, :int64-ext and
:uint64-ext will need to be handled in gl/types.lisp

7 years agosave-lisp-and-die fixes
charliemac+cl-opengl@gmail.com [Sun, 04 May 2008 03:05:45]
save-lisp-and-die fixes

- Add function (glut::ensure-init) which is only used when saving a core. It ensures *argcp* and *argv* are
(cffi:null-pointer) in the core
- Make (glut:init) run initialization of base-window class rather than on load. Without this users of this
library would need to include a manual call to (glut:init) before running their own toplevel function.


7 years agoOpenGL spec update
charliemac+cl-opengl@gmail.com [Sun, 04 May 2008 03:03:20]
OpenGL spec update

6 years agoFix typo: libGL => libGL.so
Luis Oliveira [Thu, 05 Jun 2008 21:57:35]
Fix typo: libGL => libGL.so

6 years agoDisable vb-array in the examples.
Luis Oliveira [Thu, 05 Jun 2008 21:57:04]
Disable vb-array in the examples.

6 years agocheck-error fix, :no-error versus :zero
ahefner@gmail.com [Thu, 29 May 2008 14:33:42]
check-error fix, :no-error versus :zero

Remove :no-error enum, which clashes with :zero, fixing check-error.

7 years agoBetter handling of mouse buttons.
Luis Oliveira [Fri, 07 Mar 2008 21:19:12]
Better handling of mouse buttons.


Initial patches by Johann Korndoerfer and Charlie McMackin.

7 years agoImplement gluBuild2DMipmaps
Luis Oliveira [Fri, 07 Mar 2008 21:04:14]
Implement gluBuild2DMipmaps


Patch courtesy of Johann Korndoerfer.

7 years agoWork around floating-point errors in foreign code (again)
Luis Oliveira [Fri, 07 Mar 2008 20:40:13]
Work around floating-point errors in foreign code (again)

7 years agoMinor fix to examples/misc/molview.lisp
Luis Oliveira [Wed, 19 Dec 2007 12:54:06]
Minor fix to examples/misc/molview.lisp

7 years agoAdd molview.lisp to examples, courtesy of Doug Hoyte
Luis Oliveira [Wed, 19 Dec 2007 12:43:11]
Add molview.lisp to examples, courtesy of Doug Hoyte


- See <http://article.gmane.org/gmane.lisp.cl-opengl.devel/116>
- TODO: integrate with the cl-glut-examples system.

7 years agoSpeed up with-opengl-array for common array element types
Bart Botta [Sun, 07 Oct 2007 04:12:30]
Speed up with-opengl-array for common array element types


- Pull type checks outside the copy loop in with-opengl-array for some
common element types, so cffi can optimize the conversions, array access,
etc.
Speeds up tex-image-2d of a 1024x1024 RGBA unsigned byte texture ~100x
(from ~23sec w/~3.5GB consed, to ~0.25sec w/0 consed) on SBCL 1.0.2

Handles all the types currently returned by symbolic-type->real-type,
so should be good enough for tex-image-*. May need more types if
with-opengl-array is used elsewhere, but falls through to the old
code in that case, so should still work.

7 years agoImplement tex-gen. Fix two typos.
Mikael Lax [Tue, 25 Sep 2007 13:30:55]
Implement tex-gen. Fix two typos.

7 years agoImplement some shader/program queries. Clear two FIXMEs.
Mikael Lax [Wed, 12 Sep 2007 14:40:20]
Implement some shader/program queries. Clear two FIXMEs.

7 years agoCompressed textures and draw/read-pixels
Mikael Lax [Thu, 10 May 2007 11:50:14]
Compressed textures and draw/read-pixels

8 years agoglut package: fix spelling of solid-icosahedron
Luis Oliveira [Wed, 02 May 2007 18:46:21]
glut package: fix spelling of solid-icosahedron

8 years agoglut/interface.lisp: fix bug re the ascii-to-char type
Luis Oliveira [Wed, 02 May 2007 18:23:07]
glut/interface.lisp: fix bug re the ascii-to-char type

8 years agosbcl/x86-64: disable floating point traps
Luis Oliveira [Tue, 03 Apr 2007 22:21:55]
sbcl/x86-64: disable floating point traps

8 years agoFix the ensure-float type to work with doubles
Luis Oliveira [Fri, 23 Mar 2007 04:52:20]
Fix the ensure-float type to work with doubles


Bug reported by alastair37.

8 years agowith-foreign-matrix: use %gl:float instead of :float
Luis Oliveira [Fri, 23 Mar 2007 04:06:09]
with-foreign-matrix: use %gl:float instead of :float

8 years agoPreliminary support for vertex arrays and VBOs courtesy of Thomas Weidner.
Luis Oliveira [Wed, 14 Mar 2007 22:11:52]
Preliminary support for vertex arrays and VBOs courtesy of Thomas Weidner.

8 years agoRemove useless cl-glut-examples-system package
Luis Oliveira [Sun, 11 Mar 2007 01:14:01]
Remove useless cl-glut-examples-system package

8 years agoSmall change to generate-gl-function
Luis Oliveira [Sun, 11 Mar 2007 00:29:41]
Small change to generate-gl-function


- test with pointerp and null-pointer-p

8 years agoFix name mangling
Luis Oliveira [Fri, 09 Mar 2007 07:04:43]
Fix name mangling


Patch courtesy of Bart Botta.

- fixes lispification of a bunch of the new function names.
- more type info for array of pointer args (:pointer (:pointer type))
instead of (:pointer :pointer).

8 years agoMore simplification.
Luis Oliveira [Wed, 07 Mar 2007 21:40:20]
More simplification.


- Use definline and import-export throughout the rest of the bindings.

8 years agoFix some function names, simplify lispifications
Luis Oliveira [Wed, 07 Mar 2007 19:12:42]
Fix some function names, simplify lispifications


- Fixed regex in generate-funcs.lisp and regenerated funcs.lisp.
- New macros import-export and definline.
- Used them in opengl.lisp.

8 years agoFix type names in gl/util.lisp
Luis Oliveira [Wed, 07 Mar 2007 01:12:42]
Fix type names in gl/util.lisp

8 years agoNew DEFGLEXTFUN and other minor changes
Luis Oliveira [Wed, 07 Mar 2007 01:01:14]
New DEFGLEXTFUN and other minor changes


- New DEFGLEXTFUN macro courtesy of Thomas Weidner.
- GLUT: set %gl:*gl-get-proc-address* to glut:get-proc-address.

8 years agoChange :color-buffer-bit to :color-buffer, etc, in the examples
Luis Oliveira [Tue, 06 Mar 2007 04:34:08]
Change :color-buffer-bit to :color-buffer, etc, in the examples

8 years agoFix typo in gl/opengl.lisp
Luis Oliveira [Tue, 06 Mar 2007 04:08:04]
Fix typo in gl/opengl.lisp

8 years agoAdd missing gl/bindings.lisp
Luis Oliveira [Tue, 06 Mar 2007 03:43:16]
Add missing gl/bindings.lisp

8 years agoFix glu, glut and gl/opengl.lisp with new names
Luis Oliveira [Tue, 06 Mar 2007 03:37:27]
Fix glu, glut and gl/opengl.lisp with new names

8 years agoMega patch from Bart Botta
Luis Oliveira [Tue, 06 Mar 2007 02:45:46]
Mega patch from Bart Botta


- Merged Bart Botta's stuff for generating gl/funcs.lisp from the .spec files.
Also adds new cl-opengl-bindings package with low-level functions.
Fixed some parsing bugs.
- Updated for OpenGL 2.1. (enums, too)

8 years agoGL enum changes
Luis Oliveira [Mon, 05 Mar 2007 15:36:51]
GL enum changes


- Updated .spec files for OpenGL 2.1.
- Two changes to generate-enums.lisp:
* print the symbols lower-cased;
* generates some aliases for symbols ending in -bits and -bit.
e.g.: :color-buffer-bit and :color-buffer.
- Regenerated gl/constants.lisp.

Next ->