Skip to content

test opengl examples on linux #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/opengl-demo-ffi-lsp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# OpenGL and GLUT demo - opengl-demo-ffi.lsp
# Using extended import and callback API based on libffi
# tested on Win32 and OS X 32/64-bit (Intel) minimum version newLISP 10.3.10
# tested on Linux 32/64-bit (AMD) minimum version newLISP 10.7.0

# verson 2.1 December 2011 - remade with extended FFI for 32 and 64-bit
# verson 2.2 February 2012 - check if newLISP compiled for extended FFI
# version 2.1 December 2011 - remade with extended FFI for 32 and 64-bit
# version 2.2 February 2012 - check if newLISP compiled for extended FFI
# this version works on both, 32-bit and 64-bit newLISP
# on a Mac OSX standard install everything neede for 32-bit or 64-bit
# is included. On Windows XP and Windows 7, glut32.dll must be added.
Expand Down Expand Up @@ -52,7 +53,7 @@
(begin
(set 'GL_LIB "opengl32.dll") ; works dfor both 32 and 64 bit
(set 'GLUT_LIB (if is-64-bit "glut64.dll" "glut32.dll")))
(= ostype "Linux") ;; not tested
(= ostype "Linux")
(begin
(set 'GL_LIB "libGL.so")
(set 'GLUT_LIB "libglut.so"))
Expand Down
9 changes: 5 additions & 4 deletions examples/opengl-demo-ffi.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# OpenGL and GLUT demo - opengl-demo-ffi.lsp
# Using extended import and callback API based on libffi
# tested on Windows and OS X 32/64-bit (Intel) minimum version newLISP 10.3.10
# tested on Linux 32/64-bit (AMD) minimum version newLISP 10.7.0

# verson 2.1 December 2011 - remade with extended FFI for 32 and 64-bit
# verson 2.2 February 2012 - check if newLISP compiled for extended FFI
# verson 2.3 April 2015 - changed ostype to Windows from Win32
# version 2.1 December 2011 - remade with extended FFI for 32 and 64-bit
# version 2.2 February 2012 - check if newLISP compiled for extended FFI
# version 2.3 April 2015 - changed ostype to Windows from Win32
# this version works on both, 32-bit and 64-bit newLISP
# on a Mac OSX standard install everything neede for 32-bit or 64-bit
# is included. On Windows XP and Windows 7, glut32.dll must be added.
Expand Down Expand Up @@ -54,7 +55,7 @@
(begin
(set 'GL_LIB "opengl32.dll") ; works dfor both 32 and 64 bit
(set 'GLUT_LIB (if is-64-bit "glut64.dll" "glut32.dll")))
(= ostype "Linux") ;; not tested
(= ostype "Linux")
(begin
(set 'GL_LIB "libGL.so")
(set 'GLUT_LIB "libglut.so"))
Expand Down
5 changes: 3 additions & 2 deletions examples/opengl-demo.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# OpenGL and GLUT demo - opengl-demo.lsp
# using simple import and callback API
# tested on Windows and OS X (Intel) 32-bit only!
# tested on Linux 32-bit (AMD) minimum version newLISP 10.7.5

# version 1.2, July 2009 - make drawObject working with motion

Expand All @@ -16,7 +17,7 @@
# glut32.dll - available here: http://www.opengl.org/resources/libraries/glut/
# Note! on Windows 7 glut32.dll should be installed c:/Windows/SysWOW64/ not system32
#
# Linux/UNIX - not tested
# Linux/UNIX
# libGLU.so - should be on your Linux/UNIX installation or at www.opengl.org
# glut-3.7.so - already on your system or at:
# http://www.opengl.org/resources/libraries/glut/
Expand Down Expand Up @@ -63,7 +64,7 @@
(begin
(set 'GL_LIB "opengl32.dll")
(set 'GLUT_LIB "glut32.dll"))
(= ostype "Linux") ;; not tested
(= ostype "Linux")
(begin
(set 'GL_LIB "libGL.so")
(set 'GLUT_LIB "libglut.so"))
Expand Down