CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

TEXTBLIT.H (1336B)


      1 //
      2 // Copyright 2020 Electronic Arts Inc.
      3 //
      4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 
      5 // software: you can redistribute it and/or modify it under the terms of 
      6 // the GNU General Public License as published by the Free Software Foundation, 
      7 // either version 3 of the License, or (at your option) any later version.
      8 
      9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 
     10 // in the hope that it will be useful, but with permitted additional restrictions 
     11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 
     12 // distributed with this program. You should have received a copy of the 
     13 // GNU General Public License along with permitted additional restrictions 
     14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
     15 
     16 
     17 
     18 #define	MAX_ENTRIES 128
     19 
     20 class TextBlitClass {
     21 
     22 	public:
     23 
     24 		TextBlitClass(void);
     25 		~TextBlitClass(void){};
     26 
     27 		void Add (int x, int y, int dx, int dy, int w, int h);
     28 		void Clear (void);
     29 		void Update (void);
     30 
     31 
     32 	private:
     33 
     34 		typedef struct {
     35 			int	SourceX;
     36 			int	SourceY;
     37 			int	DestX;
     38 			int	DestY;
     39 			int	Width;
     40 			int	Height;
     41 		} BlitEntryType;
     42 
     43 		BlitEntryType 	BlitListo [MAX_ENTRIES];
     44 		int				Count;
     45 
     46 };
     47 
     48 
     49 extern GraphicBufferClass *TextPrintBuffer;
     50 extern TextBlitClass BlitList;
     51