From 418f45f78bbf743021c53030da2ad2158fa355d2 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Tue, 29 Mar 2022 11:51:11 -0300 Subject: Initial commit --- src/color.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/color.h (limited to 'src/color.h') diff --git a/src/color.h b/src/color.h new file mode 100644 index 0000000..ee1b3ed --- /dev/null +++ b/src/color.h @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Frederico de Oliveira Linhares + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef CANDY_GEAR_COLOR_H +#define CANDY_GEAR_COLOR_H 1 + +#include "core.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct cg_color +{ + SDL_Color data; +}; + +extern const struct mrb_data_type cg_color_type; + +void +cg_color_init(mrb_state *mrb); + +#ifdef __cplusplus +}; +#endif + +#endif /* CANDY_GEAR_COLOR_H */ -- cgit v1.2.3