BlitterRLE8.h
Go to the documentation of this file.00001 00011 #ifndef __BlitterRLE8_H__ 00012 #define __BlitterRLE8_H__ 00013 00014 // Includes 00015 00016 // Forward declares 00017 00018 00019 // BlitterRLE8 00020 class BlitterRLE8 00021 { 00022 public: 00023 __forceinline static void Opaque_Unclipped_Unmasked(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y); 00024 __forceinline static void Opaque_Unclipped_Masked(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y); 00025 __forceinline static void Opaque_Unclipped_Unmasked_Transparent(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, unsigned char alpha); 00026 __forceinline static void Opaque_Unclipped_Masked_Transparent(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, unsigned char alpha); 00027 00028 __forceinline static void Opaque_Clipped_Unmasked(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, int xStart, int yStart, int xEnd, int yEnd); 00029 __forceinline static void Opaque_Clipped_Masked(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, int xStart, int yStart, int xEnd, int yEnd); 00030 __forceinline static void Opaque_Clipped_Unmasked_Transparent(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, int xStart, int yStart, int xEnd, int yEnd, unsigned char alpha); 00031 __forceinline static void Opaque_Clipped_Masked_Transparent(unsigned char* opaqueData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, int xStart, int yStart, int xEnd, int yEnd, unsigned char alpha); 00032 00033 __forceinline static void Alpha_Unclipped(unsigned char* alphaData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y); 00034 __forceinline static void Alpha_Clipped(unsigned char* alphaData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, int xStart, int yStart, int xEnd, int yEnd); 00035 __forceinline static void Alpha_Unclipped_Transparent(unsigned char* alphaData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, unsigned char alpha); 00036 __forceinline static void Alpha_Clipped_Transparent(unsigned char* alphaData, int activeWidth, int activeHeight, unsigned short* palette, unsigned short* data, int backBufferDelta,int x, int y, int xStart, int yStart, int xEnd, int yEnd, unsigned char alpha); 00037 00038 00039 private: 00040 00041 __forceinline static void Fill(unsigned short* data, unsigned short color, int len); 00042 // __forceinline static void Blend(unsigned short* destination, unsigned int color, unsigned int alpha); 00043 __forceinline static void FillTransparent(unsigned short* data, unsigned short color, int len, unsigned char alpha); 00044 __forceinline static void BurstFill(unsigned short* data, unsigned short color, int len); 00045 00046 __forceinline static void RunLength_Opaque_Unclipped_Unmasked(int len,unsigned short* data, unsigned char** source, unsigned short* palette); 00047 __forceinline static void RunLength_Opaque_Unclipped_Masked(int len,unsigned short* data, unsigned char** source, unsigned short* palette); 00048 __forceinline static void RunLength_Opaque_Unclipped_Unmasked_Transparent(int len,unsigned short* data, unsigned char** source, unsigned short* palette, unsigned char alpha); 00049 __forceinline static void RunLength_Opaque_Unclipped_MaskedTransparent(int len,unsigned short* data, unsigned char** source, unsigned short* palette, unsigned char alpha); 00050 00051 __forceinline static void RunLength_Opaque_Clipped_Masked(int len,unsigned short* data, unsigned char** source, unsigned short* palette, int clipStart, int clipEnd); 00052 __forceinline static void RunLength_Opaque_Clipped_Masked_Transparent(int len,unsigned short* data, unsigned char** source, unsigned short* palette, int clipStart, int clipEnd, unsigned char alpha); 00053 00054 __forceinline static void IgnoreOpaque(int len, unsigned char** source); 00055 __forceinline static void IgnoreAlpha(int len, unsigned char** source); 00056 00057 }; 00058 00059 #include "BlitterRLE8.inl" 00060 00061 #endif /* __BlitterRLE8_H__ */ 00062
Reproduction/republishing of any material on this site without permission is strictly prohibited.
