stupid fucking switch syntax
This commit is contained in:
parent
8ff74e7235
commit
b1f31b7965
1 changed files with 8 additions and 4 deletions
|
@ -97,15 +97,19 @@ void vk_component(PtkHandle component) {
|
||||||
PTK_LIST_ADD(PtkHandle, m_components, component);
|
PTK_LIST_ADD(PtkHandle, m_components, component);
|
||||||
|
|
||||||
switch (component->type) {
|
switch (component->type) {
|
||||||
case PTK_COMPONENT_TYPE_TRIANGLE:
|
case PTK_COMPONENT_TYPE_TRIANGLE: {
|
||||||
triangle((PtkTriangle *)component, 0);
|
triangle((PtkTriangle *)component, 0);
|
||||||
case PTK_COMPONENT_TYPE_RECT:
|
} break;
|
||||||
|
case PTK_COMPONENT_TYPE_RECT: {
|
||||||
rect((PtkRect *)component);
|
rect((PtkRect *)component);
|
||||||
case PTK_COMPONENT_TYPE_ELLIPSE:
|
} break;
|
||||||
|
case PTK_COMPONENT_TYPE_ELLIPSE: {
|
||||||
ellipse((PtkEllipse *)component);
|
ellipse((PtkEllipse *)component);
|
||||||
default:
|
} break;
|
||||||
|
default: {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
vk_transfer_vertex_data();
|
vk_transfer_vertex_data();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue