# 32bpp_ssse3.hpp

Go to the documentation of this file.

    00001 /* $Id: 32bpp_ssse3.hpp 26260 2014-01-13 18:20:23Z rubidium $ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * OpenTTD 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, version 2.
    00006  * OpenTTD 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.
    00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
    00008  */
    00009
    00012 #ifndef BLITTER_32BPP_SSSE3_HPP
    00013 #define BLITTER_32BPP_SSSE3_HPP
    00014
    00015 #ifdef WITH_SSE
    00016
    00017 #ifndef SSE_VERSION
    00018 #define SSE_VERSION 3
    00019 #endif
    00020
    00021 #ifndef FULL_ANIMATION
    00022 #define FULL_ANIMATION 0
    00023 #endif
    00024
    00025 #include "32bpp_sse2.hpp"
    00026
    00028 class Blitter_32bppSSSE3 : public Blitter_32bppSSE2 {
    00029 public:
    00030   /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
    00031   template <BlitterMode mode, Blitter_32bppSSE_Base::ReadMode read_mode, Blitter_32bppSSE_Base::BlockType bt_last, bool translucent>
    00032   void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);
    00033   /* virtual */ const char *GetName() { return "32bpp-ssse3"; }
    00034 };
    00035
    00037 class FBlitter_32bppSSSE3: public BlitterFactory {
    00038 public:
    00039   FBlitter_32bppSSSE3() : BlitterFactory("32bpp-ssse3", "32bpp SSSE3 Blitter (no palette animation)", HasCPUIDFlag(1, 2, 9)) {}
    00040   /* virtual */ Blitter *CreateInstance() { return new Blitter_32bppSSSE3(); }
    00041 };
    00042
    00043 #endif /* WITH_SSE */
    00044 #endif /* BLITTER_32BPP_SSSE3_HPP */