Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
alphacurve.h
Go to the documentation of this file.
1 #ifndef _ALPHACURVE_H_
2 #define _ALPHACURVE_H_
3 
4 #include <math.h>
5 
6 //query = requested pixel alpha any
7 //maxrez x = width of the image in pixels any
8 //min = minimum alpha min 0
9 //max = maximum alpha max 255
10 //focus = multiplier of focus center for curve 0-1
11 //concavity = multiplier from linear -> terminal(0 or 255) 0-1
12 //tail_mode_start = overriding slope value for start negative = standard, 0=flat, high=vertical
13 //tail_mode_end = overriding slope value for start negative = standard, 0=flat, high=vertical
14 
15 int get_alpha( int _query,
16  int _maxrez_x,
17  int _min,
18  int _max,
19  double _focus,
20  double _concavity,
21  int _tail_mode_start,
22  int _tail_mode_end );
23 
24 #endif
25