ScummVM API documentation
mainDraw.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef CRUISE_MAINDRAW_H
23#define CRUISE_MAINDRAW_H
24
25namespace Cruise {
26
27extern int currentTransparent;
28extern int16 *polyBuffer2;
29extern int16 *XMIN_XMAX;
30extern int m_color;
31
32int upscaleValue(int value, int scale);
33
34void pixel(int x, int y, char color);
35void mainDraw(bool waitFl);
36void flipScreen();
37void buildPolyModel(int X, int Y, int scale, char *ptr2, char *destBuffer, char *dataPtr);
38void drawSprite(int width, int height, cellStruct *currentObjPtr, const uint8 *dataIn, int ys, int xs, uint8 *output, const uint8 *dataBuf);
39void flipPoly(int fileId, int16 *dataPtr, int scale, char** newFrame, int X, int Y, int *outX, int *outY, int *outScale);
40void getPolySize(int positionX, int positionY, int scale, int sizeTable[4], unsigned char *dataPtr);
41bool findPoly(char* dataPtr, int x, int y, int zoom, int mouseX, int mouseY);
42unsigned char *drawPolyMode2(unsigned char *dataPointer, int linesToDraw);
43void calcRGB(uint8* pColorSrc, uint8* pColorDst, int* offsetTable);
44void drawMessage(const gfxEntryStruct *pGfxPtr, int globalX, int globalY, int width, int newColor, uint8 *ouputPtr);
45
46} // End of namespace Cruise
47
48#endif
Definition: actor.h:25