mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 23:19:24 +02:00
+ added initial sdlgraph unit by Evgeniy Ivanov and related changes:
* also compile sdl/logger unit + restored sdlutils unit, since it's required for SDL_putpixel etc * reordered graph unit in makefiles so it's compiled after sdl git-svn-id: trunk@8312 -
This commit is contained in:
parent
0bfce99477
commit
5d219560b0
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -2224,6 +2224,7 @@ packages/extra/graph/inc/modes.inc svneol=native#text/plain
|
||||
packages/extra/graph/inc/palette.inc svneol=native#text/plain
|
||||
packages/extra/graph/macosx/graph.pp svneol=native#text/plain
|
||||
packages/extra/graph/ptcgraph.pp svneol=native#text/x-pascal
|
||||
packages/extra/graph/sdlgraph/sdlgraph.pp svneol=native#text/plain
|
||||
packages/extra/graph/unix/ggigraph.pp svneol=native#text/plain
|
||||
packages/extra/graph/unix/graph.pp svneol=native#text/plain
|
||||
packages/extra/graph/unix/graph16.inc svneol=native#text/plain
|
||||
@ -3419,6 +3420,7 @@ packages/extra/sdl/sdl_mixer.pas -text svneol=unset#text/plain
|
||||
packages/extra/sdl/sdl_mixer_nosmpeg.pas -text svneol=unset#text/plain
|
||||
packages/extra/sdl/sdl_net.pas svneol=native#text/plain
|
||||
packages/extra/sdl/sdl_ttf.pas svneol=native#text/plain
|
||||
packages/extra/sdl/sdlutils.pas svneol=native#text/plain
|
||||
packages/extra/sdl/smpeg.pas svneol=native#text/plain
|
||||
packages/extra/sndfile/Makefile svneol=native#text/plain
|
||||
packages/extra/sndfile/Makefile.fpc svneol=native#text/plain
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/08/25]
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/08/22]
|
||||
#
|
||||
default: all
|
||||
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded
|
||||
@ -231,13 +231,13 @@ UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
||||
endif
|
||||
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil lua sdl
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil lua sdl graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-go32v2)
|
||||
override TARGET_DIRS+=chm unzip graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-win32)
|
||||
override TARGET_DIRS+=chm unzip opengl gtk gtk2 zlib tcl cdrom fpgtk fftw graph mad openal oggvorbis a52 libpng openssl pcap sdl lua lua
|
||||
override TARGET_DIRS+=chm unzip opengl gtk gtk2 zlib tcl cdrom fpgtk fftw graph mad openal oggvorbis a52 libpng openssl pcap sdl lua
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-os2)
|
||||
override TARGET_DIRS+=chm os2units rexx unzip zlib x11 gtk libpng tcl imlib fpgtk
|
||||
@ -288,7 +288,7 @@ ifeq ($(FULL_TARGET),i386-symbian)
|
||||
override TARGET_DIRS+=chm
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-linux)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-freebsd)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses fpgtk tcl imlib gnome1 openssl pcap libcurl cairo sdl
|
||||
@ -312,7 +312,7 @@ ifeq ($(FULL_TARGET),m68k-embedded)
|
||||
override TARGET_DIRS+=chm
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-linux)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil sdl
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil sdl graph sdl
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-netbsd)
|
||||
override TARGET_DIRS+=chm unzip zlib x11 opengl gtk syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses fpgtk tcl imlib gnome1 openssl pcap libcurl cairo
|
||||
@ -333,7 +333,7 @@ ifeq ($(FULL_TARGET),powerpc-embedded)
|
||||
override TARGET_DIRS+=chm
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-linux)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-netbsd)
|
||||
override TARGET_DIRS+=chm unzip zlib x11 opengl gtk syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses fpgtk tcl imlib gnome1 openssl pcap libcurl cairo
|
||||
@ -345,7 +345,7 @@ ifeq ($(FULL_TARGET),sparc-embedded)
|
||||
override TARGET_DIRS+=chm
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-linux)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil sdl
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil sdl graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses fpgtk tcl imlib gnome1 openssl pcap libcurl cairo sdl
|
||||
@ -357,7 +357,7 @@ ifeq ($(FULL_TARGET),x86_64-embedded)
|
||||
override TARGET_DIRS+=chm
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-linux)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
override TARGET_DIRS+=chm palmunits
|
||||
@ -378,7 +378,7 @@ ifeq ($(FULL_TARGET),arm-symbian)
|
||||
override TARGET_DIRS+=chm
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-linux)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw graph x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms svgalib ggi libpng libgd utmp bfd gdbm ncurses tcl cdrom imlib gnome1 fpgtk newt uuid ldap openal mad oggvorbis a52 modplug dts openssl pcap libcurl cairo unixutil graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-darwin)
|
||||
override TARGET_DIRS+=chm unzip zlib fftw x11 opengl gtk gtk2 syslog forms libpng libgd utmp bfd gdbm ncurses fpgtk tcl imlib gnome1 openssl libcurl cairo
|
||||
@ -1466,7 +1466,6 @@ TARGET_DIRS_CHM=1
|
||||
TARGET_DIRS_UNZIP=1
|
||||
TARGET_DIRS_ZLIB=1
|
||||
TARGET_DIRS_FFTW=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_X11=1
|
||||
TARGET_DIRS_OPENGL=1
|
||||
TARGET_DIRS_GTK=1
|
||||
@ -1502,6 +1501,7 @@ TARGET_DIRS_CAIRO=1
|
||||
TARGET_DIRS_UNIXUTIL=1
|
||||
TARGET_DIRS_LUA=1
|
||||
TARGET_DIRS_SDL=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-go32v2)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -1529,7 +1529,6 @@ TARGET_DIRS_OPENSSL=1
|
||||
TARGET_DIRS_PCAP=1
|
||||
TARGET_DIRS_SDL=1
|
||||
TARGET_DIRS_LUA=1
|
||||
TARGET_DIRS_LUA=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-os2)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -1735,7 +1734,6 @@ TARGET_DIRS_CHM=1
|
||||
TARGET_DIRS_UNZIP=1
|
||||
TARGET_DIRS_ZLIB=1
|
||||
TARGET_DIRS_FFTW=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_X11=1
|
||||
TARGET_DIRS_OPENGL=1
|
||||
TARGET_DIRS_GTK=1
|
||||
@ -1769,6 +1767,7 @@ TARGET_DIRS_PCAP=1
|
||||
TARGET_DIRS_LIBCURL=1
|
||||
TARGET_DIRS_CAIRO=1
|
||||
TARGET_DIRS_UNIXUTIL=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-freebsd)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -1871,7 +1870,6 @@ TARGET_DIRS_CHM=1
|
||||
TARGET_DIRS_UNZIP=1
|
||||
TARGET_DIRS_ZLIB=1
|
||||
TARGET_DIRS_FFTW=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_X11=1
|
||||
TARGET_DIRS_OPENGL=1
|
||||
TARGET_DIRS_GTK=1
|
||||
@ -1906,6 +1904,8 @@ TARGET_DIRS_LIBCURL=1
|
||||
TARGET_DIRS_CAIRO=1
|
||||
TARGET_DIRS_UNIXUTIL=1
|
||||
TARGET_DIRS_SDL=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-netbsd)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -1978,7 +1978,6 @@ TARGET_DIRS_CHM=1
|
||||
TARGET_DIRS_UNZIP=1
|
||||
TARGET_DIRS_ZLIB=1
|
||||
TARGET_DIRS_FFTW=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_X11=1
|
||||
TARGET_DIRS_OPENGL=1
|
||||
TARGET_DIRS_GTK=1
|
||||
@ -2012,6 +2011,7 @@ TARGET_DIRS_PCAP=1
|
||||
TARGET_DIRS_LIBCURL=1
|
||||
TARGET_DIRS_CAIRO=1
|
||||
TARGET_DIRS_UNIXUTIL=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-netbsd)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -2075,7 +2075,6 @@ TARGET_DIRS_CHM=1
|
||||
TARGET_DIRS_UNZIP=1
|
||||
TARGET_DIRS_ZLIB=1
|
||||
TARGET_DIRS_FFTW=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_X11=1
|
||||
TARGET_DIRS_OPENGL=1
|
||||
TARGET_DIRS_GTK=1
|
||||
@ -2110,6 +2109,7 @@ TARGET_DIRS_LIBCURL=1
|
||||
TARGET_DIRS_CAIRO=1
|
||||
TARGET_DIRS_UNIXUTIL=1
|
||||
TARGET_DIRS_SDL=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -2163,7 +2163,6 @@ TARGET_DIRS_CHM=1
|
||||
TARGET_DIRS_UNZIP=1
|
||||
TARGET_DIRS_ZLIB=1
|
||||
TARGET_DIRS_FFTW=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_X11=1
|
||||
TARGET_DIRS_OPENGL=1
|
||||
TARGET_DIRS_GTK=1
|
||||
@ -2197,6 +2196,7 @@ TARGET_DIRS_PCAP=1
|
||||
TARGET_DIRS_LIBCURL=1
|
||||
TARGET_DIRS_CAIRO=1
|
||||
TARGET_DIRS_UNIXUTIL=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -2226,7 +2226,6 @@ TARGET_DIRS_CHM=1
|
||||
TARGET_DIRS_UNZIP=1
|
||||
TARGET_DIRS_ZLIB=1
|
||||
TARGET_DIRS_FFTW=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
TARGET_DIRS_X11=1
|
||||
TARGET_DIRS_OPENGL=1
|
||||
TARGET_DIRS_GTK=1
|
||||
@ -2260,6 +2259,7 @@ TARGET_DIRS_PCAP=1
|
||||
TARGET_DIRS_LIBCURL=1
|
||||
TARGET_DIRS_CAIRO=1
|
||||
TARGET_DIRS_UNIXUTIL=1
|
||||
TARGET_DIRS_GRAPH=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-darwin)
|
||||
TARGET_DIRS_CHM=1
|
||||
@ -2469,51 +2469,6 @@ fftw:
|
||||
$(MAKE) -C fftw all
|
||||
.PHONY: fftw_all fftw_debug fftw_smart fftw_release fftw_units fftw_examples fftw_shared fftw_install fftw_sourceinstall fftw_exampleinstall fftw_distinstall fftw_zipinstall fftw_zipsourceinstall fftw_zipexampleinstall fftw_zipdistinstall fftw_clean fftw_distclean fftw_cleanall fftw_info fftw_makefiles fftw
|
||||
endif
|
||||
ifdef TARGET_DIRS_GRAPH
|
||||
graph_all:
|
||||
$(MAKE) -C graph all
|
||||
graph_debug:
|
||||
$(MAKE) -C graph debug
|
||||
graph_smart:
|
||||
$(MAKE) -C graph smart
|
||||
graph_release:
|
||||
$(MAKE) -C graph release
|
||||
graph_units:
|
||||
$(MAKE) -C graph units
|
||||
graph_examples:
|
||||
$(MAKE) -C graph examples
|
||||
graph_shared:
|
||||
$(MAKE) -C graph shared
|
||||
graph_install:
|
||||
$(MAKE) -C graph install
|
||||
graph_sourceinstall:
|
||||
$(MAKE) -C graph sourceinstall
|
||||
graph_exampleinstall:
|
||||
$(MAKE) -C graph exampleinstall
|
||||
graph_distinstall:
|
||||
$(MAKE) -C graph distinstall
|
||||
graph_zipinstall:
|
||||
$(MAKE) -C graph zipinstall
|
||||
graph_zipsourceinstall:
|
||||
$(MAKE) -C graph zipsourceinstall
|
||||
graph_zipexampleinstall:
|
||||
$(MAKE) -C graph zipexampleinstall
|
||||
graph_zipdistinstall:
|
||||
$(MAKE) -C graph zipdistinstall
|
||||
graph_clean:
|
||||
$(MAKE) -C graph clean
|
||||
graph_distclean:
|
||||
$(MAKE) -C graph distclean
|
||||
graph_cleanall:
|
||||
$(MAKE) -C graph cleanall
|
||||
graph_info:
|
||||
$(MAKE) -C graph info
|
||||
graph_makefiles:
|
||||
$(MAKE) -C graph makefiles
|
||||
graph:
|
||||
$(MAKE) -C graph all
|
||||
.PHONY: graph_all graph_debug graph_smart graph_release graph_units graph_examples graph_shared graph_install graph_sourceinstall graph_exampleinstall graph_distinstall graph_zipinstall graph_zipsourceinstall graph_zipexampleinstall graph_zipdistinstall graph_clean graph_distclean graph_cleanall graph_info graph_makefiles graph
|
||||
endif
|
||||
ifdef TARGET_DIRS_X11
|
||||
x11_all:
|
||||
$(MAKE) -C x11 all
|
||||
@ -4089,6 +4044,51 @@ sdl:
|
||||
$(MAKE) -C sdl all
|
||||
.PHONY: sdl_all sdl_debug sdl_smart sdl_release sdl_units sdl_examples sdl_shared sdl_install sdl_sourceinstall sdl_exampleinstall sdl_distinstall sdl_zipinstall sdl_zipsourceinstall sdl_zipexampleinstall sdl_zipdistinstall sdl_clean sdl_distclean sdl_cleanall sdl_info sdl_makefiles sdl
|
||||
endif
|
||||
ifdef TARGET_DIRS_GRAPH
|
||||
graph_all:
|
||||
$(MAKE) -C graph all
|
||||
graph_debug:
|
||||
$(MAKE) -C graph debug
|
||||
graph_smart:
|
||||
$(MAKE) -C graph smart
|
||||
graph_release:
|
||||
$(MAKE) -C graph release
|
||||
graph_units:
|
||||
$(MAKE) -C graph units
|
||||
graph_examples:
|
||||
$(MAKE) -C graph examples
|
||||
graph_shared:
|
||||
$(MAKE) -C graph shared
|
||||
graph_install:
|
||||
$(MAKE) -C graph install
|
||||
graph_sourceinstall:
|
||||
$(MAKE) -C graph sourceinstall
|
||||
graph_exampleinstall:
|
||||
$(MAKE) -C graph exampleinstall
|
||||
graph_distinstall:
|
||||
$(MAKE) -C graph distinstall
|
||||
graph_zipinstall:
|
||||
$(MAKE) -C graph zipinstall
|
||||
graph_zipsourceinstall:
|
||||
$(MAKE) -C graph zipsourceinstall
|
||||
graph_zipexampleinstall:
|
||||
$(MAKE) -C graph zipexampleinstall
|
||||
graph_zipdistinstall:
|
||||
$(MAKE) -C graph zipdistinstall
|
||||
graph_clean:
|
||||
$(MAKE) -C graph clean
|
||||
graph_distclean:
|
||||
$(MAKE) -C graph distclean
|
||||
graph_cleanall:
|
||||
$(MAKE) -C graph cleanall
|
||||
graph_info:
|
||||
$(MAKE) -C graph info
|
||||
graph_makefiles:
|
||||
$(MAKE) -C graph makefiles
|
||||
graph:
|
||||
$(MAKE) -C graph all
|
||||
.PHONY: graph_all graph_debug graph_smart graph_release graph_units graph_examples graph_shared graph_install graph_sourceinstall graph_exampleinstall graph_distinstall graph_zipinstall graph_zipsourceinstall graph_zipexampleinstall graph_zipdistinstall graph_clean graph_distclean graph_cleanall graph_info graph_makefiles graph
|
||||
endif
|
||||
ifdef TARGET_DIRS_OS2UNITS
|
||||
os2units_all:
|
||||
$(MAKE) -C os2units all
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
[target]
|
||||
dirs=chm
|
||||
dirs_linux=unzip zlib fftw graph \
|
||||
dirs_linux=unzip zlib fftw \
|
||||
x11 opengl gtk gtk2 syslog \
|
||||
forms svgalib ggi libpng libgd \
|
||||
utmp bfd gdbm ncurses tcl cdrom \
|
||||
@ -11,10 +11,13 @@ dirs_linux=unzip zlib fftw graph \
|
||||
ldap openal mad oggvorbis a52 \
|
||||
modplug dts openssl pcap libcurl cairo \
|
||||
unixutil
|
||||
dirs_i386_linux=lua sdl
|
||||
dirs_x86_64_linux=sdl
|
||||
dirs_i386_win32=lua
|
||||
dirs_powerpc_linux=sdl
|
||||
dirs_i386_linux=lua sdl graph
|
||||
dirs_x86_64_linux=sdl graph
|
||||
dirs_powerpc_linux=sdl graph
|
||||
dirs_powerpc64_linux=graph
|
||||
dirs_sparc_linux=graph
|
||||
dirs_arm_linux=graph
|
||||
dirs_m68k_linux=graph
|
||||
dirs_netbsd=unzip zlib \
|
||||
x11 opengl gtk syslog \
|
||||
forms svgalib ggi libpng libgd \
|
||||
|
@ -255,40 +255,49 @@ GRAPHUNIT_DIR=unix
|
||||
UNIXINCDEPS=$(UNIXINC)/graph16.inc
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT) sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-go32v2)
|
||||
override TARGET_UNITS+=graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-win32)
|
||||
override TARGET_UNITS+=graph wincrt winmouse
|
||||
override TARGET_UNITS+=graph wincrt winmouse sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-freebsd)
|
||||
override TARGET_UNITS+=graph $(GGIGRAPH_UNIT)
|
||||
override TARGET_UNITS+=graph $(GGIGRAPH_UNIT) sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-darwin)
|
||||
override TARGET_UNITS+=sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-linux)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-freebsd)
|
||||
override TARGET_UNITS+=graph $(GGIGRAPH_UNIT)
|
||||
override TARGET_UNITS+=graph $(GGIGRAPH_UNIT) sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-amiga)
|
||||
override TARGET_UNITS+=graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-linux)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT) sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-amiga)
|
||||
override TARGET_UNITS+=graph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-darwin)
|
||||
override TARGET_UNITS+=sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-linux)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-linux)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT) sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
||||
override TARGET_UNITS+=graph $(GGIGRAPH_UNIT)
|
||||
override TARGET_UNITS+=graph $(GGIGRAPH_UNIT) sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-win64)
|
||||
override TARGET_UNITS+=sdlgraph
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-linux)
|
||||
override TARGET_UNITS+=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
|
||||
@ -1704,18 +1713,27 @@ endif
|
||||
override REQUIRE_PACKAGES=rtl
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-go32v2)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-win32)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-os2)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-freebsd)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
@ -1740,6 +1758,9 @@ REQUIRE_PACKAGES_RTL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-darwin)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-emx)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
@ -1764,6 +1785,9 @@ REQUIRE_PACKAGES_RTL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-freebsd)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-netbsd)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
@ -1785,6 +1809,9 @@ REQUIRE_PACKAGES_RTL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-linux)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-netbsd)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
@ -1797,6 +1824,9 @@ REQUIRE_PACKAGES_RTL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-darwin)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-morphos)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
@ -1818,12 +1848,21 @@ REQUIRE_PACKAGES_RTL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-linux)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-win64)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_PTHREADS=1
|
||||
REQUIRE_PACKAGES_X11=1
|
||||
REQUIRE_PACKAGES_SDL=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-embedded)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
@ -1884,6 +1923,84 @@ ifdef UNITDIR_RTL
|
||||
override COMPILER_UNITDIR+=$(UNITDIR_RTL)
|
||||
endif
|
||||
endif
|
||||
ifdef REQUIRE_PACKAGES_PTHREADS
|
||||
PACKAGEDIR_PTHREADS:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /pthreads/Makefile.fpc,$(PACKAGESDIR))))))
|
||||
ifneq ($(PACKAGEDIR_PTHREADS),)
|
||||
ifneq ($(wildcard $(PACKAGEDIR_PTHREADS)/units/$(TARGETSUFFIX)),)
|
||||
UNITDIR_PTHREADS=$(PACKAGEDIR_PTHREADS)/units/$(TARGETSUFFIX)
|
||||
else
|
||||
UNITDIR_PTHREADS=$(PACKAGEDIR_PTHREADS)
|
||||
endif
|
||||
ifdef CHECKDEPEND
|
||||
$(PACKAGEDIR_PTHREADS)/$(FPCMADE):
|
||||
$(MAKE) -C $(PACKAGEDIR_PTHREADS) $(FPCMADE)
|
||||
override ALLDEPENDENCIES+=$(PACKAGEDIR_PTHREADS)/$(FPCMADE)
|
||||
endif
|
||||
else
|
||||
PACKAGEDIR_PTHREADS=
|
||||
UNITDIR_PTHREADS:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /pthreads/Package.fpc,$(UNITSDIR)))))
|
||||
ifneq ($(UNITDIR_PTHREADS),)
|
||||
UNITDIR_PTHREADS:=$(firstword $(UNITDIR_PTHREADS))
|
||||
else
|
||||
UNITDIR_PTHREADS=
|
||||
endif
|
||||
endif
|
||||
ifdef UNITDIR_PTHREADS
|
||||
override COMPILER_UNITDIR+=$(UNITDIR_PTHREADS)
|
||||
endif
|
||||
endif
|
||||
ifdef REQUIRE_PACKAGES_X11
|
||||
PACKAGEDIR_X11:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /x11/Makefile.fpc,$(PACKAGESDIR))))))
|
||||
ifneq ($(PACKAGEDIR_X11),)
|
||||
ifneq ($(wildcard $(PACKAGEDIR_X11)/units/$(TARGETSUFFIX)),)
|
||||
UNITDIR_X11=$(PACKAGEDIR_X11)/units/$(TARGETSUFFIX)
|
||||
else
|
||||
UNITDIR_X11=$(PACKAGEDIR_X11)
|
||||
endif
|
||||
ifdef CHECKDEPEND
|
||||
$(PACKAGEDIR_X11)/$(FPCMADE):
|
||||
$(MAKE) -C $(PACKAGEDIR_X11) $(FPCMADE)
|
||||
override ALLDEPENDENCIES+=$(PACKAGEDIR_X11)/$(FPCMADE)
|
||||
endif
|
||||
else
|
||||
PACKAGEDIR_X11=
|
||||
UNITDIR_X11:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /x11/Package.fpc,$(UNITSDIR)))))
|
||||
ifneq ($(UNITDIR_X11),)
|
||||
UNITDIR_X11:=$(firstword $(UNITDIR_X11))
|
||||
else
|
||||
UNITDIR_X11=
|
||||
endif
|
||||
endif
|
||||
ifdef UNITDIR_X11
|
||||
override COMPILER_UNITDIR+=$(UNITDIR_X11)
|
||||
endif
|
||||
endif
|
||||
ifdef REQUIRE_PACKAGES_SDL
|
||||
PACKAGEDIR_SDL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /sdl/Makefile.fpc,$(PACKAGESDIR))))))
|
||||
ifneq ($(PACKAGEDIR_SDL),)
|
||||
ifneq ($(wildcard $(PACKAGEDIR_SDL)/units/$(TARGETSUFFIX)),)
|
||||
UNITDIR_SDL=$(PACKAGEDIR_SDL)/units/$(TARGETSUFFIX)
|
||||
else
|
||||
UNITDIR_SDL=$(PACKAGEDIR_SDL)
|
||||
endif
|
||||
ifdef CHECKDEPEND
|
||||
$(PACKAGEDIR_SDL)/$(FPCMADE):
|
||||
$(MAKE) -C $(PACKAGEDIR_SDL) $(FPCMADE)
|
||||
override ALLDEPENDENCIES+=$(PACKAGEDIR_SDL)/$(FPCMADE)
|
||||
endif
|
||||
else
|
||||
PACKAGEDIR_SDL=
|
||||
UNITDIR_SDL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /sdl/Package.fpc,$(UNITSDIR)))))
|
||||
ifneq ($(UNITDIR_SDL),)
|
||||
UNITDIR_SDL:=$(firstword $(UNITDIR_SDL))
|
||||
else
|
||||
UNITDIR_SDL=
|
||||
endif
|
||||
endif
|
||||
ifdef UNITDIR_SDL
|
||||
override COMPILER_UNITDIR+=$(UNITDIR_SDL)
|
||||
endif
|
||||
endif
|
||||
ifndef NOCPUDEF
|
||||
override FPCOPTDEF=$(CPU_TARGET)
|
||||
endif
|
||||
@ -2485,4 +2602,6 @@ winmouse$(PPUEXT) : win32/winmouse.pp graph$(PPUEXT)
|
||||
$(COMPILER) win32/winmouse.pp
|
||||
wincrt$(PPUEXT) : win32/wincrt.pp graph$(PPUEXT)
|
||||
$(COMPILER) win32/wincrt.pp
|
||||
sdlgraph$(PPUEXT) : sdlgraph/sdlgraph.pp $(GRAPHINCDEPS)
|
||||
$(COMPILER) -I$(GRAPHDIR) sdlgraph/sdlgraph.pp
|
||||
.NOTPARALLEL:
|
||||
|
@ -8,10 +8,18 @@ version=2.1
|
||||
|
||||
[require]
|
||||
libc=y
|
||||
packages_linux_i386=sdl
|
||||
packages_linux_x86_64=sdl
|
||||
packages_linux_powerpc=sdl
|
||||
packages_freebsd=sdl
|
||||
packages_win32=sdl
|
||||
packages_win64=sdl
|
||||
packages_darwin_powerpc=sdl
|
||||
packages_darwin_i386=sdl
|
||||
|
||||
# clean package units
|
||||
[clean]
|
||||
units=$(GGIGRAPH_UNIT) $(GRAPH_UNIT)
|
||||
units=$(GGIGRAPH_UNIT) $(GRAPH_UNIT)
|
||||
|
||||
[target]
|
||||
dirs=
|
||||
@ -21,6 +29,14 @@ units_freebsd=graph $(GGIGRAPH_UNIT)
|
||||
units_win32=graph wincrt winmouse
|
||||
units_go32v2=graph
|
||||
units_amiga=graph
|
||||
units_i386_linux=sdlgraph
|
||||
units_x86_64_linux=sdlgraph
|
||||
units_powerpc_linux=sdlgraph
|
||||
units_freebsd=sdlgraph
|
||||
units_win32=sdlgraph
|
||||
units_win64=sdlgraph
|
||||
units_powerpc_darwin=sdlgraph
|
||||
units_i386_darwin=sdlgraph
|
||||
|
||||
[compiler]
|
||||
options=-S2
|
||||
@ -87,4 +103,8 @@ winmouse$(PPUEXT) : win32/winmouse.pp graph$(PPUEXT)
|
||||
wincrt$(PPUEXT) : win32/wincrt.pp graph$(PPUEXT)
|
||||
$(COMPILER) win32/wincrt.pp
|
||||
|
||||
sdlgraph$(PPUEXT) : sdlgraph/sdlgraph.pp $(GRAPHINCDEPS)
|
||||
$(COMPILER) -I$(GRAPHDIR) sdlgraph/sdlgraph.pp
|
||||
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
946
packages/extra/graph/sdlgraph/sdlgraph.pp
Normal file
946
packages/extra/graph/sdlgraph/sdlgraph.pp
Normal file
@ -0,0 +1,946 @@
|
||||
{**************************************************************************
|
||||
Copyright : (c) 2007 Evgeniy Ivanov
|
||||
email : lolkaantimat@gmail.com
|
||||
http : Not yet
|
||||
****************************************************************************/
|
||||
|
||||
This file implements the sdl support for the graph unit
|
||||
|
||||
See the file COPYING.FPC, included in this distribution,
|
||||
for details about the copyright.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
****************************************************************************}
|
||||
|
||||
|
||||
|
||||
{Important TODO list
|
||||
|
||||
TODO: color conversion. from pascal color constant to color (pixel) from SDL_putpixel. At this moment you may gent another colors than you're waiting for. The worsest thing is it may be black on the black
|
||||
|
||||
TODO: check all mode.HardwarePages and find true value for each mode!
|
||||
|
||||
TODO: check initgraph(0,0,' ') and work with modes to set up best SDL mode.
|
||||
Maybe to hook internDetectGraph and detectGraph. I thing they are not needed for sdlgraph
|
||||
|
||||
TODO: check VESA modes ModeNumber (if they needed)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
{ Programming Notes
|
||||
TODO: (it's a linux note, I haven't yet tested it on other systems) When SDL window is activated from the terminal readln does'n work!!! And when from KDE it autocloses without waiting readln input. I think that there must be a hook for readln while sdlgraph is active
|
||||
|
||||
TODO: setcaption for the programme. There is no such procedure in Graph unit so we should add it or use setcaption with default (prograamme's name)
|
||||
|
||||
TODO: to not forget about rgb_from_color's RGB values. Now they are just for testing!!!
|
||||
|
||||
TODO: configure refresh (flip) time. SDL_AddTimer(100...: time interval must be the same as monitor vertical refresh.
|
||||
|
||||
}
|
||||
|
||||
|
||||
unit sdlgraph;
|
||||
|
||||
{$ifdef darwin}
|
||||
{$linkframework Cocoa}
|
||||
{$linklib SDLmain}
|
||||
{$linklib gcc}
|
||||
{$endif}
|
||||
|
||||
interface
|
||||
//procedure sdlgraph_bar3D(x1, y1, x2, y2 : smallint;depth : word;top : boolean);
|
||||
{$i graphh.inc}
|
||||
|
||||
const
|
||||
|
||||
{==================================================================================================================================================
|
||||
Graphics Drivers Constants. Needed to support turbo pascale code TODO: is it needed???
|
||||
It's highly recommended to use Detect (0 constant) for grDriver and grmode: initGraph(0,0,' ') to allow SDL to configure app for the best perfomance
|
||||
====================================================================================================================================================
|
||||
}
|
||||
|
||||
//Detect =0; is in the graphh.inc
|
||||
CGA =1;
|
||||
MCGA =2;
|
||||
EGA =3;
|
||||
EGA64 =4;
|
||||
EGAMono =5;
|
||||
IBM8514 =6;
|
||||
//HercMono =7; is in the graphh.inc
|
||||
ATT400 =8;
|
||||
//VGA =9; is in graphh.inc
|
||||
PC3270 =10;
|
||||
|
||||
{Graphics Modes for Each Driver}
|
||||
CGAC0 =0;
|
||||
CGAC =1;
|
||||
CGAC2 =2;
|
||||
CGAC3 =3;
|
||||
CGAHi =4;
|
||||
|
||||
MCGAC0 =0;
|
||||
MCGAC =1;
|
||||
MCGAC2 =2;
|
||||
MCGAC3 =3;
|
||||
MCGAMed =4;
|
||||
MCGAHi =5;
|
||||
|
||||
EGAMonoHi =3;
|
||||
//HercMonoHi =0; is in the graphh.inc
|
||||
//VGALo =0; is in the graphh.inc
|
||||
//VGAMed =1; is in the graphh.inc
|
||||
//VGAHi =2; is in the graphh.inc
|
||||
|
||||
EGALo =0;
|
||||
EGAHi =1;
|
||||
EGA64Lo =0;
|
||||
EGA64Hi =1;
|
||||
|
||||
ATT400C0 =0;
|
||||
ATT400C1 =1;
|
||||
ATT400C2 =2;
|
||||
ATT400C3 =3;
|
||||
ATT400CMed =4;
|
||||
ATT400Hi =5;
|
||||
|
||||
IBM8514Lo =0;
|
||||
IBM8514Hi =1;
|
||||
|
||||
PC3270Hi =0;
|
||||
|
||||
{ From *Go32* VESA Specific video modes. }
|
||||
m320x200x32k = $10D;
|
||||
m320x200x64k = $10E;
|
||||
|
||||
m640x400x256 = $100;
|
||||
|
||||
m640x480x256 = $101;
|
||||
m640x480x32k = $110;
|
||||
m640x480x64k = $111;
|
||||
|
||||
m800x600x16 = $102;
|
||||
m800x600x256 = $103;
|
||||
m800x600x32k = $113;
|
||||
m800x600x64k = $114;
|
||||
|
||||
m1024x768x16 = $104;
|
||||
m1024x768x256 = $105;
|
||||
m1024x768x32k = $116;
|
||||
m1024x768x64k = $117;
|
||||
|
||||
m1280x1024x16 = $106;
|
||||
m1280x1024x256 = $107;
|
||||
m1280x1024x32k = $119;
|
||||
m1280x1024x64k = $11A;
|
||||
implementation
|
||||
|
||||
uses {$ifdef unix}cthreads,{$endif}
|
||||
sdl,sdlutils,
|
||||
logger,
|
||||
SysUtils;
|
||||
|
||||
const
|
||||
InternalDriverName = 'SDL';
|
||||
|
||||
{$i graph.inc}
|
||||
|
||||
var
|
||||
screen: PSDL_Surface; //Global becouse its value is needed by some functions
|
||||
|
||||
|
||||
|
||||
procedure CloseGraph;
|
||||
begin
|
||||
If not isgraphmode then
|
||||
begin
|
||||
_graphresult := grnoinitgraph;
|
||||
exit;
|
||||
end;
|
||||
isgraphmode := false;
|
||||
SDL_Quit();
|
||||
//Halt(0); TODO: check, if it close application wich calls sdlgraph
|
||||
end;
|
||||
|
||||
|
||||
procedure Slock;
|
||||
begin
|
||||
if SDL_MUSTLOCK(screen) then
|
||||
if SDL_LockSurface(screen) < 0 then
|
||||
begin
|
||||
Log.LogError( Format( 'Cant lock screen: : %s', [SDL_GetError]), 'Slock' );
|
||||
CloseGraph;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
function timer_flip(flip_interval:Uint32; flip_callback_param:Pointer):Uint32;
|
||||
begin
|
||||
SDL_Flip(screen);
|
||||
timer_flip:=flip_interval;
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
||||
{
|
||||
procedure Slock;
|
||||
begin
|
||||
if SDL_MUSTLOCK(screen) then
|
||||
if SDL_LockSurface(screen) < 0 then
|
||||
begin
|
||||
Log.LogError( Format( 'Cant lock screen: : %s', [SDL_GetError]), 'Slock' );
|
||||
CloseGraph;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
procedure Sulock; //Unlock and flip the surface
|
||||
begin
|
||||
if SDL_MUSTLOCK(screen) then
|
||||
SDL_UnlockSurface(screen);
|
||||
SDL_Flip(screen);
|
||||
|
||||
end;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
{PutPixel and GetPixel use SDL_* functions from sdlutils unit.}
|
||||
|
||||
procedure sdlgraph_PutPixel(X,Y:smallint; color: Word);
|
||||
begin
|
||||
X:= X + StartXViewPort;
|
||||
Y:= Y + StartYViewPort;
|
||||
|
||||
{ convert to absolute coordinates and then verify clipping...}
|
||||
if ClipPixels then
|
||||
begin
|
||||
if (X < StartXViewPort) or (X > (StartXViewPort + ViewWidth)) then
|
||||
exit;
|
||||
if (Y < StartYViewPort) or (Y > (StartYViewPort + ViewHeight)) then
|
||||
exit;
|
||||
end;
|
||||
SDL_PutPixel(screen,x,y,255);
|
||||
exit;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
|
||||
function sdlgraph_GetPixel(X,Y:smallint):Word;
|
||||
var
|
||||
temp:word;
|
||||
begin
|
||||
X:= X + StartXViewPort;
|
||||
Y:= Y + StartYViewPort;
|
||||
temp:=word(SDL_GetPixel(screen,x,y));
|
||||
sdlgraph_GetPixel:=temp;
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
||||
procedure sdlgraph_DirectPutPixel(X,Y: smallint);
|
||||
var
|
||||
Color: word;
|
||||
begin
|
||||
|
||||
case CurrentWriteMode of
|
||||
XORPut:
|
||||
begin
|
||||
{ getpixel wants local/relative coordinates }
|
||||
Color := GetPixel(x-StartXViewPort,y-StartYViewPort);
|
||||
Color := CurrentColor Xor Color;
|
||||
end;
|
||||
OrPut:
|
||||
begin
|
||||
{ getpixel wants local/relative coordinates }
|
||||
Color := GetPixel(x-StartXViewPort,y-StartYViewPort);
|
||||
Color := CurrentColor Or Color;
|
||||
end;
|
||||
AndPut:
|
||||
begin
|
||||
{ getpixel wants local/relative coordinates }
|
||||
Color := GetPixel(x-StartXViewPort,y-StartYViewPort);
|
||||
Color := CurrentColor And Color;
|
||||
end;
|
||||
NotPut:
|
||||
begin
|
||||
Color := (Not CurrentColor) and 15;
|
||||
end
|
||||
else
|
||||
Color := CurrentColor;
|
||||
end;
|
||||
|
||||
sdlgraph_PutPixel(X,Y,Color);
|
||||
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
||||
{
|
||||
procedure nonBuf_DirectPutPixel(X,Y: smallint); // for HLine and other such hooks. It doesn't use buffering (SLock & Sulock routines).
|
||||
begin
|
||||
CurrentColor:=255;
|
||||
SDL_PutPixel(screen,x,y,CurrentColor);
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
||||
procedure sdlgraph_HLine(x,x2,y: smallint);
|
||||
var
|
||||
temp:DefPixelProc;
|
||||
begin
|
||||
HLineDefault(x,x2,y);
|
||||
//SDL_DrawLine(screen,X,y,x2,y,255);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_VLine(x,y,y2:smallint);
|
||||
var
|
||||
temp:DefPixelProc;
|
||||
begin
|
||||
VLineDefault(x,y,y2);
|
||||
end;
|
||||
|
||||
|
||||
|
||||
procedure sdlgraph_line(X1, Y1, X2, Y2: smallint);
|
||||
var
|
||||
temp:DefPixelProc;
|
||||
begin
|
||||
LineDefault(X1, Y1, X2, Y2);
|
||||
//SDL_DrawLine(screen,X1,y1,x2,y2,255);
|
||||
end;
|
||||
}
|
||||
|
||||
{
|
||||
procedure nonBuf_HLine(x,x2,y: smallint);
|
||||
var
|
||||
temp:DefPixelProc;
|
||||
begin
|
||||
temp:=DirectPutPixel;
|
||||
DirectPutPixel:=@nonBuf_DirectPutPixel;
|
||||
HLineDefault(x,x2,y);
|
||||
DirectPutPixel:=temp;
|
||||
end;
|
||||
|
||||
procedure nonBuf_VLine(x,y,y2:smallint);
|
||||
var
|
||||
temp:DefPixelProc;
|
||||
begin
|
||||
temp:=DirectPutPixel;
|
||||
DirectPutPixel:=@nonBuf_DirectPutPixel;
|
||||
VLineDefault(x,y,y2);
|
||||
DirectPutPixel:=temp;
|
||||
end;
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
procedure nonBuf_line(X1, Y1, X2, Y2: smallint);
|
||||
var
|
||||
temp:DefPixelProc;
|
||||
begin
|
||||
temp:=DirectPutPixel;
|
||||
DirectPutPixel:=@nonBuf_DirectPutPixel;
|
||||
LineDefault(X1, Y1, X2, Y2);
|
||||
DirectPutPixel:=temp;
|
||||
end;
|
||||
}
|
||||
|
||||
{
|
||||
procedure sdlgraph_InternalEllipse(X,Y: smallint;XRadius: word;
|
||||
YRadius:word; stAngle,EndAngle: word; pl: PatternLineProc);
|
||||
var
|
||||
temp:PutPixelProc;
|
||||
begin
|
||||
InternalEllipseDefault(X,Y,XRadius,YRadius,stAngle,EndAngle,pl);
|
||||
end;
|
||||
}
|
||||
|
||||
|
||||
procedure InitSDLgraph(Width,Height,BPP:Integer);
|
||||
var
|
||||
videoflags : Uint32;
|
||||
videoInfo : PSDL_VideoInfo;
|
||||
|
||||
flip_callback_param:Pointer;
|
||||
flip_timer_id:PSDL_TimerID;
|
||||
begin
|
||||
if ( SDL_Init( SDL_INIT_TIMER or SDL_INIT_VIDEO ) < 0 ) then
|
||||
begin
|
||||
Log.LogError( Format( 'Could not initialize SDL : %s', [SDL_GetError] ), 'InitSDLgraph' );
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
||||
// Fetch the video info
|
||||
videoInfo := SDL_GetVideoInfo;
|
||||
|
||||
if ( videoInfo = nil ) then
|
||||
begin
|
||||
Log.LogError( Format( 'Video query failed : %s', [SDL_GetError] ), 'InitSDLgraph' );
|
||||
CloseGraph;
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
||||
// the flags to pass to SDL_SetVideoMode
|
||||
videoFlags := SDL_DOUBLEBUF; // Enable double buffering
|
||||
videoFlags := videoFlags or SDL_HWPALETTE; // Store the palette in hardware
|
||||
|
||||
// This checks to see if surfaces can be stored in memory
|
||||
if videoInfo^.hw_available <> 0 then
|
||||
videoFlags := videoFlags or SDL_HWSURFACE
|
||||
else
|
||||
videoFlags := videoFlags or SDL_SWSURFACE;
|
||||
|
||||
// This checks if hardware blits can be done * /
|
||||
if videoInfo^.blit_hw <> 0 then
|
||||
videoFlags := videoFlags or SDL_HWACCEL;
|
||||
videoflags := videoFlags or SDL_RESIZABLE; // Enable window resizing TODO: Do we want to have it in graph module?
|
||||
|
||||
|
||||
if (SDL_VideoModeOK(Width,Height,BPP,videoFlags) = 0) then
|
||||
begin
|
||||
//TODO: create 1 string from parametres!
|
||||
//Log.LogError('InitSDLgraph: ',Width,'x',Height,'x',BPP,' - no such mode (also you may check videoflags in the sdlgraph unit (procedure InitSDLgraph)');
|
||||
exit;
|
||||
end;
|
||||
|
||||
screen := SDL_SetVideoMode(Width, Height, BPP, SDL_SWSURFACE ); // TODO: use videoflags but not SDL_SWSURFACE!
|
||||
|
||||
//It doesn't work yet!
|
||||
{if ( surface = nil ) then
|
||||
begin
|
||||
Log.LogError( Format( 'Unable to SetVideMode : %s', [SDL_GetError]), 'InitSDLgraph' );
|
||||
InitSDLgraph:=false;
|
||||
exit;
|
||||
CloseGraph;
|
||||
end;}
|
||||
|
||||
|
||||
flip_timer_id := SDL_AddTimer(100,TSDL_NewTimerCallback( @timer_flip ), nil ); //TODO: time interval must be the same as monitor vertical refresh
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init1280x1024x64k;
|
||||
begin
|
||||
InitSDLgraph(1280,1024,16);
|
||||
end;
|
||||
|
||||
|
||||
procedure sdlgraph_Init1280x1024x32k;
|
||||
begin
|
||||
InitSDLgraph(1280,1024,15); //TODO: maybe to set 16 bit??? It's about all 15bpp modes.
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init1280x1024x256;
|
||||
begin
|
||||
InitSDLgraph(1280,1024,8);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init1280x1024x16;
|
||||
begin
|
||||
InitSDLgraph(1280,1024,4);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init1024x768x64k;
|
||||
begin
|
||||
InitSDLgraph(1024,768,16);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init640x480x32k;
|
||||
begin
|
||||
InitSDLgraph(640,480,15);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init1024x768x256;
|
||||
begin
|
||||
InitSDLgraph(1024,768,8);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init1024x768x16;
|
||||
begin
|
||||
InitSDLgraph(1024,768,4);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init800x600x64k;
|
||||
begin
|
||||
InitSDLgraph(800,600,16);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init800x600x32k;
|
||||
begin
|
||||
InitSDLgraph(800,600,15);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init800x600x256;
|
||||
begin
|
||||
InitSDLgraph(800,600,8);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init800x600x16;
|
||||
begin
|
||||
InitSDLgraph(800,600,4);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init640x480x64k;
|
||||
begin
|
||||
InitSDLgraph(640,480,16);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init1024x768x32k;
|
||||
begin
|
||||
InitSDLgraph(1024,768,15);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init640x480x256;
|
||||
begin
|
||||
InitSDLgraph(640,480,8);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init640x400x256;
|
||||
begin
|
||||
InitSDLgraph(640,400,8);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init320x200x64k;
|
||||
begin
|
||||
InitSDLgraph(320,200,16);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init320x200x32k;
|
||||
begin
|
||||
InitSDLgraph(320,200,15);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init640x480x16;
|
||||
begin
|
||||
InitSDLgraph(640,480,4);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init640x350x16;
|
||||
begin
|
||||
InitSDLgraph(640,350,4);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init640x200x16;
|
||||
begin
|
||||
InitSDLgraph(640,200,4);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_InitModeX;
|
||||
begin
|
||||
InitSDLgraph(320,200,8);
|
||||
end;
|
||||
|
||||
procedure sdlgraph_Init320;
|
||||
begin
|
||||
InitSDLgraph(320,200,8);
|
||||
end;
|
||||
|
||||
|
||||
|
||||
|
||||
//TODO Check what does it do and if it is needed
|
||||
//BEGIN TODO
|
||||
procedure savestate;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
procedure restorestate;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
procedure sdlgraph_SetRGBpalette(ColorNum, RedValue, GreenValue, BlueValue: smallint);
|
||||
begin
|
||||
end;
|
||||
|
||||
procedure sdlgraph_GetRGBpalette(ColorNum: smallint; var RedValue, GreenValue, BlueValue: smallint);
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
//END TODO
|
||||
|
||||
|
||||
function QueryAdapterInfo:PModeInfo;
|
||||
var
|
||||
mode: TModeInfo;
|
||||
|
||||
procedure setupSDLgraphDefaults;
|
||||
begin
|
||||
mode.DirectPutPixel:={$ifdef fpc}@{$endif}sdlgraph_DirectPutPixel;
|
||||
mode.PutPixel:={$ifdef fpc}@{$endif}sdlgraph_PutPixel;
|
||||
mode.GetPixel:={$ifdef fpc}@{$endif}sdlgraph_GetPixel;
|
||||
mode.SetRGBPalette := {$ifdef fpc}@{$endif}sdlgraph_SetRGBpalette;
|
||||
mode.GetRGBPalette := {$ifdef fpc}@{$endif}sdlgraph_GetRGBpalette;
|
||||
//mode.InternalEllipse := {$ifdef fpc}@{$endif}sdlgraph_InternalEllipse;
|
||||
mode.XAspect := 10000;
|
||||
mode.YAspect := 10000;
|
||||
//mode.HLine:={$ifdef fpc}@{$endif}sdlgraph_HLine;
|
||||
//mode.VLine:={$ifdef fpc}@{$endif}sdlgraph_VLine;
|
||||
//mode.Line:={$ifdef fpc}@{$endif}sdlgraph_line;
|
||||
end;
|
||||
|
||||
begin
|
||||
QueryAdapterInfo := ModeList;
|
||||
{ If the mode listing already exists... }
|
||||
{ simply return it, without changing }
|
||||
{ anything... }
|
||||
if assigned(ModeList) then
|
||||
exit;
|
||||
|
||||
SaveVideoState:={$ifdef fpc}@{$endif}savestate;
|
||||
RestoreVideoState:={$ifdef fpc}@{$endif}restorestate;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// =======================================================MODES FROM *GO32*=====================================================================
|
||||
// ==============================================================================================================================================
|
||||
|
||||
InitMode(mode);
|
||||
{ now add all standard VGA modes... }
|
||||
mode.DriverNumber:= LowRes;
|
||||
mode.HardwarePages:= 0;
|
||||
mode.ModeNumber:=0;
|
||||
mode.ModeName:='320 x 200 VGA';
|
||||
mode.MaxColor := 256;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.MaxX := 319;
|
||||
mode.MaxY := 199;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init320;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
{ now add all standard VGA modes... }
|
||||
InitMode(mode);
|
||||
mode.DriverNumber:= LowRes;
|
||||
mode.ModeNumber:=1;
|
||||
mode.HardwarePages := 3; { 0..3 }
|
||||
mode.ModeName:='320 x 200 ModeX';
|
||||
mode.MaxColor := 256;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 319;
|
||||
mode.MaxY := 199;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_InitModeX;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=VGALo;
|
||||
mode.DriverNumber := VGA;
|
||||
mode.ModeName:='640 x 200 VGA';
|
||||
mode.MaxColor := 16;
|
||||
mode.HardwarePages := 2;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 639;
|
||||
mode.MaxY := 199;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init640x200x16;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=VGAMed;
|
||||
mode.DriverNumber := VGA;
|
||||
mode.ModeName:='640 x 350 VGA';
|
||||
mode.HardwarePages := 1;
|
||||
mode.MaxColor := 16;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 639;
|
||||
mode.MaxY := 349;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init640x350x16;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=VGAHi;
|
||||
mode.DriverNumber := VGA;
|
||||
mode.HardwarePages := 0;
|
||||
mode.ModeName:='640 x 480 VGA';
|
||||
mode.MaxColor := 16;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 639;
|
||||
mode.MaxY := 479;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init640x480x16;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m320x200x32k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='320 x 200 VESA';
|
||||
mode.MaxColor := 32768;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.MaxX := 319;
|
||||
mode.MaxY := 199;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init320x200x32k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m320x200x64k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='320 x 200 VESA';
|
||||
mode.MaxColor := 65536;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.MaxX := 319;
|
||||
mode.MaxY := 199;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init320x200x64k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m640x400x256;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='640 x 400 VESA';
|
||||
mode.MaxColor := 256;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.MaxX := 639;
|
||||
mode.MaxY := 399;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init640x400x256;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m640x480x256;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='640 x 480 VESA';
|
||||
mode.MaxColor := 256;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 639;
|
||||
mode.MaxY := 479;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init640x480x256;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m640x480x32k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='640 x 480 VESA';
|
||||
mode.MaxColor := 32768;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.MaxX := 639;
|
||||
mode.MaxY := 479;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init640x480x32k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m640x480x64k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='640 x 480 VESA';
|
||||
mode.MaxColor := 65536;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.MaxX := 639;
|
||||
mode.MaxY := 479;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init640x480x64k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m800x600x16;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='800 x 600 VESA';
|
||||
mode.MaxColor := 16;
|
||||
mode.HardwarePages := 2;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 799;
|
||||
mode.MaxY := 599;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init800x600x16;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m800x600x256;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='800 x 600 VESA';
|
||||
mode.MaxColor := 256;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.MaxX := 799;
|
||||
mode.MaxY := 599;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init800x600x256;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m800x600x32k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='800 x 600 VESA';
|
||||
mode.MaxColor := 32768;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.MaxX := 799;
|
||||
mode.MaxY := 599;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init800x600x32k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m800x600x64k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='800 x 600 VESA';
|
||||
mode.MaxColor := 65536;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.MaxX := 799;
|
||||
mode.MaxY := 599;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init800x600x64k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1024x768x16;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1024 x 768 VESA';
|
||||
mode.MaxColor := 16;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.MaxX := 1023;
|
||||
mode.MaxY := 767;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1024x768x16;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1024x768x256;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1024 x 768 VESA';
|
||||
mode.MaxColor := 256;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.MaxX := 1023;
|
||||
mode.MaxY := 767;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1024x768x256;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1024x768x32k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1024 x 768 VESA';
|
||||
mode.MaxColor := 32768;
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.MaxX := 1023;
|
||||
mode.MaxY := 767;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1024x768x32k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1024x768x64k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1024 x 768 VESA';
|
||||
mode.MaxColor := 65536;
|
||||
mode.DirectColor := TRUE;
|
||||
|
||||
mode.HardwarePages := 2;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 1023;
|
||||
mode.MaxY := 767;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1024x768x64k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1280x1024x16;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1280 x 1024 VESA';
|
||||
mode.MaxColor := 16;
|
||||
mode.HardwarePages := 2;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 1279;
|
||||
mode.MaxY := 1023;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1280x1024x16;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1280x1024x256;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1280 x 1024 VESA';
|
||||
mode.MaxColor := 256;
|
||||
mode.HardwarePages := 2;
|
||||
mode.DirectColor := FALSE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 1279;
|
||||
mode.MaxY := 1023;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1280x1024x256;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1280x1024x32k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1280 x 1024 VESA';
|
||||
mode.MaxColor := 32768;
|
||||
mode.HardwarePages := 2;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 1279;
|
||||
mode.MaxY := 1023;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1280x1024x32k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
InitMode(mode);
|
||||
mode.ModeNumber:=m1280x1024x64k;
|
||||
mode.DriverNumber := VESA;
|
||||
mode.ModeName:='1280 x 1024 VESA';
|
||||
mode.MaxColor := 65536;
|
||||
mode.HardwarePages := 2;
|
||||
mode.DirectColor := TRUE;
|
||||
mode.PaletteSize := mode.MaxColor;
|
||||
mode.MaxX := 1279;
|
||||
mode.MaxY := 1023;
|
||||
mode.InitMode := {$ifdef fpc}@{$endif}sdlgraph_Init1280x1024x64k;
|
||||
setupSDLgraphDefaults;
|
||||
AddMode(mode);
|
||||
|
||||
end;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
begin
|
||||
|
||||
|
||||
InitializeGraph;
|
||||
|
||||
end.
|
@ -233,160 +233,160 @@ PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(F
|
||||
override PACKAGE_NAME=sdl
|
||||
override PACKAGE_VERSION=1.0.0
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-go32v2)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-win32)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-os2)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-freebsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-solaris)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-qnx)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netware)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-openbsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-wdosx)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-darwin)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-emx)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-watcom)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netwlibc)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-wince)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-embedded)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-symbian)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-linux)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-freebsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-netbsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-amiga)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-atari)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-openbsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-palmos)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),m68k-embedded)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-linux)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-netbsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-amiga)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-macos)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-darwin)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-morphos)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc-embedded)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-linux)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-netbsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-solaris)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),sparc-embedded)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-linux)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-win64)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),x86_64-embedded)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-linux)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-gba)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-nds)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-embedded)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-symbian)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-linux)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-darwin)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
override TARGET_UNITS+=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
endif
|
||||
override INSTALL_FPCPACKAGE=y
|
||||
ifdef REQUIRE_UNITSDIR
|
||||
|
@ -11,7 +11,7 @@ libc=y
|
||||
packages=pthreads x11
|
||||
|
||||
[target]
|
||||
units=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg
|
||||
units=sdl sdl_image sdl_mixer sdl_mixer_nosmpeg sdl_ttf sdl_gfx sdl_net smpeg logger sdlutils
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
4363
packages/extra/sdl/sdlutils.pas
Normal file
4363
packages/extra/sdl/sdlutils.pas
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user