#include "interface.h"
#include "sdlengine.h"
#include "main.h"
Go to the source code of this file.
Functions | |
| void | draw_line (int startWidth, int startHeight, int endWidth, int endHeight, int lineColor) |
| void | blit_box (int left, int top, int right, int bottom, char *source, int leftDest, int topDest, char *dest) |
| void | draw_transparent_box (int left, int top, int right, int bottom, int colorAdj) |
| void | draw_splitted_box (int left, int top, int right, int bottom, unsigned char e) |
| void | set_clip (int left, int top, int right, int bottom) |
| void | save_clip () |
| void | reset_clip () |
Prequengine: a Little Big Adventure engine
Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file interface.c.
| void blit_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| char * | source, | |||
| int | leftDest, | |||
| int | topDest, | |||
| char * | dest | |||
| ) |
Blit button box from working buffer to front buffer
| left | start width to draw the button | |
| top | start height to draw the button | |
| right | end width to draw the button | |
| bottom | end height to draw the button source screen buffer, in this case working buffer | |
| leftDest | start width to draw the button in destination buffer | |
| topDest | start height to draw the button in destination buffer destination screen buffer, in this case front buffer |
Definition at line 169 of file interface.c.
References SCREEN_WIDTH, and screenLockupTable.
Referenced by blit_background_areas(), and draw_button_gfx().
| void draw_line | ( | int | startWidth, | |
| int | startHeight, | |||
| int | endWidth, | |||
| int | endHeight, | |||
| int | lineColor | |||
| ) |
Draw button line
| startWidth | width value where the line starts | |
| startHeight | height value where the line starts | |
| endWidth | width value where the line ends | |
| endHeight | height value where the line ends | |
| lineColor | line color in the current palette |
Definition at line 35 of file interface.c.
References frontVideoBuffer, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_LEFT, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, and screenLockupTable.
Referenced by display_zones(), and draw_button_box().
| void draw_splitted_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| unsigned char | e | |||
| ) |
Definition at line 272 of file interface.c.
References frontVideoBuffer, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_LEFT, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, SCREEN_WIDTH, and screenLockupTable.
Referenced by draw_button_gfx().
| void draw_transparent_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| int | colorAdj | |||
| ) |
Draws inside buttons transparent area
| left | start width to draw the button | |
| top | start height to draw the button | |
| right | end width to draw the button | |
| bottom | end height to draw the button | |
| colorAdj | index to adjust the transparent box color |
Definition at line 210 of file interface.c.
References frontVideoBuffer, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_LEFT, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, and screenLockupTable.
Referenced by draw_button_gfx().
| void reset_clip | ( | ) |
Definition at line 332 of file interface.c.
References SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, textWindowBottom, textWindowLeft, textWindowRight, and textWindowTop.
Referenced by process_drawing(), and redraw_engine_actions().
| void save_clip | ( | ) |
Definition at line 324 of file interface.c.
References textWindowBottom, textWindowBottomSave, textWindowLeft, textWindowLeftSave, textWindowRight, textWindowRightSave, textWindowTop, and textWindowTopSave.
| void set_clip | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom | |||
| ) |
Definition at line 305 of file interface.c.
References SCREEN_HEIGHT, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_RIGHT, SCREEN_WIDTH, textWindowBottom, textWindowLeft, textWindowRight, and textWindowTop.
Referenced by process_drawing().
1.5.5