| 1 |
/* Libvisual-plugins - Standard plugins for libvisual |
| 2 |
* |
| 3 |
* Copyright (C) 2004, 2005, 2006 Dennis Smit <[email protected]> |
| 4 |
* |
| 5 |
* Authors: Dennis Smit <[email protected]> |
| 6 |
* |
| 7 |
* $Id: actor_bumpscope.h,v 1.8 2006/01/22 13:25:23 synap Exp $ |
| 8 |
* |
| 9 |
* This program is free software; you can redistribute it and/or modify |
| 10 |
* it under the terms of the GNU General Public License as |
| 11 |
* published by the Free Software Foundation; either version 2 |
| 12 |
* of the License, or (at your option) any later version. |
| 13 |
* |
| 14 |
* This program is distributed in the hope that it will be useful, |
| 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
* GNU General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU General Public License |
| 20 |
* along with this program; if not, write to the Free Software |
| 21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef _ACTOR_BUMPSCOPE_H |
| 25 |
#define _ACTOR_BUMPSCOPE_H |
| 26 |
|
| 27 |
#include <libvisual/libvisual.h> |
| 28 |
|
| 29 |
typedef struct { |
| 30 |
int height; |
| 31 |
int width; |
| 32 |
|
| 33 |
VisPalette pal; |
| 34 |
|
| 35 |
float intense1[256]; |
| 36 |
float intense2[256]; |
| 37 |
|
| 38 |
int phongres; |
| 39 |
uint8_t *phongdat; |
| 40 |
|
| 41 |
uint8_t *rgb_buf; |
| 42 |
uint8_t *rgb_buf2; |
| 43 |
|
| 44 |
VisVideo *video; |
| 45 |
|
| 46 |
float h; |
| 47 |
float s; |
| 48 |
float v; |
| 49 |
|
| 50 |
int colorchanged; |
| 51 |
int colorupdate; |
| 52 |
|
| 53 |
/* Configs */ |
| 54 |
VisColor color; |
| 55 |
VisColor old_color; |
| 56 |
int color_cycle; |
| 57 |
int moving_light; |
| 58 |
int diamond; |
| 59 |
int light_x; |
| 60 |
int light_y; |
| 61 |
|
| 62 |
VisBuffer *pcmbuf; |
| 63 |
|
| 64 |
/* Random context for the plugin */ |
| 65 |
VisRandomContext *rcontext; |
| 66 |
|
| 67 |
} BumpscopePrivate; |
| 68 |
|
| 69 |
#endif /* _ACTOR_BUMPSCOPE_H */ |