acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_aaa2_shape.h
1// Created by camilo on 2022-08-28 18:47 <3ThomasBorregaardSorensen!!
2#pragma once
3
4
5//#include "acme/prototype/geometry2d/shape.h"
6
7
8//#include "acme/prototype/geometry2d/shape_array.h"
9
10
11tem/*plate < typename HOLDEE >
12inline ::pointer<___shape<HOLDEE >> __create_shape(const enum_shape & eshape)
13{
14
15 switch (eshape)
16 {
17 case e_shape_none:
18 return nullptr;
19 case e_shape_begin_clip:
20 return allocateø begin_clip_shape<HOLDEE> ();
21 case e_shape_intersect_clip:
22 return allocateø intersect_clip_shape<HOLDEE> ();
23 case e_shape_begin_figure:
24 return allocateø begin_figure_shape<HOLDEE> ();
25 case e_shape_close_figure:
26 return allocateø close_figure_shape<HOLDEE> ();
27 case e_shape_end_figure:
28 return allocateø end_figure_shape<HOLDEE> ();
29 default:
30 throw ::exception(error_not_implemented, " geometry processor or not a geometry processor?");
31 return nullptr;
32 }
33
34}
35
36
37*/