diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch) | |
tree | 2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /noatun-plugins/tyler/display.h | |
download | tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/tyler/display.h')
-rw-r--r-- | noatun-plugins/tyler/display.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/noatun-plugins/tyler/display.h b/noatun-plugins/tyler/display.h new file mode 100644 index 0000000..d71b6c6 --- /dev/null +++ b/noatun-plugins/tyler/display.h @@ -0,0 +1,40 @@ +/* +// Copyright (C) 2000 Julien Carme +// Copyright (C) 2001 Neil Stevens <neil@qualityassistant.com> +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2, as +// published by the Free Software Foundation. +// +// 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. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _DISPLAY_H_ +#define _DISPLAY_H_ + +#define NB_PALETTES 5 +#define wrap(a) ( a < 0 ? 0 : ( a > 255 ? 255 : a )) +#define assign_max(p,a) ( *p = ( *p > a ? *p : a )) +#define PI 3.14159 + +#define VIDEO_FLAGS (SDL_HWSURFACE|SDL_HWPALETTE) + +void generate_colors(void); +void change_color(int old_p,int p,int w); +void compute_surface(t_interpol* vector_field); +void display_surface(void); +void blur(t_interpol* vector_field); +void spectral(t_effect* current_effect,short data[2][512]); +void line(int _x1, int _y1, int _x2, int _y2, int _c); +void curve(t_effect* current_effect); +void init_sdl(void); +void toggle_fullscreen(void); +void close_sdl(void); +#endif |