D:/WorkAround/prequengine/trunk/src/interface.c File Reference

This file contains in-game interface routines. More...

#include "interface.h"
#include "sdlengine.h"
#include "main.h"

Include dependency graph for interface.c:

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 ()


Detailed Description

This file contains in-game interface routines.

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.


Function Documentation

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

Parameters:
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

Parameters:
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 
)

void draw_transparent_box ( int  left,
int  top,
int  right,
int  bottom,
int  colorAdj 
)

Draws inside buttons transparent area

Parameters:
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 (  ) 

void save_clip (  ) 

void set_clip ( int  left,
int  top,
int  right,
int  bottom 
)


Generated on Thu Sep 18 14:14:48 2008 for Prequengine by  doxygen 1.5.5