ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 
25 namespace Cruise {
26 
27 extern int currentTransparent;
28 extern int16 *polyBuffer2;
29 extern int16 *XMIN_XMAX;
30 extern int m_color;
31 
32 int upscaleValue(int value, int scale);
33 
34 void pixel(int x, int y, char color);
35 void mainDraw(bool waitFl);
36 void flipScreen();
37 void buildPolyModel(int X, int Y, int scale, char *ptr2, char *destBuffer, char *dataPtr);
38 void drawSprite(int width, int height, cellStruct *currentObjPtr, const uint8 *dataIn, int ys, int xs, uint8 *output, const uint8 *dataBuf);
39 void flipPoly(int fileId, int16 *dataPtr, int scale, char** newFrame, int X, int Y, int *outX, int *outY, int *outScale);
40 void getPolySize(int positionX, int positionY, int scale, int sizeTable[4], unsigned char *dataPtr);
41 bool findPoly(char* dataPtr, int x, int y, int zoom, int mouseX, int mouseY);
42 unsigned char *drawPolyMode2(unsigned char *dataPointer, int linesToDraw);
43 void calcRGB(uint8* pColorSrc, uint8* pColorDst, int* offsetTable);
44 void drawMessage(const gfxEntryStruct *pGfxPtr, int globalX, int globalY, int width, int newColor, uint8 *ouputPtr);
45 
46 } // End of namespace Cruise
47 
48 #endif
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: actor.h:25