~eda-qa/dhlib/main

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* <license>
 * This file is part of the dis-Emi-A HaXe Library. Copyright © edA-qa mort-ora-y
 * For full copyright and license information please refer to doc/license.txt.
 * </license> 
 */
divert(`-1')

////////////////////////////////////////////////////////////////////////////////////////////////////
// T_type declarations, for use in defining types in SHX and AHX files
// They are conveniences to gain access to common constructions
define(`T_RANDF',`RandGen<Float>,mathx.RandGens.parseFloat("$1")')
define(`T_RANDPoint2',`RandGen<Point2>,mathx.RandGens.parsePoint2("$1")')
define(`T_RGB',`Color,Color.rgb($1,$2,$3)')
define(`T_Int',`Int,$1')
define(`T_Float',`Float,$1')
define(`T_Point2',`Point2,Point2.at($1,$2)')
define(`T_MatPoint',`MatPoint,MatPoint.at($1,$2)')
define(`T_Bool',`Bool,$1')

divert