| 1 | /* |
| 2 | * OpenTyrian: A modern cross-platform port of Tyrian |
| 3 | * Copyright (C) 2007-2009 The OpenTyrian Development Team |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version 2 |
| 8 | * of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | #ifndef VGA256D_H |
| 20 | #define VGA256D_Hcxx . . $ `src/vga256d.h:20:9`! |
| 21 | |
| 22 | #include "opentyr.h"cxx . . $ `<file>/src/opentyr.h`/ |
| 23 | |
| 24 | #include "SDL.h" |
| 25 | |
| 26 | void JE_pixcxx . . $ JE_pix(a8f544383a9967e9).(SDL_Surfacecxx . . $ SDL_Surface# *surface, int x, int y, JE_bytecxx . . $ JE_byte# c); |
| 27 | void JE_pix3cxx . . $ JE_pix3(a8f544383a9967e9).(SDL_Surfacecxx . . $ SDL_Surface# *surface, int x, int y, JE_bytecxx . . $ JE_byte# c); |
| 28 | void JE_rectanglecxx . . $ JE_rectangle(fa5faf37b232239e).(SDL_Surfacecxx . . $ SDL_Surface# *surface, int a, int b, int c, int d, int e); |
| 29 | |
| 30 | void fill_rectangle_xycxx . . $ fill_rectangle_xy(da1d960d0d6e485d).(SDL_Surfacecxx . . $ SDL_Surface# *, int x, int y, int x2, int y2, Uint8cxx . . $ Uint8# color); |
| 31 | |
| 32 | void JE_barShadecxx . . $ JE_barShade(ad548318d53dbf5e).(SDL_Surfacecxx . . $ SDL_Surface# *surface, int a, int b, int c, int d); |
| 33 | void JE_barBrightcxx . . $ JE_barBright(ad548318d53dbf5e).(SDL_Surfacecxx . . $ SDL_Surface# *surface, int a, int b, int c, int d); |
| 34 | |
| 35 | static inline void fill_rectangle_whcxx . . $ fill_rectangle_wh(2ff783435439505a).(SDL_Surfacecxx . . $ SDL_Surface# *surface, int x, int y, uintcxx . . $ uint# w, uintcxx . . $ uint# h, Uint8cxx . . $ Uint8# color) |
| 36 | { |
| 37 | SDL_Rectcxx . . $ SDL_Rect# rect = { x, y, w, h }; |
| 38 | SDL_FillRectcxx . . $ SDL_FillRect(3ec95406e4bae91).(surface, &rect, color); |
| 39 | } |
| 40 | |
| 41 | void draw_segmented_gaugecxx . . $ draw_segmented_gauge(915c4eaa04ad7c00).(SDL_Surfacecxx . . $ SDL_Surface# *surface, int x, int y, Uint8cxx . . $ Uint8# color, uintcxx . . $ uint# segment_width, uintcxx . . $ uint# segment_height, uintcxx . . $ uint# segment_value, uintcxx . . $ uint# value); |
| 42 | |
| 43 | #endif /* VGA256D_H */ |