summaryrefslogtreecommitdiff
path: root/src/corelib/render/software/agg_vertex_source.pas
blob: 7db09e6644a10a5c116aaf9698102c2829293219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4 (Public License)
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Anti-Grain Geometry - Version 2.4 Release Milano 3 (AggPas 2.4 RM3)
// Pascal Port By: Milan Marusinec alias Milano
//                 milan@marusinec.sk
//                 http://www.aggpas.org
// Copyright (c) 2005-2006
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
//
//----------------------------------------------------------------------------
// Contact: mcseem@antigrain.com
//          mcseemagg@yahoo.com
//          http://www.antigrain.com
//
//----------------------------------------------------------------------------
//
// Pascal replacement of the vertex_source templetized concept from C++.
// This file is originaly not a part of the AGG.
//
// [Pascal Port History] -----------------------------------------------------
//
// 19.12.2005-Milano: Unit port establishment
//
{ agg_vertex_source.pas }
unit
 agg_vertex_source ;

INTERFACE

{$I agg_mode.inc }

uses
 agg_basics ;

{ TYPES DEFINITION }
type
 vertex_source_ptr = ^vertex_source;
 vertex_source = object
   constructor Construct;
   destructor  Destruct; virtual;

   procedure remove_all; virtual;
   procedure add_vertex(x ,y : double; cmd : unsigned ); virtual;

   function  num_paths : unsigned; virtual;
   procedure rewind(path_id : unsigned ); virtual;
   function  vertex(x ,y : double_ptr ) : unsigned; virtual;

   function  func_operator_gamma(x : double ) : double; virtual;
   function  operator_array     (i : unsigned ) : unsigned; virtual; abstract;

  end;

{ GLOBAL PROCEDURES }


IMPLEMENTATION
{ LOCAL VARIABLES & CONSTANTS }
{ UNIT IMPLEMENTATION }
{ CONSTRUCT }
constructor vertex_source.Construct;
begin
end;

{ DESTRUCT }
destructor vertex_source.Destruct;
begin
end;

{ REMOVE_ALL }
procedure vertex_source.remove_all;
begin
end;

{ ADD_VERTEX }
procedure vertex_source.add_vertex;
begin
end;

{ NUM_PATHS }
function vertex_source.num_paths;
begin
 result:=0;

end;

{ REWIND }
procedure vertex_source.rewind;
begin
end;

{ VERTEX }
function vertex_source.vertex;
begin
end;

{ FUNC_OPERATOR_GAMMA }
function vertex_source.func_operator_gamma;
begin
 result:=x;

end;

END.