Go to the source code of this file.
Functions | |
| void | draw_over_sprite_actor (int X, int Z, int Y) |
| void | get_sprite_size (int offset, int *width, int *height, unsigned char *spritePtr) |
| void | draw_brick (int index, int posX, int posY) |
| void | draw_sprite (int index, int posX, int posY, unsigned char *spritePtr) |
| void | draw_brick_sprite (int index, int posX, int posY, unsigned char *spritePtr, int isSprite) |
| void | create_grid_map () |
| int | init_grid (int index) |
| int | init_celling_grid (int index) |
| void | redraw_grid () |
Variables | |
| int | newCameraX |
| int | newCameraY |
| int | newCameraZ |
| int | cameraX |
| int | cameraY |
| int | cameraZ |
| unsigned char * | blockBuffer |
| unsigned char * | brickBuffer |
| unsigned char * | brickBuffer2 |
| int | shadowX |
| int | shadowY |
| int | shadowZ |
| char | shadowVar |
| short int | useCellingGrid |
| short int | cellingGridIdx |
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 grid.h.
| void create_grid_map | ( | ) |
Create grid map from current grid to block library buffer
Definition at line 541 of file grid.c.
References blockBuffer, create_grid_column(), currentGrid, GRID_SIZE_X, and GRID_SIZE_Z.
Referenced by apply_celling_grid(), and init_grid().
| void draw_brick | ( | int | index, | |
| int | posX, | |||
| int | posY | |||
| ) |
Definition at line 659 of file grid.c.
References brickTable, and draw_brick_sprite().
Referenced by draw_column_grid().
| void draw_brick_sprite | ( | int | index, | |
| int | posX, | |||
| int | posY, | |||
| unsigned char * | spritePtr, | |||
| int | isSprite | |||
| ) |
Definition at line 670 of file grid.c.
References frontVideoBuffer, SCREEN_WIDTH, screenLockupTable, textWindowBottom, textWindowLeft, and textWindowTop.
Referenced by draw_brick(), and draw_sprite().
| void draw_over_sprite_actor | ( | int | X, | |
| int | Z, | |||
| int | Y | |||
| ) |
Definition at line 224 of file grid.c.
References brickInfoBuffer, copy_grid_mask(), BrickEntry::index, BrickEntry::posY, textWindowBottom, textWindowLeft, textWindowRight, textWindowTop, workVideoBuffer, BrickEntry::x, BrickEntry::y, and BrickEntry::z.
Referenced by process_drawing().
| void draw_sprite | ( | int | index, | |
| int | posX, | |||
| int | posY, | |||
| unsigned char * | spritePtr | |||
| ) |
Definition at line 664 of file grid.c.
References draw_brick_sprite().
Referenced by process_drawing().
| void get_sprite_size | ( | int | offset, | |
| int * | width, | |||
| int * | height, | |||
| unsigned char * | spritePtr | |||
| ) |
| int init_celling_grid | ( | int | index | ) |
Initialize celling grid (background scenearios)
| index | grid index number |
Definition at line 634 of file grid.c.
References CELLING_GRIDS_START_INDEX, create_celling_grid_map(), hqr_entry_size(), hqr_get_entry(), HQR_LBA_GRI_FILE, and reqBgRedraw.
Referenced by apply_celling_grid().
| int init_grid | ( | int | index | ) |
Initialize grid (background scenearios)
| index | grid index number |
Definition at line 591 of file grid.c.
References create_grid_map(), create_grid_mask(), currentBll, currentGrid, hqr_entry_size(), hqr_get_entry(), HQR_LBA_BLL_FILE, HQR_LBA_GRI_FILE, load_grid_bricks(), and numberOfBll.
Referenced by change_scene().
| void redraw_grid | ( | ) |
Redraw grid background
Definition at line 841 of file grid.c.
References blockBuffer, brickInfoBuffer, cameraX, cameraY, cameraZ, draw_column_grid(), GRID_SIZE_X, GRID_SIZE_Y, GRID_SIZE_Z, newCameraX, newCameraY, newCameraZ, project_position_on_screen(), projPosX, projPosXScreen, projPosY, and projPosYScreen.
Referenced by redraw_engine_actions().
| unsigned char* blockBuffer |
Definition at line 37 of file grid.h.
Referenced by create_celling_grid_map(), create_grid_map(), init_grid_buffer(), and redraw_grid().
| unsigned char* brickBuffer |
| unsigned char* brickBuffer2 |
| int cameraX |
Definition at line 33 of file grid.h.
Referenced by display_zones(), process_actors_drawlist(), process_drawing(), and redraw_grid().
| int cameraY |
Definition at line 34 of file grid.h.
Referenced by display_zones(), process_actors_drawlist(), process_drawing(), and redraw_grid().
| int cameraZ |
Definition at line 35 of file grid.h.
Referenced by display_zones(), process_actors_drawlist(), process_drawing(), and redraw_grid().
| short int cellingGridIdx |
Definition at line 48 of file grid.h.
Referenced by apply_celling_grid(), init_vars(), and process_actors_drawlist().
| int newCameraX |
Definition at line 29 of file grid.h.
Referenced by change_grid_camera(), change_scene(), draw_column_grid(), and redraw_grid().
| int newCameraY |
Definition at line 30 of file grid.h.
Referenced by change_scene(), draw_column_grid(), and redraw_grid().
| int newCameraZ |
Definition at line 31 of file grid.h.
Referenced by change_grid_camera(), change_scene(), draw_column_grid(), and redraw_grid().
| int shadowX |
| int shadowY |
| int shadowZ |
| short int useCellingGrid |
Definition at line 47 of file grid.h.
Referenced by apply_celling_grid(), init_vars(), and process_actors_drawlist().
1.5.5