Thu, 18 Apr 2024 21:53:53 +0200
make use of the asc_window_active macro
universe@48 | 1 | /* |
universe@48 | 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@48 | 3 | * Copyright 2024 Mike Becker. All rights reserved. |
universe@48 | 4 | * |
universe@48 | 5 | * Redistribution and use in source and binary forms, with or without |
universe@48 | 6 | * modification, are permitted provided that the following conditions are met: |
universe@48 | 7 | * |
universe@48 | 8 | * 1. Redistributions of source code must retain the above copyright |
universe@48 | 9 | * notice, this list of conditions and the following disclaimer. |
universe@48 | 10 | * |
universe@48 | 11 | * 2. Redistributions in binary form must reproduce the above copyright |
universe@48 | 12 | * notice, this list of conditions and the following disclaimer in the |
universe@48 | 13 | * documentation and/or other materials provided with the distribution. |
universe@48 | 14 | * |
universe@48 | 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@48 | 16 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@48 | 17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
universe@48 | 18 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
universe@48 | 19 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
universe@48 | 20 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
universe@48 | 21 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
universe@48 | 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
universe@48 | 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
universe@48 | 24 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
universe@48 | 25 | * POSSIBILITY OF SUCH DAMAGE. |
universe@48 | 26 | */ |
universe@48 | 27 | |
universe@48 | 28 | #ifndef ASCENSION_UI_H |
universe@48 | 29 | #define ASCENSION_UI_H |
universe@48 | 30 | |
universe@48 | 31 | #include "ui/text.h" |
universe@48 | 32 | |
universe@56 | 33 | #define asc_add_ui_node(node) \ |
universe@64 | 34 | asc_scene_node_link(asc_window_active->ui, node) |
universe@56 | 35 | |
universe@48 | 36 | #endif /* ASCENSION_UI_H */ |
universe@48 | 37 |