summaryrefslogtreecommitdiff
path: root/packages/ptc/src/c_api/formatd.inc
blob: b235e13078b04438650dd1118ad41b5129f6e731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ setup }
Function ptc_format_create : TPTC_FORMAT;
Function ptc_format_create_indexed(bits : Integer) : TPTC_FORMAT;
Function ptc_format_create_direct(bits : Integer; r, g, b, a : int32) : TPTC_FORMAT;
Procedure ptc_format_destroy(obj : TPTC_FORMAT);

{ data access }
Function ptc_format_r(obj : TPTC_FORMAT) : int32;
Function ptc_format_g(obj : TPTC_FORMAT) : int32;
Function ptc_format_b(obj : TPTC_FORMAT) : int32;
Function ptc_format_a(obj : TPTC_FORMAT) : int32;
Function ptc_format_bits(obj : TPTC_FORMAT) : Integer;
Function ptc_format_bytes(obj : TPTC_FORMAT) : Integer;
Function ptc_format_direct(obj : TPTC_FORMAT) : Boolean;
Function ptc_format_indexed(obj : TPTC_FORMAT) : Boolean;

{ operators }
Procedure ptc_format_assign(obj, format : TPTC_FORMAT);
Function ptc_format_equals(obj, format : TPTC_FORMAT) : Boolean;