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